The MP3car.com Store  

Welcome to the MP3Car.com forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. Registering will also remove advertisements. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
Thread Tools Display Modes
Old 03-05-2006, 07:26 AM   #301
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Poll - Frontends

Just a quick poll : which FrontEnd are you using ?
It seems we're at least three to RoadRunner if I'm not mistaken, so I think I'll concentrate on this now, but don't hesitate to share your thoughts if you think other frontends should be considered...

Last edited by Vicne : 03-05-2006 at 07:44 AM.
Vicne is offline   Reply With Quote
Sponsored Links
Old 03-05-2006, 07:26 AM   #302
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
Quote: Originally Posted by Vicne
Thanks a lot for your help. I may come back to you if I have questions because you seem to have experience in that field.

I will search some info's on how girder work, I will post here ok?

Quote: Originally Posted by Vicne
It looks much more professional than mine. May I post it as a "screenshot" on sourceforge ?

Oh, Yes, I'm flattered

Quote: Originally Posted by Vicne
Did you try changing the track number in the GUI plugin and click "Set" ? :-)

Yes, I've try only one time and seems to nothing appear, but I must to try other time for security.
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Old 03-05-2006, 07:30 AM   #303
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
Quote: Originally Posted by Vicne
Just a quick poll : which FrontEnd are you using ?
It seems we're three to RoadRunner if I'm not mistaken, so I think I'll concentrate on this now, but don't hesitate to share your thoughts if you think other frontends should be considered...

I'm only using RR because Guino is a GREAT MAN! He has help me more time and I will not betray
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Old 03-05-2006, 07:43 AM   #304
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Quote: Originally Posted by slimmegane
I will search some info's on how girder work, I will post here ok?

Yes, thanks. That'd be great.

Quote:
Yes, I've try only one time and seems to nothing appear, but I must to try other time for security.

You have to enter a number between 1 and 99 in the "Track Number" field then press "Set", and after one second maximum, the display should be updated...

Last edited by Vicne : 03-05-2006 at 08:08 AM.
Vicne is offline   Reply With Quote
Old 03-05-2006, 08:21 AM   #305
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
I've try this Internet Event Plugin for Girder: http://search.cpan.org/~gbrock/Win32...ent.pm#METHODS

EDIT: I've found interesting info's in WinLIRC homepage http://winlirc.sourceforge.net/ and in the Developer page: http://winlirc.sourceforge.net/developer.html

Girder homepage seems to not work today, I hope this is the correct way.
Thanks.
SLM
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------

Last edited by slimmegane : 03-05-2006 at 08:36 AM.
slimmegane is offline   Reply With Quote
Old 03-05-2006, 11:02 AM   #306
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
My Photos: (0)
Finally I got it working. It seems that the problem is that in my program I didn't set the parity (I thought that the default was even while it is no parity)

