![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Ubuntu Ubuntu is a complete desktop Linux operating system, freely available with both community and professional support. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Redirect an application with a Serial connection | Sunb3 | SUN Solaris | 7 | 12-24-2008 03:40 PM |
| Device serial number | noratx | Linux | 2 | 11-19-2008 01:54 PM |
| Pro Application Replacement Serial Numbers | iBot | OS X Support RSS | 0 | 10-31-2008 05:50 PM |
| Accessing device with Prolific USB-serial controller. | monkeybiz | High Level Programming | 1 | 06-11-2007 04:20 PM |
| serial port device path | tyskertøs | UNIX for Dummies Questions & Answers | 6 | 08-05-2004 11:22 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Hello!
I am working on an application which reads environmental instruments which have serial ports. The application requires a serial port to be present to talk to the device (i.e. /dev/ttyS0 ). In some instances the environmental devices will be 100's of yards away from the computer, so a serial cable becomes a liability. In these scenarios we would like to use a multi-port terminal server which serves up multiple serial connections via telnet. I have almost solved the problem...but need some help finishing. DETAILS: The configuration we have is: Computer/Ubuntu 9.04 --> Ethernet ----> Telnet Based Serial Device Server --> Serial Device I have run remserial and am able to interact with the serial device using socat or netcat from the terminal. However, SJINN as with as other serial port viewers are unable to connect to the generated pseudo serial port. I get an error about ioctrl. DETAILED STEPS I FOLLWED: 1) Create a file in /dev called “remserial1” and chmod this to 777. 2) Run Code:
./remserial -d -r XXX.XXX.XXX.XXX -p 10001 -l /dev/remserial1 /dev/ptmx & Code:
socat - /dev/remserial1,raw,crnl & The Issue: When I use a normal serial viewer (in this case SJINN or Serial Port Terminal gtkterm) with gtkterm I get “Control signals read: Invalid argument”. With SJINN I get an error involving ioctrl. I believe that it has to do with trying to read a pseudo terminal, but am at my wits end , any advice would be appreciated. Also, before linking netcat or socat examples, please remember that an application on the computer must speak with a serial port, which is then relayed over telnet and back to a serial device without buying some serial port redirector package. |
|
||||
|
I used some command like
Code:
echo " " > /dev/remserial1; chmod 777 remserial1 ![]() Quote:
|
|
||||
|
What does it do, exactly?
Quote:
---------- Post updated at 02:34 PM ---------- Previous update was at 02:26 PM ---------- That's a very odd way to create a device file... Have you tried not doing this and just letting remserial create the device itself? |
|
||||
|
I thought that you needed a fifo file for simultating serial communication? You should try something along the lines of:
Code:
mkfifo /dev/remserial1 |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Tags |
| pseudo terminal, remserial, serial connection, telnet |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|