AE sysadmin
2008-Mar-03 13:07 UTC
[Nut-upsdev] anybody familiar with these init(?) sequences?
Hi, I am unable to monitor my RS232S connected device with any of the monitors I have tried - either splitting COM1 or sharing it results in device side timeouts. I did not test the device from NUT as it is not supported officially anyway and as I want to do my best to make sure that I am doing things cleanly. The init sequences that the Windows based monitoring app is sending are the following: 51 31 0d 51 31 0d 51 31 0d 51 31 0d 43 46 0d 43 46 0d 43 46 0d 43 46 0d Quick grep on NUT src did not show anything comprehensible for me. Maybe anyone of you had seen these numbers before? (yes, I know, the device product name is missing in my mail). Would be grateful for any pointers. Vova -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.alioth.debian.org/pipermail/nut-upsdev/attachments/20080303/097da2b5/attachment.htm
Kjell Claesson
2008-Mar-03 16:23 UTC
[Nut-upsdev] anybody familiar with these init(?) sequences?
Den Monday 03 March 2008 14.07.17 skrev AE sysadmin:> Hi, >Hi Vova,> I am unable to monitor my RS232S connected device with > any of the monitors I have tried - either splitting COM1 or > sharing it results in device side timeouts. > > I did not test the device from NUT as it is not supported officially > anyway and as I want to do my best to make sure that I am > doing things cleanly. > > The init sequences that the Windows based monitoring app is > sending are the following: > > 51 31 0d > 51 31 0d > 51 31 0d > 51 31 0d >Q1<cr>> 43 46 0d > 43 46 0d > 43 46 0d > 43 46 0dCF<cr> And this look exactly as a megatec protocol.> > Quick grep on NUT src did not show anything comprehensible > for me. Maybe anyone of you had seen these numbers before? >You had to grep for the ascii representative of the hex nubers you got from the monitor.> (yes, I know, the device product name is missing in my mail). > > > Would be grateful for any pointers.Try the megatec driver. Regards Kjell
Charles Lepple
2008-Mar-06 04:37 UTC
[Nut-upsdev] anybody familiar with these init(?) sequences?
On Wed, Mar 5, 2008 at 8:18 PM, AE sysadmin <ae.tech.i at gmail.com> wrote:> Hi list, > > What would you recommend as the best RS232C monitor for > Linux to start with?I use strace. You can attach to a running process with "-p <pid>", and you can tell it to dump hex versions of the I/O data with "-xx". If it truncates the strings (may happen with long megatec responses) you can use "-s 255" or something to dump more characters per read/write call. -- - Charles Lepple