Minicom -- want to read data coming in a serial port
Hi everyone.
I have a microchip PIC outputting data via an Rs232 chip....I want to read the data, see the data at the terminal and also log the data to a file. Is minicom the best option for this? I know the data is coming out the serial cable as it works with windows hpeerterminal....but when I configure minicom I am not getting any data. 4800 baud 8N1...the PIC/RS232 chip is sending ASCII characters... numbers... serial port is number 1 and there is only one....so ttyS0 should be the one...have used this port with minicom before so that shouldnt be an issue but how can I test. Thanks for the help. Brian |
Devices can be read just like generic files. So you use cat, head, tail or similar tool to read from those device files, in your case probably /dev/ttyS0. This way you can at least check if the problem is caused by your minicom settings, or that the device is really not triggering any data.
|
cat /dev/ttyS0 gets no data either
Thanks maresmasb
tried reading the data with cat /dev/ttyS0 but I get nothing. Now I know the data is not sent all the time but rather at set intervals. About every 10 seconds. Maybe I need to find a script to do this? Any other suggestions. Thanks again to all Brian |
All times are GMT -5. The time now is 01:49 AM. |