From: Denis C. <zyl...@ip...> - 2001-09-29 03:31:39
|
Greetings all I have been modifying the MR26 code to support the X-10 MouseRemote JR21A receiver and the JR20A MouseRemote remote. I have got the module separated and loading very nicely, and almost all = of the commands issued by the JR20A are recognised, but I am having some trouble getting the correct data from the serial port for some of the commands. I should probably point out that this is my first exposure to Perl so it may be a "duh"-type problem :) =20 The commands sent by the JR21A/JR20A are for the most part 3 bytes long (these are fine), however some of the commands are significantly more - 7 I believe (specifically the mouse pad buttons), which are causing a problem. It seems that check_for_generic_serial_data only ever seems to want to return 5 bytes, and I can't figure out why. If it matters, the serial port for the JR21A is in 'raw' mode with 8-n-1 at 1200bps (I guess because the MouseRemote emulates a serial mouse and uses the same serial mouse port speed rather than the faster 9600 of the MR26) Does 'check_for_generic_serial_data' in raw mode timeout after (x)ms and return only what data has been collected after that amount of time? Is there a maximum rx byte setting somewhere? What marks the end of a 'raw' data collection loop of this function? Is anyone else is interested in this code once I have it all working? --=20 -------------------------------------------------------------------------= ---- Denis Cheong | `Today I am zyl...@ip... | a small blue thing | Like a marble | or an eye' | | - Suzanne Vega - -------------------------------------------------------------------------= ---- |