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-val
On 11/29/11 10:00 AM, Ákos Gábriel wrote:
> Very nice stuff, thank you!
>
> If I'm right you don't detect structure changes this way automatically, right?
Correct
-- Silvano
> No problem, the idea is great (with the linking) I'll extend the system
> accordingly.
>
> Best,
> Akos
>
>
> 2011.11
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 s
any example for avr32? or other atmel?
2011/11/30 Ziggy
> Depends on the platform. If you have ioctl, it's something like:
> int ioctl(fd, TCSBRK, int arg);
>
> POSIX form should have a specific function, tcsendbreak:
> int tcsendbreak(fd, int arg);
>
> You'll have to check your library to see t
Depends on the platform. If you have ioctl, it's something like:
int ioctl(fd, TCSBRK, int arg);
POSIX form should have a specific function, tcsendbreak:
int tcsendbreak(fd, int arg);
You'll have to check your library to see the specifics, but the ioctl form with
and argument of 0 is usually 250
owserver can run at 9600 baud just fine. Only the passive circuit needs to
vary the baud rate. Actually the baud rate and settings depend on the
specific bus master.
So more accurately, the LINK and DS2480B both run fine at 9600 baud.
The HA7E and HA7S run at 9600 baud, I think.
The HA5 needs 1152
yes, i´m reading it :)
only IAC BREAK is interesting, and IAC IAC (0xff character to serial),
others isn´t
but... could owserver run only with 9600 bauds? it don´t need to change
baud rate?
it only change baud rate for reset? when it need to reset?
how it send reset via serial?
put(fp,break_charac
Does it need to be that complex? Do you really need anything other than IAC
BREAK? I don't believe so. Only if you wish to run the DS2480 at higher than
9600 bps, which is optional. In fact, the data sheet shows that a number of
functions are not supported at higher data rates anyway.
On Nov 29
yeah
what i´m telling is
udp with rfc2217
we can change baud rate via character 0xff (IAC)
and all others characters go via udp protocol :)
just change the owserver to open a udp instead of tcp
and it will never close connection, in other works, we will never know if
other side is online, like
After looking at this a little more closely, I don't think it will work.
What I mentioned earlier is not enough to force a 'start polarity in
place of the stop bit'. The UDP/serial converter is not going to be
capable of changing it's character format so it will still be sending 8
bit data with
=) HEHEHE no problem about file names :)
well, it´s easy to change tcp to udp? maybe a parameter at -d ip:port
maybe -d ip:port:udp
2011/11/29 Paul Alfille
> Telnet support:
>
> module/owlib/src/c/
>
> ow_set_telnet.c Set the parameters
> ow_read_telnet.c Interpret telnet input
> ow_telnet
Telnet support:
module/owlib/src/c/
ow_set_telnet.c Set the parameters
ow_read_telnet.c Interpret telnet input
ow_telnet_write.c Write (just escapes IAC=0xFF)
I know, the file naming isn't consistent.
Paul Alfille
On Tue, Nov 29, 2011 at 2:27 PM, Roberto Spadim wrote:
> where is the rf
where is the rfc2217 implention in owlib?
i want know what commands owserver send to ser2net and start the udp
protocol in microcontroller
2011/11/29 Roberto Spadim
> i will try to develop the rfc2217 in udp
> all data send via udp is sent to serial, but character 0xff allow change
> of baud rat
i will try to develop the rfc2217 in udp
all data send via udp is sent to serial, but character 0xff allow change of
baud rate and others thinks like rfc2217 tells
this could work?
2011/11/29 Roberto Spadim
> uh nice...
> well we could develop the protocol without changing baud rate?
> the r
uh nice...
well we could develop the protocol without changing baud rate?
the reset is need for what? power up? search bus?
could we change tcp to udp? it´s easier to implement in microcontroller
2011/11/29 Ziggy
> You really need to read the datasheet to understand the issues. But the
> big
You really need to read the datasheet to understand the issues. But the
biggest issue is that of resetting the DS2480 itself, not in the 1-wire
commands/data.
You have basically two methods of resetting the chip:
- power cycle the chip
- reset it via software
Hardware
If the 2480 is power s
could we add a parameter to owserver/owhttp or any other owxxx
to execute a command AFTER find sensors function?
with this we could execute this script and make something more
automatic/transparent
2011/11/29 Ákos Gábriel
> Very nice stuff, thank you!
>
> If I'm right you don't detect structure
Very nice stuff, thank you!
If I'm right you don't detect structure changes this way automatically, right?
No problem, the idea is great (with the linking) I'll extend the system
accordingly.
Best,
Akos
2011.11.28. dátummal, 17:56 időpontban Silvano Gai írta:
> You can use this for the moment
Hi Nick,
On 11/29/2011 10:19 AM, nick wrote:
> Hi
>
> I'm working on a custom 1-wire slave (IR sender for some air con
> units), and I picked the DS2431 to emulate for exposing a memory mapped
> interface to the IR sender. The IR sender (already done) and DS2431 code
> is coming together nicely in
hi guys, someone could explain how ds2480b works?
for example, what it must do with serial port (change baud rates, set/read
DTS RTS etc.., send / receive)
most important commands
not all datasheet just some important points
--
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
uhmm, could you send a serial dump ? or something to explain in bytes
what´s happening?
2011/11/29 nick
> Hi
>
> I'm working on a custom 1-wire slave (IR sender for some air con
> units), and I picked the DS2431 to emulate for exposing a memory mapped
> interface to the IR sender. The IR sender
Hi
I'm working on a custom 1-wire slave (IR sender for some air con
units), and I picked the DS2431 to emulate for exposing a memory mapped
interface to the IR sender. The IR sender (already done) and DS2431 code
is coming together nicely in a 12F683 at 4MHz. The master is a LinkUSB,
which no
22 matches
Mail list logo