LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-30-2022, 04:28 PM   #1
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Rep: Reputation: 0
Help with minicom, i am using SL6


Hello

I am trying with a ucontroller using minicom.
When i use with SL6 (Scientific Linux 6), when i start minicom i get no response, only:

----------------------------------------------
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Mar 22 2017, 12:42:01.
Port /dev/ttyUSB2

Press CTRL-A Z for help on special keys
----------------------------------------------------

I know it work, because when i use my laptop with ubuntu 20 it works. But due software question with the programs i am using i realy need to use SL6.

Thank you in advance
 
Old 09-30-2022, 05:01 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by botogoske View Post
Hello

I am trying with a ucontroller using minicom.
When i use with SL6 (Scientific Linux 6), when i start minicom i get no response, only:

----------------------------------------------
Welcome to minicom 2.3

OPTIONS: I18n
Compiled on Mar 22 2017, 12:42:01.
Port /dev/ttyUSB2

Press CTRL-A Z for help on special keys
----------------------------------------------------

I know it work, because when i use my laptop with ubuntu 20 it works. But due software question with the programs i am using i realy need to use SL6.

Thank you in advance
That seems a normal response, so are you saying CTRL-X or CTRL-A Z doesn't work? Did you start it as root, or use sudo?
 
Old 09-30-2022, 05:19 PM   #3
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Change the flow control settings (CTRL-A-O -> Serial port settings -> F and/or G).

If you get no response, it's probably because Minicom expects a handshake line to go active, while the equipment isn't using hardware handshaking at all.
 
Old 10-02-2022, 10:01 AM   #4
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
That seems a normal response, so are you saying CTRL-X or CTRL-A Z doesn't work? Did you start it as root, or use sudo?
It works, but i cant type or send anything to the hardware i am communicating

Quote:
Originally Posted by Ser Olmy View Post
Change the flow control settings (CTRL-A-O -> Serial port settings -> F and/or G).

If you get no response, it's probably because Minicom expects a handshake line to go active, while the equipment isn't using hardware handshaking at all.
I already put NO flow control in hardware and software, and in my Ubuntu machine it works!!!

Last edited by botogoske; 10-02-2022 at 10:05 AM.
 
Old 10-02-2022, 11:11 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Quote:
Originally Posted by botogoske View Post
It works, but i cant type or send anything to the hardware i am communicating
Well you can turn on local terminal echo to confirm the appnis working.

Have you confirmed that the resource is ttyUSB2? Nothing saying it's going to be identical from distro to distro And what about echo to or cat from that resource?
 
Old 10-02-2022, 11:13 AM   #6
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by botogoske View Post
I already put NO flow control in hardware and software, and in my Ubuntu machine it works!!!
It would have been helpful if you had mentioned that in your initial post.

That leaves the speed settings, and of course the actual serial port device name, as mentioned by rmistler.
 
Old 10-03-2022, 11:06 AM   #7
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
Well you can turn on local terminal echo to confirm the appnis working.

Have you confirmed that the resource is ttyUSB2? Nothing saying it's going to be identical from distro to distro And what about echo to or cat from that resource?
The terminal Local echo works fine, with ctrl a + e.

I typed in terminal
Code:
ls /dev/ttyUSB*
, and only appears
Code:
/dev/ttyUSB2
Quote:
Originally Posted by Ser Olmy View Post
It would have been helpful if you had mentioned that in your initial post.

That leaves the speed settings, and of course the actual serial port device name, as mentioned by rmistler.
Sorry, for not mentioning
So i put the speed to 460800 , 8N1

Last edited by botogoske; 10-03-2022 at 11:07 AM.
 
Old 10-03-2022, 11:18 AM   #8
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,345

Rep: Reputation: Disabled
Quote:
Originally Posted by botogoske View Post
The terminal Local echo works fine, with ctrl a + e.

I typed in terminal
Code:
ls /dev/ttyUSB*
, and only appears
Code:
/dev/ttyUSB2


Sorry, for not mentioning
So i put the speed to 460800 , 8N1
And you're sure that's correct?

The 8N1 part seems reasonable, but 460800 is just ridiculously fast for most terminal applications, and wouldn't even be supported by many serial ports, as older chips max out at 115200.
 
Old 10-03-2022, 11:31 AM   #9
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Ser Olmy View Post
And you're sure that's correct?

The 8N1 part seems reasonable, but 460800 is just ridiculously fast for most terminal applications, and wouldn't even be supported by many serial ports, as older chips max out at 115200.
yeah, its correct
 
Old 10-03-2022, 11:43 AM   #10
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,764

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
It almost looks like ttyUSB2 is a "stale" device. If you unplug and reconnect the device does the system create ttyUSB2?

Do you have any udev rules to always create ttyUSB2 for this device?
 
Old 10-03-2022, 11:56 AM   #11
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
It almost looks like ttyUSB2 is a "stale" device. If you unplug and reconnect the device does the system create ttyUSB2?

Do you have any udev rules to always create ttyUSB2 for this device?
No, it changes the port name. Now its in USB0, but i always change this in minicom port configuration, so thats not the problem
 
Old 10-03-2022, 11:58 AM   #12
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931Reputation: 4931
Well if you confirm the device name, you can use stty to see the port settings, and adjust them actually. Determine if 460800 is valid or something else.

You actually can use two terminals, one to echo to the port and one to cat the output from the port:
Code:
$ cat /dev/ttyUSB2
And in the other terminal:
Code:
$ echo "stuff" > /dev/ttyUSB2
To test operation.
 
Old 10-03-2022, 01:05 PM   #13
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by rtmistler View Post
Well if you confirm the device name, you can use stty to see the port settings, and adjust them actually. Determine if 460800 is valid or something else.

You actually can use two terminals, one to echo to the port and one to cat the output from the port:
Code:
$ cat /dev/ttyUSB2
And in the other terminal:
Code:
$ echo "stuff" > /dev/ttyUSB2
To test operation.
Ok, i did this and got nothing in the terminal that i wrote the cat command
 
Old 10-03-2022, 01:09 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,764

Rep: Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931Reputation: 5931
It would be nice to know more about this ucontroller and what chipset it is using. Post the output of the lsusb command for the device.
 
Old 10-03-2022, 01:20 PM   #15
botogoske
LQ Newbie
 
Registered: Sep 2022
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by michaelk View Post
It would be nice to know more about this ucontroller and what chipset it is using. Post the output of the lsusb command for the device.
Here it is

Bus 001 Device 007: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP2102/CP2109 UART Bridge Controller [CP210x family]
 
  


Reply



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
[SOLVED] Install CentOS or SL6 on Dell Precision M6500 w/ ATI M7820 artvarck Linux - Laptop and Netbook 3 07-22-2011 11:30 PM
[SOLVED] Anjuta IDE not installing on SL6? szboardstretcher Linux - Software 2 06-28-2011 12:32 PM
gnome-do like application for SL6/Rhel6? szboardstretcher Linux - Software 1 06-23-2011 02:51 PM
LXer: Install Oracle 11gR2 on SL6 KVM at KVM-QEMU Instance on SL 6 (alpha 3) LXer Syndicated Linux News 2 01-01-2011 06:42 AM
Minicom via ttyS0: Please help with $TERM, $MINICOM, colors, mouse/gpm. GrapefruiTgirl Linux - Software 2 07-19-2008 07:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 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