Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-08 Thread Paul Alfille
An alternative to writing your own software is using 'socat' which can
interface between a tcp port and serial port (perhaps using a raspberry pi
or the like as the interface). It apparently has settings for separate
ispeed and ospeed. Its competitor, ser2net, doesn't seem to have that
ability.

This way you can create a virtual serial port with the baud rate details
hidden.

As for whether all this would work on current hardware -- I haven't tested
because I haven't had reason to try, nor the hardware to test it on. I can
tell you, as I noted above, that changing baud rates on the fly works, even
with telnet connections using RFC2217 commands, since I use that with
1-wire work. The only problems were some of the stranger settings, like
6-bit words.

Paul Alfille


On Sat, Dec 7, 2013 at 3:18 PM, Hal Murray hmur...@megapathdsl.net wrote:


 b...@lysator.liu.se said:
  Looking at the stty unix command. It seems clear that split baud rates
 has
  been supported at one time.

 On Linux, man termios gives lots of API details.

 On NetBSD and FreeBSD, that gets an overview.  man tcsetattr gets the API
 details.

 If you use stty to change things, the new info is sticky.  So if you have a
 program that is all set to go except that the baud rates aren't right and
 that program doesn't smash the baud rates, you can set them with stty and
 your program should work.  I haven't tried it with split baud rates, but
 the
 normal (non-split) case works.

 If your gizmo uses simple ASCII, you can test things with cat /dev/wherever
 and things like this on another terminal
   echo blah blah...  /dev/wherever


 --
 These are my opinions.  I hate spam.



 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to
 https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-08 Thread Henry Hallam
You could also consider making a simple gadget with your
microcontroller of choice, that presents an interface to the PC of a
fixed baud rate (perhaps 115200) and handles the weirdo split rates
for the GPS gadget on one or two of its other ports.

Henry

On Sat, Dec 7, 2013 at 12:18 PM, Hal Murray hmur...@megapathdsl.net wrote:

 b...@lysator.liu.se said:
 Looking at the stty unix command. It seems clear that split baud rates has
 been supported at one time.

 On Linux, man termios gives lots of API details.

 On NetBSD and FreeBSD, that gets an overview.  man tcsetattr gets the API
 details.

 If you use stty to change things, the new info is sticky.  So if you have a
 program that is all set to go except that the baud rates aren't right and
 that program doesn't smash the baud rates, you can set them with stty and
 your program should work.  I haven't tried it with split baud rates, but the
 normal (non-split) case works.

 If your gizmo uses simple ASCII, you can test things with cat /dev/wherever
 and things like this on another terminal
   echo blah blah...  /dev/wherever


 --
 These are my opinions.  I hate spam.



 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.
___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-07 Thread Paul Alfille
The posix C library supports this. http://linux.die.net/man/3/tcsetattr
with the cfsetispeed and cfsetospeed functions.

We do something similar to synthesize 1-wire protocol with the serial port
by switching between baud rates to change from data to reset pulses. It
works pretty well depending on how well your usb-serial convertor supports
corner cases.

Of course this requires writing your own software.

Paul Alfille


On Fri, Dec 6, 2013 at 11:48 PM, James Tucker james.d.tuc...@gmail.comwrote:

 Björn;

 What platforms (HW and OS) are we considering?  If I were writing the
 software, I'd seriously consider using two ports.

 JimT

 Sent from *my* galaxy (Nexus).
 On Dec 6, 2013 9:33 PM, Björn b...@lysator.liu.se wrote:

  Hi,
 
  I am looking for current serial adapters that support split baud rates.
  That is different input and output baud rate.
 
  Grateful for suggestions!
 
  kind regards,
 
   Björn
 
  ___
  time-nuts mailing list -- time-nuts@febo.com
  To unsubscribe, go to
  https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
  and follow the instructions there.
 
 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to
 https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-07 Thread Björn
Tom, Bob  James,   (will answer in one response, to save some bandwidth)

I have a GPS receiver that is hard configured at 19200baud one way, and
76800baud the other.

The most convinient would be a USB serial adapter, but ExpressCard or
PC-CARD is also ok. PCI/PCIE is better than nothing.

HW is a laptop. Preferably a modern one. But one with PCMCIA is also ok.

I have a (binary only) windows program that I need to run. Windows version
either XP or preferably win7. But I am interested in running the adapter
in linux also.

In Linux I can arrange with combining two serial ports, since I have the
source. In MSWindows I do not have that luxuary.

Have seen reference to the bb-elec stuff. The closest I found now is

http://www.bb-elec.com/Products/Datasheets/232brc_0812DSds.pdf

which convert baud rates, but I think not in the way I wish.

I have looked but not fully digested if the advanced async/sync serial
adapters can do split baud rates.

 http://www.commtech-fastcom.com/data_sheets/sab82532.pdf

It seems there was a time in the distant past where this was more common.

Setting the input baud rate to zero was a mechanism to allow for
split   baud rates. Clarifications in this volume of IEEE Std
1003.1-2001 have   made it possible to determine whether split
rates are supported and to   support them without having to treat
zero as a special case.

 http://manpages.ubuntu.com/manpages/hardy/man3/cfgetispeed.3posix.html

Here is an (obsolete, but with documentation from 2009 its not ancient)
serial controller from Exar

The Independent TX/RX Baud Rate Generator feature allows the transmitter
and receiver to operate at different baud rates.


http://www.exar.com/connectivity/uart-and-bridging-solutions/8-bit-vlio-uarts/xr16m680

Looking at the stty unix command. It seems clear that split baud rates
has been supported at one time.

http://www.openbsd.org/cgi-bin/man.cgi?query=sttysektion=1

 ispeed number
 Set terminal input baud rate to the number given, if
 possible.  If the input baud rate is set to zero, the input
 baud rate is set to the value of the output baud rate.

 ospeed number
 Set terminal output baud rate to the number given, if
 possible.  If the output baud rate is set to zero, modem
 control is no longer asserted.

 speed number
 This sets both ispeed and ospeed to number.

With this much hinting, I was hoping there was still some hardware out
there supporting split baud rates.

kind regards,

Björn

 Björn,

 If you can't find a black box that does this, just use two serial ports:
 Rx from one and the Tx from the other. On the software side it means
 opening two devices, but that shouldn't be hard to handle.

 Note bb-elec.com used to make a cute 4-port serial concentrator that would
 allow you to configure different baud rates in/out, but I see that's no
 longer a current product.

 Of course you could do all this with a micro or SBC, but I assume you're
 looking for a turn-key device rather than a homebrew project.

 /tvb

 - Original Message -
 From: Björn b...@lysator.liu.se
 To: time-nuts@febo.com
 Sent: Friday, December 06, 2013 4:14 PM
 Subject: [time-nuts] OT : different Rx and Tx baud rate on same port


 Hi,

 I am looking for current serial adapters that support split baud rates.
 That is different input and output baud rate.

 Grateful for suggestions!

 kind regards,

  Björn



 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to
 https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-07 Thread Bob Stewart
Here is a snippet of code from a program in C I have running on Linux.  
Notice that I had to set both the input and output baud rates.  After looking 
around on the web, it seems to be a matter of whether the hardware will support 
split baud rate.  So, essentially, code it and try it.

   cfsetospeed(tioPLL,B4800); // 4800 baud
   cfsetispeed(tioPLL,B4800); // 4800 baud
   tcsetattr(ttyPLL,TCSANOW,tioPLL);


Bob
___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-07 Thread Björn
Paul,

 The posix C library supports this. http://linux.die.net/man/3/tcsetattr
 with the cfsetispeed and cfsetospeed functions.

Yes, but do the serial device drivers (still) support it? Is there
hardware supporting it?


--

Björn

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-07 Thread Hal Murray

b...@lysator.liu.se said:
 Looking at the stty unix command. It seems clear that split baud rates has
 been supported at one time. 

On Linux, man termios gives lots of API details.

On NetBSD and FreeBSD, that gets an overview.  man tcsetattr gets the API 
details.

If you use stty to change things, the new info is sticky.  So if you have a 
program that is all set to go except that the baud rates aren't right and 
that program doesn't smash the baud rates, you can set them with stty and 
your program should work.  I haven't tried it with split baud rates, but the 
normal (non-split) case works.

If your gizmo uses simple ASCII, you can test things with cat /dev/wherever
and things like this on another terminal
  echo blah blah...  /dev/wherever


-- 
These are my opinions.  I hate spam.



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


[time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-06 Thread Björn
Hi,

I am looking for current serial adapters that support split baud rates.
That is different input and output baud rate.

Grateful for suggestions!

kind regards,

 Björn

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-06 Thread Bob Camp
Hi

What kind of interface? 

Bob

On Dec 6, 2013, at 7:14 PM, Björn b...@lysator.liu.se wrote:

 Hi,
 
 I am looking for current serial adapters that support split baud rates.
 That is different input and output baud rate.
 
 Grateful for suggestions!
 
 kind regards,
 
 Björn
 
 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-06 Thread James Tucker
Björn;

What platforms (HW and OS) are we considering?  If I were writing the
software, I'd seriously consider using two ports.

JimT

Sent from *my* galaxy (Nexus).
On Dec 6, 2013 9:33 PM, Björn b...@lysator.liu.se wrote:

 Hi,

 I am looking for current serial adapters that support split baud rates.
 That is different input and output baud rate.

 Grateful for suggestions!

 kind regards,

  Björn

 ___
 time-nuts mailing list -- time-nuts@febo.com
 To unsubscribe, go to
 https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
 and follow the instructions there.

___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.


Re: [time-nuts] OT : different Rx and Tx baud rate on same port

2013-12-06 Thread Tom Van Baak
Björn,

If you can't find a black box that does this, just use two serial ports: Rx 
from one and the Tx from the other. On the software side it means opening two 
devices, but that shouldn't be hard to handle.

Note bb-elec.com used to make a cute 4-port serial concentrator that would 
allow you to configure different baud rates in/out, but I see that's no longer 
a current product.

Of course you could do all this with a micro or SBC, but I assume you're 
looking for a turn-key device rather than a homebrew project.

/tvb

- Original Message - 
From: Björn b...@lysator.liu.se
To: time-nuts@febo.com
Sent: Friday, December 06, 2013 4:14 PM
Subject: [time-nuts] OT : different Rx and Tx baud rate on same port


Hi,

I am looking for current serial adapters that support split baud rates.
That is different input and output baud rate.

Grateful for suggestions!

kind regards,

 Björn



___
time-nuts mailing list -- time-nuts@febo.com
To unsubscribe, go to https://www.febo.com/cgi-bin/mailman/listinfo/time-nuts
and follow the instructions there.