LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
LinkBack Search this Thread
Old 10-13-2004, 09:29 AM   #1
max76
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Serial loopback


Hi all,

it's possible to create two virtual serial device wich write and read from file or a pipe?
If yes, how?

I need it for debugging purpose because my notebook has only one serial port so i can't use a null-modem.
It also impossible to use two separate thread, to read and write from the same port , due to mutual-lock problem.

Any ideas?

Thank's, Max

P.S. Sorry, english is not my language.....
 
Old 10-13-2004, 03:00 PM   #2
igjesdal
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
In linux you can use ptys: f.ex. /dev/ptyp0 as master (must be opened first) and /dev/ttyp0 as slave.

Regards,
Ingvald
 
Old 10-14-2004, 10:24 AM   #3
max76
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Original Poster
Rep: Reputation: 0
Thank's igjesdal,

i had tested it but seems not work with java commapi.
i think I'll must change the debug-mode.

Max
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RH doesn't detect my Serial modem connected to a PCI Serial card ricky_ds Linux - Hardware 1 08-17-2006 02:37 PM
USB to Serial Converter on Serial Modem bongski55 Linux - General 3 08-29-2005 10:04 AM
serial sync loopback error? mjwnijkamp Linux - Laptop and Netbook 0 05-10-2004 10:09 AM
zoom external serial with usb to serial adapter foustware Linux - Hardware 1 12-07-2003 02:02 AM
Loopback won't come up Paul_assheton Linux - Networking 8 05-20-2003 08:31 AM


All times are GMT -5. The time now is 03:53 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration