LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Help with minicom, i am using SL6 (https://www.linuxquestions.org/questions/linux-software-2/help-with-minicom-i-am-using-sl6-4175717328/)

botogoske 09-30-2022 04:28 PM

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

rtmistler 09-30-2022 05:01 PM

Quote:

Originally Posted by botogoske (Post 6383694)
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?

Ser Olmy 09-30-2022 05:19 PM

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.

botogoske 10-02-2022 10:01 AM

Quote:

Originally Posted by rtmistler (Post 6383696)
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 (Post 6383698)
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!!!

rtmistler 10-02-2022 11:11 AM

Quote:

Originally Posted by botogoske (Post 6383909)
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?

Ser Olmy 10-02-2022 11:13 AM

Quote:

Originally Posted by botogoske (Post 6383909)
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.

botogoske 10-03-2022 11:06 AM

Quote:

Originally Posted by rtmistler (Post 6383921)
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 (Post 6383924)
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

Ser Olmy 10-03-2022 11:18 AM

Quote:

Originally Posted by botogoske (Post 6384105)
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.

botogoske 10-03-2022 11:31 AM

Quote:

Originally Posted by Ser Olmy (Post 6384109)
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

michaelk 10-03-2022 11:43 AM

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?

botogoske 10-03-2022 11:56 AM

Quote:

Originally Posted by michaelk (Post 6384117)
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

rtmistler 10-03-2022 11:58 AM

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.

botogoske 10-03-2022 01:05 PM

Quote:

Originally Posted by rtmistler (Post 6384122)
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

michaelk 10-03-2022 01:09 PM

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.

botogoske 10-03-2022 01:20 PM

Quote:

Originally Posted by michaelk (Post 6384134)
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]


All times are GMT -5. The time now is 03:07 PM.