[time-nuts] rs-422 rs-232 to fast ethernet converter

Paul Alfille paul.alfille at gmail.com
Tue Nov 25 03:38:04 UTC 2014


There is a protocol for ending serial commands over telnet (tcp): RFC2217

See http://tools.ietf.org/html/rfc2217

A number of command line tools, like ser2net and netcat use the protocol.
Some of the small serial servers support it and it can make using serial
remotely tunneled over tcp seamless.

On Mon, Nov 24, 2014 at 6:23 PM, Graham <planophore at aei.ca> wrote:

>
> I have done a bit of searching and found that what I want to do is nothing
> really new and their are several off the shelf applications which will work
> just fine - linux and Windows based hence the mention of the Raspberry PI
> and Beaglebone Black. Some of the higher end Arduinos (i.e. Yu) are capable
> of running linux and Windows as well but it would be entirely possible to
> roll you own using the lower end Arduinos as well.
>
> I found some answers rather quickly after I started searching for the
> right things, for example Serial to Network Proxy.
>
> On Windows you could use a virtual serial port to do the redirecting from
> com port to network and on linux there are several the one I found often
> mentioned is socat.
>
> The little serial to fast ethernet boxes which I was finding would work in
> the situations where you don't have a computer near the device you are
> trying to connect to, they act as the Serial to Network Proxy. In my case,
> I have a computer nearby which runs linux and is my GPS disciplined NTP
> server. I have purchased a RS422 to USB interface cable which will connect
> the KS-24631 to my linux box. Now I just have to sort through all of the
> information I have found and figure out just which app I need on the linux
> box (likely socat) and which one on any of the other computers on my
> network with which I may want to connect to the KS-24631. And of course,
> how to configure them.
>
> cheers, Graham ve3gtc
>
>
>
>
> On 2014-11-24 08:42, Jim Lux wrote:
>
>> On 11/24/14, 2:20 AM, Graham wrote:
>>
>>> Interesting.
>>>
>>> I have also been thinking that it might not be too difficult to
>>> implement using Beaglebone Black, Raspberry PI, or even one or another
>>> flavour of Arduino. Lots of possibilities from simple to not so simple.
>>>
>>>
>>>
>> The challenge is always trying to figure out what sort of protocol to use
>> for encapsulating serial data in the Ethernet Stream.  Do you send each
>> character in its own UDP or TCP datagram? Do you batch them together and
>> send a message every TBD milliseconds.
>>
>> Ideally, you'd like the protocol to match some commonly available client
>> on the other end.  Sure, things like telnet exist, but does software that
>> expects an actual serial port know how to use telnet instead?
>>
>> That said, there's plenty of example code out there for, example, the
>> Arduino Ethernet.  There's a telnet server that could easily be modified.
>>
>>
> _______________________________________________
> time-nuts mailing list -- time-nuts at febo.com
> To unsubscribe, go to https://www.febo.com/cgi-bin/
> mailman/listinfo/time-nuts
> and follow the instructions there.
>



More information about the Time-nuts_lists.febo.com mailing list