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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-23-2007, 08:12 AM
|
#1
|
LQ Newbie
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24
Rep:
|
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
|
|
|
04-23-2007, 08:20 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,801
|
/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.
|
|
|
04-24-2007, 12:01 AM
|
#3
|
LQ Newbie
Registered: Aug 2006
Location: India
Distribution: suse,mandriva
Posts: 24
Original Poster
Rep:
|
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
|
|
|
04-24-2007, 02:05 AM
|
#4
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep: 
|
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.
|
|
|
04-24-2007, 07:04 AM
|
#5
|
Moderator
Registered: Aug 2002
Posts: 26,801
|
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.
|
|
|
03-09-2012, 10:10 PM
|
#6
|
LQ Newbie
Registered: Feb 2012
Posts: 15
Rep: 
|
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!
|
|
|
03-10-2012, 06:13 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,801
|
uibrahim,
cutecom is a GUI application that is capable of sending/receiving hex data.
|
|
|
03-10-2012, 09:05 AM
|
#8
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,717
|
Quote:
Originally Posted by uibrahim
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.
|
|
|
All times are GMT -5. The time now is 07:18 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|