From: Pilfos <pi...@gm...> - 2007-05-23 15:06:43
|
I'll try with if (&::serial_port_create("IHC", $port, $speed, 'none', 'raw')) and unpack to check the data. Thanks! Joel Davidson wrote: > > It looks ok to me, but then I'm no perl whiz. More of a hack. > The only difference I can see it that when you create the port you're > setting port, speed and handshake mode. In my modules I set port, speed, > parity (to 'none'), and 'raw'. Offhand I don't remember if > serial_port_create is position dependent on arguments, but you may want > to check that. > > Does the log show that the data is getting packed correctly? Have you > tried doing an unpack(H*, $cmd) on the transmitted data to verify? > > Joel > -- View this message in context: http://www.nabble.com/Programming-a-new-serial-protocol-tf3417211.html#a10765826 Sent from the Misterhouse - User mailing list archive at Nabble.com. |