This is the circuit I used (though the HU on detection still isn't reliable, when I disconnected it from the HU it still thought it was on, it worked flawlessly while connected). I think that it may work even without the transistors (since my problems were in the program, not in the interface)
EDIT: I tried without the transistors, it doesn't work.


The components are what I had available, so they may be replaced (probably the 2n2222 would work equally well as the bc337).

Attached is the python program, now with all serial parameters explicitly defined
BEWARE this is not java, so it's just 160 lines of understandable code in a (shock horror) single file
It needs a python interpreter (obviously) and pyserial. I had to add the txt extension (this forum doesn't accept python files), and you invoke it either passing the number of the serial port, e.g.

Code:
python cdc.py 1

or the name of the serial device

Code:
python cdc.py /dev/tty/USB0

If you want verbose output just change the line
Code:
self._showdebug=0

to
Code:
self._showdebug=1


Now I'll just have to find an usb card with spdif output, the blue connector (I used faston for testing) and I'll probably write a freepascal version of the program (so that'll be native under at least windows and linux, don't know if the serial library I'm using works under mac os X, don't know if pyserial does either).
Attached Files
File Type: txt cdc.py.txt (4.7 KB, 114 views)

Last edited by pippolippi : 03-05-2006 at 12:32 PM.
pippolippi is offline   Reply With Quote
Old 03-05-2006, 12:07 PM   #307
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
My Photos: (0)
Quote: Originally Posted by pippolippi
Finally I got it working.


Well, my quest for a suitable circuit hasn't ended yet
I have an inverter to power my laptop in the car (a belkin ac anywhere 140w) and as soon as I connected the laptop to the inverter, with the interface connected, the laptop shut itself off. I thought I fried my laptop, but luckily that wasn't the case: after removing the battery (and the serial port) it went back to life.
So I thought I fried the serial port, but, no, it's working (phew), but as soon I connect the serial port to the interface it disappears (i.e. it doesn't exists anymore, like the usb adapter is freaking out).
I'll probably have to put optocouplers in both directions (and for the spdif too) if I want to use the inverter.
Something like this (you'll have to visit this page first to agree to the GPL license)
pippolippi is offline   Reply With Quote
Old 03-05-2006, 12:39 PM   #308
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
Quote: Originally Posted by Vicne
You have to enter a number between 1 and 99 in the "Track Number" field then press "Set", and after one second maximum, the display should be updated...

I can change only tracks, the CD not change
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Old 03-05-2006, 12:50 PM   #309
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Quote: Originally Posted by pippolippi
Finally I got it working.

Great ! Welcome to the club :-)
Quote:
This is the circuit I used (though the HU on detection still isn't reliable, when I disconnected it from the HU it still thought it was on, it worked flawlessly while connected). I think that it may work even without the transistors (since my problems were in the program, not in the interface)

Yes, without the transistors, I think it will highly depend on the values of the resistors you choose, the internal pull-up of the HU and its threshold. It can maybe work with a bit of luck.

Quote:
BEWARE this is not java, so it's just 160 lines of understandable code in a (shock horror) single file

:-)
I guess understandable is a relative concept :-)
But as I said from the beginning, I know Java is like a hammer to kill flies in this context and I hope more lightweight implementations will come that I'll be able to use without hogging my system (and other's).

Do you want to host your version in another module on the SourceForge project too ?
Vicne is offline   Reply With Quote
Old 03-05-2006, 12:51 PM   #310
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Quote: Originally Posted by slimmegane
I can change only tracks, the CD not change

Yes, CD number update isn't done yet. In fact, as this information isn't part of PLAYING frames, I'll have to detect changes to this field and send the few frames needed to simulate CD change. Problem is it will probably produce a muting for a few seconds.
Vicne is offline   Reply With Quote
Sponsored Links
Old 03-05-2006, 01:02 PM   #311
Constant Bitrate
 
Join Date: Feb 2006
Posts: 113
My Photos: (0)
Quote: Originally Posted by Vicne
I guess understandable is a relative concept :-)

Well, since it's a simple communication I find it more understandable if it is in a single, short, file, instead of being scattered in 50 classes in 200 source files
Hope you'll appreciate that the program is rather simple, even if you don't grok python.

Quote:
Do you want to host your version in another module on the SourceForge project too ?

feel free to upload it.

Now a question, as you see from my other post my problems aren't over yet.
Are you powering your car pc with an inverter?
If so, are you having the same problems I had or you just tested the circuit with another pc?
(yes, I know you've already connected the spdif output of the car pc, but maybe there's an isolation transformer, either in the pc or in the HU input, if the latter an optocoupler wouldn't be needed for spdif. The fact that spdif connector in the HU has a different gnd seems to confirm this possibility).
pippolippi is offline   Reply With Quote
Old 03-05-2006, 01:19 PM   #312
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Quote: Originally Posted by pippolippi
Well, my quest for a suitable circuit hasn't ended yet
I have an inverter to power my laptop in the car (a belkin ac anywhere 140w) and as soon as I connected the laptop to the inverter, with the interface connected, the laptop shut itself off. I thought I fried my laptop, but luckily that wasn't the case: after removing the battery (and the serial port) it went back to life.
So I thought I fried the serial port, but, no, it's working (phew), but as soon I connect the serial port to the interface it disappears (i.e. it doesn't exists anymore, like the usb adapter is freaking out).
I'll probably have to put optocouplers in both directions (and for the spdif too) if I want to use the inverter.

Jeesh, scary... Can it be a grounding problem ? Do you have the problem even if you don't connect the HU side ?
Quote:
Something like this (you'll have to visit this page first to agree to the GPL license)

Yes, opto-isolation is always a good precaution. In this case however it would need 3 optocouplers (Rx/Tx/Remote)...
Vicne is offline   Reply With Quote
Old 03-05-2006, 01:47 PM   #313
Variable Bitrate
Vicne's CarPC Specs
 
Join Date: Apr 2005
Location: Belgium
Vehicle: 2005 Renault Scenic
Posts: 325
My Photos: (0)
Quote: Originally Posted by pippolippi
Well, since it's a simple communication I find it more understandable if it is in a single, short, file, instead of being scattered in 50 classes in 200 source files
Hope you'll appreciate that the program is rather simple, even if you don't grok python.

Yes, undoubtedly, it's rather straightforward.
I hope you won't come into concurrency problems if you have to both retry a frame and receive another one for example, but future will tell.
In my case, there are already about 15 classes that simply represent the kind of frames that can be received or sent. Add the threads for listening and sending frames, a watchdog running every second, the finite state machine to store the emulator status (BOOTING/PLAYING/PAUSED/CUEING/etc), a few utilities for dumping pretty hex debug logs and the plugin architecture... Maybe not 200 files but definitely not far :-)

But I admit python is particularly clear and concise.
Quote:
feel free to upload it.

OK. I'll do it as soon as you have tested it.
Quote:
Now a question, as you see from my other post my problems aren't over yet.
Are you powering your car pc with an inverter?
If so, are you having the same problems I had or you just tested the circuit with another pc?
(yes, I know you've already connected the spdif output of the car pc, but maybe there's an isolation transformer, either in the pc or in the HU input, if the latter an optocoupler wouldn't be needed for spdif. The fact that spdif connector in the HU has a different gnd seems to confirm this possibility).

You are right, maybe I should describe my setup a bit.
The carPC isn't running on an inverter. It has a M1-ATX as DC/DC converter and has worked with SPDIF (and the actual CDC for Data) for nearly a year now without a single problem (but SPDIF GND is not connected to the common GND of the PC.
BUT :
All the hacking tests I've done on this project are not using the carPC. I'm using a 1GHz PIII desktop PC powered on mains (220V). The only precaution I take is to always touch both the PC case and the HU at the same time before connecting the adapter to avoid ESD. The adapter has continuous ground from the DATA GND PIN of the HU to the GND pin of the DB9.
And I haven't had such a problem until now.

Now I don't think connecting the adapter to the car PC can make things worse, except for a ground loop maybe...

Slimmegane, can you describe your setup a bit ?
Vicne is offline   Reply With Quote
Old 03-05-2006, 01:54 PM   #314
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
Quote: Originally Posted by Vicne
Slimmegane, can you describe your setup a bit ?

I've Epia 10000 and M1ATX, but my spdif is from soundblaster audigy 2 nx (usb 2.0 port) I've connect the ground to the rs232 ground and the pin 15 of mini-iso to the ground of the PC, all PC ground is the same of CAR Ground.

I think that the problem of pippolippi is the ground that is more different from PC and car.
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Old 03-05-2006, 01:57 PM   #315
Variable Bitrate
 
slimmegane's Avatar
 
Join Date: Feb 2005
Location: Italy/Lecce
Vehicle: 2003/Renault/Megane 2
Posts: 230
My Photos: (0)
About the girder and java try to read someone in the girder forum http://www.promixis.com/phpBB2/index.php I think you can use the LUA plugin to send simple command to Girder or Internet Event, now I'm wait an answer from girder forum
__________________
--------------------------------
ITALIANI: DISPONIBILI MODULI OEM GPS:

http://www.mp3car.com/vbulletin/show...214#post639214
--------------------------------
slimmegane is offline   Reply With Quote
Sponsored Links
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT -5. The time now is 05:04 AM.


Sponsored Links
The MP3car.com Store

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
Ad Management by RedTyger
Message Board Statistics