|
Rockbox mail archiveSubject: external commands (was Re: Repeated Remote Commands)external commands (was Re: Repeated Remote Commands)
From: [IDC]Dragon <idc-dragon_at_gmx.de>
Date: Wed, 12 May 2004 22:11:06 +0200 (MEST) > > Anybody having ideas (please only USEFUL commands). > In the past, I've posted my "specification" for a set of commands and responses, tailored for generic car CD changer emulation and "intelligent" remote controls (e.g. with a display). The idea was to have an external controller which does the actual emulation, talks the generic Rockbox commands on one end and the proprietary format of the radio interface on the other. The commands are single byte of a new "quadrant" (the first 2 bit). So they can co-exist with the cable remote. Commands are always initiated from the external, any info would need to be polled. I've pasted the spec below again, you may evaluate it as a discussion basis. With my Alpine emulator I went a different path since the Archos hardware can do it directly, no external controller needed. But for the other CD changer and remote control projects out there it would be very beneficial to agree on a common command set, which maybe could get officially supported. Else everybody is on his personal island. Thanks for considering (but I don't care any more) Jörg Commands towards Archos ----------------------- Commands: - 0x80 ping - 0x81 power off - 0x82 resume after powerup - 0x83 play - 0x84 pause - 0x85 stop - 0x86 start FF - 0x87 start FR - 0x88 next track - 0x89 previous track - 0x8A first track - 0x8B last track - 0x8C next random track - 0X8D previous random track - 0x8E-0x8F reserved Commands for Play-mode: - 0x90 normal play (special modes off) - 0x91 disk shuffle mode on - 0x92 magazin shuffle mode on - 0x93 intro scan on - 0x94 repeat one on - 0x95 repeat all on - 0x96-0x9F reserved CD select buttons: - 0xA0-0xA5 button n (1-6) - 0xA6-0xAF reserved Inquiry commandos: - 0xB0 give play status: state (changing, etc) (return payload: 2 byte flags, tbd) - 0xB1 give disk status: #of tracks (return payload: 16 Bit little endian) - 0xB2 give current track # (return payload: 16 Bit little endian) - 0xB3 give current track time (return payload: seconds as 16 Bit little endian) - 0xB4-0xBF reserved Answer to the Inquiry Commands ------------------------------ Byte 1: negated command byte Byte 2: length of "payload", 0-255 bytes Byte 3...n-1: Payload Byte n: Checksum, 8-bit sum of bytes 1 to n-1 Answer to all commands except inquiry commands is 1 byte error code: -------------------------------------------------------------------- 0x00 Success 0x01 Wait (the requested action has been started, but not completed yet, maybe kepp polling?) 0x02-0xFF error codes, tbd -- NEU : GMX Internet.FreeDSL Ab sofort DSL-Tarif ohne Grundgebühr: http://www.gmx.net/dsl _______________________________________________ http://cool.haxx.se/mailman/listinfo/rockboxReceived on 2004-05-12 Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy |