Dear List,
i finally debugged why the LINK isnt working - in --LINK mode ...
on current ubuntu :
p...@pr-laptop:~$ uname -a
Linux pr-laptop 2.6.32-25-generic #45-Ubuntu SMP Sat Oct 16 19:48:22 UTC 2010
i686 GNU/Linux
two things:
1.) it definitely needs RTS turned on !
2.) upon sending a break - which is done when (re)setting the baudrate
to 9600, the LINK responds with "LinkUSB V1.4" - which gets not flushed
before sending the "r" command ... and therefore the response to the "r"
command is not cought by owfs ...
this little patch helps out ... ;)
however, emulation mode does not work either on current ubuntu ...
as i plan on creating the final disk image for our project it would be
nice for a fixed version to come out ... paul, how are your plans ?!?!
regards,
marcus.
diff -ur owfs-2.8p2/module/owlib/src/c/ow_link.c owfs-2.8p2_work/module/owlib/src/c/ow_link.c
--- owfs-2.8p2/module/owlib/src/c/ow_link.c 2010-08-27 04:01:30.000000000 +0200
+++ owfs-2.8p2_work/module/owlib/src/c/ow_link.c 2010-10-20 19:09:50.000000000 +0200
@@ -164,10 +164,6 @@
case bus_elink:
return LINK_net_detect( in ) ;
case bus_link:
- in->flow_control = flow_none ;
- RETURN_GOOD_IF_GOOD( LINK_serial_detect(in) ) ;
- in->flow_control = flow_none ;
- RETURN_GOOD_IF_GOOD( LINK_serial_detect(in) ) ;
in->flow_control = flow_hard ;
return LINK_serial_detect(in) ;
default:
@@ -309,7 +305,8 @@
// Find rate parameter
switch ( in->baud ) {
case B9600:
- COM_break(in) ;
+ COM_break(in);
+ COM_flush(in);
return ;
case B19200:
speed_code = "," ;
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers