LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   I need a Advance Serial Port Monitor/Rcvr/Log (https://www.linuxquestions.org/questions/linux-software-2/i-need-a-advance-serial-port-monitor-rcvr-log-54012/)

sfingerh 04-08-2003 08:49 AM

I need a Advance Serial Port Monitor/Rcvr/Log
 
Hi,
I'm working with an external device that is communicating through Serial Port to the PC. In Windows I lose data (few bytes), because my Win98 is "busy" doing something else than receiving.

I know DOS an Win3.1x is OK with this but I want to try it in Linux. Is Linux good in this case? Are there similar problems?

I know the protocol of COM1 (or tty?) and this stuff, but don't know a programm (software in Linux) good for this (maybe there is one good programm for Win too).

I need tor receive and display every byte in Hex format, no lost of data and the posibillity to save the data. This @ 115200bps.

I'm running RH 8.

Thank you

Sebastian Fingerhuth

bentz 04-08-2003 09:03 AM

Com1 == /dev/ttyS0 in Linux.

The software you'll want to look at is 'minicom'.

I hope this gets you pointed in the right direction.

sfingerh 04-08-2003 09:11 AM

Thank you
I tried minicom yesterday, but I'm not sure if minicom receives and showes in Hex format (but I could convert in someway)

Do you know the way Linux handels buffer, relatie receiving and the problemes I talked about in Win?

By
Sebastian

bentz 04-08-2003 10:33 AM

If you need stuff at that low-level, why not just 'cat /dev/ttyS0' (This works, I just tried it)?

I couldn't tell you about buffer handling or drop rates for serial communication while comparing Linux vs. Windows. Linux is probably better :)

sfingerh 04-08-2003 11:25 AM

Thank you,
I didn't know this command and that's what I need: Low Level receiving.
But another question is how to configure speed parity etc.
something like setserial?
And how can I use this cat command? cat /dev/ttySx > name.dat will create a file with all the receiveid data? How can I say to cat, Stop the reception now.

Thanks
sfm

bentz 04-09-2003 10:47 AM

Exactly. setserial can be used to crank of the speed for the serial port. If you use 'cat /dev/ttySx > data.dat &', you can put the command in the background and data will still be written to the log while you use the system. You can view the data file 'live' by using 'tail -f data.dat'. You can stop cat by doing a 'kill `pgrep cat`', assuming no one else is running cat on the system :).


All times are GMT -5. The time now is 10:48 AM.