Find the answer to your Linux question:
Results 1 to 5 of 5
Hi, I've done quite a lot of microcontroller programming in C under windows, but I'm wanting to develop code on an embedded Linux system to take RS232 input from a ...
  1. #1
    Just Joined!
    Join Date
    Oct 2008
    Posts
    3

    RS232 to TCP/IP? Software sources?

    Hi, I've done quite a lot of microcontroller programming in C under windows, but I'm wanting to develop code on an embedded Linux system to take RS232 input from a port and send it via TCP/IP to another machine. I'm not sure where to start really. The things I'm new to here are Linux and TCP/IP.
    Well, I have a little experience with Linux but not coding for it.

    It's not a simple RS232 to TCP/IP converter I want to make, or I would just buy a Lantronix device or similar. I'm wanting to manipulate the RS232 strings before I send them.

    Is there any open source software repository that I could look at to see whether i can get any ideas / source code to modify. I've had a look on sourceforge but I'm not sure where else to look.

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    If you are familiar with WinSock, the TCP/IP part will be a walk in the park for you, because both use essentially the BSD style sockets interface with some minor deviations.

    For the RS232, you might want to look into Serial Programming:Serial Linux - Wikibooks, collection of open-content textbooks
    Debian GNU/Linux -- You know you want it.

  3. #3
    Just Joined!
    Join Date
    Oct 2008
    Posts
    3
    Thanks for your reply, but I am almost totally unfamiliar with TCP/IP programming whereas I have used UARTS on micros/VB6/C#. The bit that concerns me is in fact the TCP/IP.

    Any leads to any open source software repositorys?

  4. #4
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    The closest match I know would be the program "netcat" which is a tool that bridges StdIn/Out <-> TCP/UDP.

    But I'd rather recommend you this read:
    Beej's Guide to Network Programming
    I have learned socket programming with it.
    Debian GNU/Linux -- You know you want it.

  5. #5
    Just Joined!
    Join Date
    Oct 2008
    Posts
    3
    Thank you very much for that. I'll do some reading, it's stuff I should learn anyway.

    Tim

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...