reading a bit ser2net source code...
LINE 745, file: dataxfer.c
tcsendbreak(port->devfd, 0);
*tcsendbreak*() transmits a continuous stream of zero-valued bits for a
specific duration, if the terminal is using asynchronous serial data
transmission. If *duration* is zero, it transmits zero-valued bits for at
least 0.25 seconds, and not more that 0.5 seconds. If *duration* is not
zero, it sends zero-valued bits for some implementation-defined length of
time.
If the terminal is not using asynchronous serial data transmission, *
tcsendbreak*() returns without taking any action.
in other words.... BREAK should set 0 for at least 0.25 seconds = 2400 bits
(at 9600 bauds), 2400bits = +- 240 bytes (10bits per byte)
it´s a very big break right? no problem about it with ds2480b?
2011/11/30 Roberto Spadim <[email protected]>
> hummm
> i was reading some posts... well check if i understood and if it will
> work...
>
> BREAK = 10 bits of '0' in other words..
> i´m using 9600 bauds
> if i send two NULL (0x00) character it will send a stop bit that can by
> '1' instead of '0'
> the first solution is changed speed to 1/4 or 1/2 of default speed (4800
> or 2400) and send one 0x00 byte
> the problem is.. if i´m receiving some byte from serial port it will not
> be detected since my speed is diferent from 9600 (that´s why some unix
> implement baud rate for tx and baudrate for rx..)
>
> the second solution is...
> since i´m using microcontroller, i can set port pin to 0 externally in a
> deterministic time something like
> setpinX=0
> sleep(x milisseconds)
> continue normal uart
>
> ----
> ok i understood now... the idea is my cable is not connect in a uart
> device, so please ds2480b reset...
>
> now my doubt...
> ds2480b send some data while i´m 'breaking'? or it wait break and reset
> after break end?
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers