Unoffical empeg BBS

Quick Links: Empeg FAQ | Software | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs | Addons: Eutronix | Cases

Topic Options
#144723 - 20/02/2003 11:04 serial port headscratching
pca
old hand

Registered: 20/07/1999
Posts: 1094
Loc: UK
Hi.

OK, this is a little odd. I want to interface to an external device running at 9600 baud, which I can't change, while in the car. So, I set car_rate to 9600. Simple.

Except that it doesn't work.

After some testing, these are the symptoms:

Normal config.ini, no car rate modifiers, AC power. Serial port runs at 115200, all the serial commands to the player work correctly.

As above, with hijack forcing DC mode. No serial player control commands work, although they are echoed back to the terminal. Ctrl-c drops to a shell which works fine, at 115200. Attempting to connect at 4800, the car default, doesn't work or echo but simply gives garbage.

As above, with car_rate=9600. Same effect, doesn't work at either 4800 or 9600.

Powering the unit from the docking connector without hijack forcing DC mode produces the same result as case 2 and 3 above.

The unit has hijack v320 and Beta13 on it.

Any ideas?

pca
_________________________
Experience is what you get just after it would have helped...

Top
#144724 - 20/02/2003 11:08 Re: serial port headscratching [Re: pca]
pgrzelak
carpal tunnel

Registered: 15/08/2000
Posts: 4859
Loc: New Jersey, USA
In your test, what kind of terminal emulator are you using? Could the program not be resetting the port speed properly between tests?
_________________________
Paul Grzelak
200GB with 48MB RAM, Illuminated Buttons and Digital Outputs

Top
#144725 - 20/02/2003 11:11 Re: serial port headscratching [Re: pgrzelak]
pca
old hand

Registered: 20/07/1999
Posts: 1094
Loc: UK
I've been using secureCRT, with three different profiles for 4800, 9600, and 115200 baud. It definitely works.

pca
_________________________
Experience is what you get just after it would have helped...

Top
#144726 - 20/02/2003 11:49 Re: serial port headscratching [Re: pca]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14178
Loc: Canada
Try it again with notify=0 in config.ini

(weak theory that maybe the port isn't keeping up)

Top
#144727 - 20/02/2003 11:52 Re: serial port headscratching [Re: pca]
siberia37
old hand

Registered: 09/01/2002
Posts: 702
Loc: Tacoma,WA
hmm perhaps car rate changes only the serial port on the docking sled and you are connecting to the rear serial port? Another possibility, don't you need to add the "-s" option to the player so it doesn't steal the serial port. Not sure if that's really needed anymore but GPSApp's hacked preinit script did that I believe.

Top
#144728 - 20/02/2003 11:54 Re: serial port headscratching [Re: pca]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14178
Loc: Canada
Mmm.. very odd. Same here.

Try a stock kernel.. ?

Top
#144729 - 20/02/2003 11:56 Re: serial port headscratching [Re: siberia37]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
Doesn't the EXEC_ONCE option now force the player to run in -s mode so input/output is handled correctly?

Top
#144730 - 20/02/2003 11:57 Re: serial port headscratching [Re: pca]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14178
Loc: Canada
Ahhh. BINGO, courtesy of Sibera37

Hijack forces -s- to the player when booting on DC power, telling it to not listen to the serial port. This is to help third party apps like GPSapp which want to use the serial for a different purpose.

Mmm... do we need a savearea bit to to toggle this behaviour?

-ml


Top
#144731 - 20/02/2003 12:00 Re: serial port headscratching [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31332
Loc: Seattle, WA
Try a stock kernel.. ?
Yeah, that crazy Mark guy does all sorts of goofy things to the serial I/O...
_________________________
Tony Fabris

Top
#144732 - 20/02/2003 12:02 Re: serial port headscratching [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31332
Loc: Seattle, WA
Mmm... do we need a savearea bit to to toggle this behaviour?
Is there a reason this can't be a config.ini option (no sense in wasting a savearea bit if we don't have to)?

By the way, if you *do* make this change, I think it should (IMHO) default to the current "trick the player" behavior (makes thirdparty app installation easier).
_________________________
Tony Fabris

Top
#144733 - 20/02/2003 12:24 Re: serial port headscratching [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14178
Loc: Canada
Well, actually if I do anything I suppose I'll get rid of the "-s-" logic and just have an option to free up (or not free) the serial port internal to Hijack. Then we can have our "notify" data on the road again for things like Emphatic and whatnot..

But that's weeks away at this point.

-ml

Top
#144734 - 10/03/2003 16:57 Re: serial port headscratching [Re: mlord]
cushman
veteran

Registered: 21/01/2002
Posts: 1380
Loc: Erie, CO
Is this why writing SERIAL=xxxx to /proc/empeg_notify doesn't work in the car?

If so, I would greatly appreciate this config.ini switch, because my Palm application inserts songs into the playlist this way, and I would like to be able to use it in the car.
_________________________
Mark Cushman

Top
#144735 - 10/03/2003 17:12 Re: serial port headscratching [Re: cushman]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14178
Loc: Canada
yeah, that would be it!

Top
#144736 - 10/03/2003 19:37 Re: serial port headscratching [Re: cushman]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Two Marks.... both rock climbers... my head is spinning. :P
_________________________
Brad B.

Top