protocol specified anywhere?

Posted by: Daria

protocol specified anywhere? - 08/12/2002 00:32

Yeah, I know I can look at source (and I am) but I'm wondering if there's anything that for instance the player binary understands that neither emptool nor jemplode know about. If the documentation exists, I'm searching for the wrong thing; I can't even really find someone asking an analogous question.
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 00:53

And actually, assuming there's not, I just had a scary thought.

Everything I want can probably be done as IR commands. I just need to give myself a useful interface for spoofing IR commands, which it actually looks like I can do by stealing some disabled code in hijack and tweaking slightly.

What I want to do is run a crond/atd sort of thing. Near top and bottom of the hour, insert a liner to be played. Depending on (something) look at the date and insert, say, my Christmas playlist, and reshuffle. And so on.
Posted by: matthew_k

Re: protocol specified anywhere? - 08/12/2002 00:57

Most IR commands have serial commands, which would probably be even more usefull?

Matthew
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 00:58

How so? The cron job would already be running on the player. No need to involve the serial at all. Or did I miss your point?
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 01:02

In fact I misunderstand. Maybe I should sleep now.
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 01:07

Actually, if the complete list is at
http://www.empeg.mars.org/devel/software/player.php3
then none of the commands I want have serial commands, and I need to esstentially reinvest fvgestel's "writable /dev/ir" hack.
Posted by: tfabris

Re: protocol specified anywhere? - 08/12/2002 01:09

The mars.org stuff is hopelessly outdated. There are new serial commands in beta13 that allow you to do things like insert/append/enqueue specific FIDs. Those are in the release notes for beta13...
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 01:12

Well, at least you didn't get to point me at the FAQ.

Of course, I still need to fake sending "serial" anyway.
Posted by: tfabris

Re: protocol specified anywhere? - 08/12/2002 01:13

Of course, I still need to fake sending "serial" anyway.

that's already in Hijack....
Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 01:17

Right, sorry, still being unintelligible. Reference to what I posted 4(?) messages ago, where I was talking about "not using real serial port'.

I swear, I'm just going to play with this and go to bed. Well, after I feed the hamsters.


Posted by: Daria

Re: protocol specified anywhere? - 08/12/2002 01:48

So you'd figure if I said something like
echo "SERIAL=#13360" > /proc/empeg_notify
where FID 13360 was a playlist jEmplode stored as the result of a Wendy flag search, I'd get that, and not always a one song "playlist" where the song is FID 78688. And you might be right, except that the serial command wants the FID to be in Hex.

Good enough.
Posted by: cushman

Re: protocol specified anywhere? - 08/12/2002 22:18

Tony, can we get a FAQ entry with the serial commands listed? I've come up with a list from empeg.mars.org and a few posts on this board, and here is what I have:

q - Drop to Shell
r - Restarts Player
[ - Switch to empeg channel
] - Switch to radio
= - AUX Input
s - Full Screen On/Off (CD-MD CH button)
+ - Volume +
- - Volume -
x - Volume +
z - Volume -
C - Play
p - Previous Song (Previous Menu Item)
F - Fast forward
B - Rewind
K - Loudness down
L - Loudness up
<space> - play
W - pause
\ - Sleep On/Off
f - Seek?
v - Next Vis
b - Seek?
n - Next Song (Next Menu Item)
1-9 FM Preset
. - FM Down
; - FM UP
` - Radio preset store
O - FM preset

-------------------------------------------
(commands gleaned from posts/documentation)

m - go down a menu level
* - go up a menu level
#xxxx - Play (Replace) FID xxxx
#xxxx+ - Append FID xxxx
#xxxx- - Enqueue FID xxxx
#xxxx! - Insert FID xxxx

Are there any that I have missed? I don't know of one single place where these are all listed and thought the FAQ might be an appropriate place.
Posted by: tfabris

Re: protocol specified anywhere? - 08/12/2002 22:31

Serial commands are listed in the developer's section of RioCar.org, in an area which I do not maintain. I have just updated the "Hypterterminal" entry in the FAQ to link to that entry now that I looked and realized that it did not link when it should have.
Posted by: cushman

Re: protocol specified anywhere? - 08/12/2002 22:50

Thanks, Tony. I've e-mailed Drakino about the changes.
Posted by: Daria

Re: protocol specified anywhere? - 09/12/2002 13:53

1-9 FM Preset
In tuner mode. In player mode, at least, 8 does "swap" just as it would from the remote, and 0 does "shuffle".

I mean to play some more; I need to figure out how the radio preset storage works, because if I can get it, the "set up my stations from gps" can work.