LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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
  Search this Thread
Old 04-23-2007, 08:12 AM   #1
kingraja84
LQ Newbie
 
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24

Rep: Reputation: 15
minicom@rs232


hi,
A very small doubt

I have two com ports on my pc ,if i connect a rs232 to my com port how can i recognize which terminal driver is activating that com port
eg:/dev/tty1 for com port1
I want to use minicom for debugging my embedded board using print statements
 
Old 04-23-2007, 08:20 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,801

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
/dev/ttyS0 is the device ID for the first serial port.
/dev/ttyS1 is the device ID for the second serial port.

You will need to configure minicom to use the device that is attached to the embedded controller.
 
Old 04-24-2007, 12:01 AM   #3
kingraja84
LQ Newbie
 
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24

Original Poster
Rep: Reputation: 15
hi,

The data what my embedded board sends is in hex format F1,F2 likewise ....does minicom supports for ascii printing or hex format.

if ascii how to get the display in hex format
 
Old 04-24-2007, 02:05 AM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918

Rep: Reputation: 103Reputation: 103
Quote:
I have two com ports on my pc ,if i connect a rs232 to my com port how can i recognize which terminal driver is activating that com port
AFAIK if you do not know you just have to check. Swapping a line on a working port just takes a moment.

Perhaps it would be useful to know:
"To send text to a terminal you may redirect standard output of some command-line command to the appropriate special file. For example typing "echo test > /dev/ttyS1" at the command prompt should send the word "test" to the terminal on ttyS1 (COM2) provided you have write permission on /dev/ttyS1. Similarly, typing "cat my_file > /dev/ttyS0" will send the contents of the file my_file to COM1 (ttyS0)."

Also "screen /dev/ttyS0 115200" works.
 
Old 04-24-2007, 07:04 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,801

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
minicom is ASCII data. You might have to write a program to convert the hex to ASCII. It might be possible to use the conversion table to produce readable text but I have not tried it.
 
Old 03-09-2012, 10:10 PM   #6
uibrahim
LQ Newbie
 
Registered: Feb 2012
Posts: 15

Rep: Reputation: Disabled
Hi!

I have run into similar problem recently. I wanna send out a string "7e 01 09 00 ff ff 53 42 bc b7 7e" to a controller and when I write it on the minicom, I am never sure if it is being sent out as ASCII or Hex. I want it to sent out as Hex. How should I do that?

Thanks!
 
Old 03-10-2012, 06:13 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,801

Rep: Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333Reputation: 6333
uibrahim,
cutecom is a GUI application that is capable of sending/receiving hex data.
 
Old 03-10-2012, 09:05 AM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,717

Rep: Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169Reputation: 8169
Quote:
Originally Posted by uibrahim View Post
Hi!

I have run into similar problem recently. I wanna send out a string "7e 01 09 00 ff ff 53 42 bc b7 7e" to a controller and when I write it on the minicom, I am never sure if it is being sent out as ASCII or Hex. I want it to sent out as Hex. How should I do that?

Thanks!
Same thing you've been asking in your other thread that has received LOTS of replies...no real need to re-open a thread that's five years old and unrelated to your question.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
stop bits for RS232 kumar280279 Linux - Software 1 04-12-2007 07:49 AM
RS232 + Networking Programming lucky6969b Linux - Networking 5 11-29-2005 07:16 PM
USB>RS232 versus PCMCIA>RS232 jayhel Linux - Laptop and Netbook 2 08-04-2005 06:09 PM
using rs232 with linux ams Linux - Networking 1 02-26-2005 05:58 AM
Drivers PCI RS232 mgarcia Linux - General 0 11-21-2003 04:38 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:18 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration