I'm having a strange issue getting owhttpd to work on a pc-engines WRAP board 
(an older x86 AMD geode board) using the std serial port and a LINK. I'm 
running 
OpenWRT. When I just run
owhttpd -d /dev/ttyS0 --debug
it hangs (see below). But if I then run minicom I can get to the LINK just fine 
(e.g. I can type h to get the help). If I then ctrl-a Q out of minicom (exit 
without resetting the modem) then the same owhttpd command works great. If I 
run 
minicom again and exit normally having it reset the modem then owhttpd fails 
again. This is 100% reproducible. Any ideas as to what could be up here?

Linux version 3.3.8 (blogic@buildserver-1) (gcc version 4.6.3 20120201 
(prerelease) (Linaro GCC 4.6-2012.02) ) #1 Tue Nov 13 14:26:41 UTC 2012
root@OpenWrt:~# owhttpd --version
owhttpd version:
        2.8p13
libow version:
        2.8p13

Here's the output when owhttpd fails:

root@OpenWrt:~# owhttpd -d /dev/ttyS0 --debug
CONNECT: owhttpd.c:main(75) owhttpd will use an ephemeral port
  DEBUG: ow_daemon.c:EnterBackground(166) main thread id = 3078366864
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(95) path=[]
  DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C (for 
simulated adapters)
  DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(267) Attempt #0 to 
initialize 
the DS9097U
  DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(356) Send the initial reset to 
the 
bus master.
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
  DEBUG: ow_ds9097U.c:DS2480_configuration_read(434) wrong response (B7 not 00)
  DEBUG: ow_ds9097U.c:DS2480_set_baud_control(449) Failed first attempt at 
resetting baud rate of bus master /dev/ttyS0
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
  DEBUG: ow_ds9097U.c:DS2480_configuration_read(434) wrong response (B7 not 00)
  DEBUG: ow_ds9097U.c:DS2480_set_baud_control(454) Failed second attempt at 
resetting baud rate of bus master /dev/ttyS0
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
CONNECT: ow_tcp_read.c:tcp_read(110) TIMEOUT after 0 bytes
  DEBUG: ow_ds9097U.c:DS2480_configuration_read(434) wrong response (B7 not 00)
  DEBUG: ow_ds9097U.c:DS2480_set_baud_control(449) Failed first attempt at 
resetting baud rate of bus master /dev/ttyS0
...

Here's the output when it succeeds:
root@OpenWrt:~# owhttpd -d /dev/ttyS0 --debug
CONNECT: owhttpd.c:main(75) owhttpd will use an ephemeral port
  DEBUG: ow_daemon.c:EnterBackground(166) main thread id = 3077707408
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(95) path=[]
  DEBUG: owlib.c:SetupTemperatureLimits(79) Globals temp limits 0C 100C (for 
simulated adapters)
  DEBUG: ow_ds9097U.c:DS2480_initialize_repeatedly(267) Attempt #0 to 
initialize 
the DS9097U
  DEBUG: ow_ds9097U.c:DS2480_big_reset_serial(356) Send the initial reset to 
the 
bus master.
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1
  DEBUG: ow_tcp_read.c:tcp_read(64) attempt 1 bytes Time: 5.000000 seconds
  DEBUG: ow_tcp_read.c:tcp_read(114) read: 1 - 0 = 1




------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122912
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to