there's a easy ping test for serial adapters? for example, if i plug my serial-onewire converter, could i open putty or another serial program and send "hello" and it will give me "hello"? it's just for easy test (without owfs)
2011/1/31 Mick Sulley <[email protected]>: > OK it just happened again. Started my python program and it failed > with > DEFAULT: ow_reconnect.c:TestConnection(52) Failed to reconnect DS9097 > bus master! > > In a terminal I ran > owhttpd -p 3001 -d /dev/ttyS2 --debug > > and this gave me > > CONNECT: ow_avahi_link.c:OW_Load_avahi_library(72) No Avahi support. > Library libavahi-client couldn't be loaded > CONNECT: ow_dnssd.c:OW_Load_dnssd_library(136) Zeroconf/Bonjour is > disabled since dnssd library isn't found > CALL: ow_parsename.c:FS_ParsedName_anywhere(90) path=[] > DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C > (for simulated adapters) > DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(259) Attempt #0 to > initialize the DS9097U > DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(337) Send the initial > reset to the bus master. > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(488) Failed first attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(493) Failed second attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(488) Failed first attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(493) Failed second attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_write(451) wrong response (CD > not 44) > DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(337) Send the initial > reset to the bus master. > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(488) Failed first attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(493) Failed second attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(488) Failed first attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_read(467) wrong response (70 > not 00) > DEBUG: ow_ds9097U.c:DS2480_set_baud_control(493) Failed second attempt > at resetting baud rate of bus master /dev/ttyS2 > DEBUG: ow_ds9097U.c:DS2480_configuration_write(451) wrong response (CD > not 44) > > > I opened up a browser on http://localhost:3001/ and it says unable to > connect. > > The serial port looks OK > mick@mick-desktop:~$ dmesg | grep tty > [ 0.000000] console [tty0] enabled > [ 0.489257] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > [ 0.489554] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A > [ 14.681524] 0000:03:07.0: ttyS1 at I/O 0xdf00 (irq = 17) is a 16550A > [ 14.681616] 0000:03:07.0: ttyS2 at I/O 0xde00 (irq = 17) is a 16550A > mick@mick-desktop:~$ > > > I then rebooted and it all works fine! > > Any idea what could cause this problem? > > Thanks > > Mick > > > > ------------------------------------------------------------------------------ > Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! > Finally, a world-class log management solution at an even better price-free! > Download using promo code Free_Logger_4_Dev2Dev. Offer expires > February 28th, so secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsight-sfd2d > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > -- Roberto Spadim Spadim Technology / SPAEmpresarial ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
