[arch-general] Connection through USB to TTL Serial Cable
Hello, I have a FTDI TTL-232RG-VREG3V3-WE USB to TTL Serial Cable. On my Arch linux I want to setup a connection through this cable. How can I achieve this goal? The output of the 'lsusb' command is: Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC I'm trying to follow steps described here: http://linux-sunxi.org/Cubieboard/TTL but I have more difficulties. 1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR. 2. There is no '/dev/ttyUSB0' on my system here. So eg. screen /dev/ttyUSB0 115200 doesn't work here: Cannot exec '/dev/ttyUSB0': No such file or directory I can't find any advices on Arch Wiki. Any advices will be appreciated! -- Regards from Pal
Hey Csanyi, I am not familliar with what you are trying to do but I thought I would do what I could to help, There are 2 packages that contain a binary called 'cu': [alan@ditto ~]$ pkgfile -s cu community/nltk-data community/uucp You can use pkgfile to find any binary or file that you need as I did above. Hope this helps, Alan Jenkins On Wed, 20 May 2015 at 19:55 Csányi Pál <csanyipal@gmail.com> wrote:
Hello,
I have a FTDI TTL-232RG-VREG3V3-WE USB to TTL Serial Cable.
On my Arch linux I want to setup a connection through this cable.
How can I achieve this goal?
The output of the 'lsusb' command is: Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I'm trying to follow steps described here: http://linux-sunxi.org/Cubieboard/TTL
but I have more difficulties.
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR. 2. There is no '/dev/ttyUSB0' on my system here.
So eg. screen /dev/ttyUSB0 115200
doesn't work here: Cannot exec '/dev/ttyUSB0': No such file or directory
I can't find any advices on Arch Wiki.
Any advices will be appreciated!
-- Regards from Pal
On Wed, 20 May 2015 20:55:16 +0200, Csányi Pál wrote:
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR.
https://www.archlinux.org/packages/community/x86_64/uucp/files/ -- It only looks like a tape-recorder. It's actually a pen. So you can write with it and no one will know.
It''s part of the UUCP package. On 05/20/2015 02:03 PM, Ralf Mardorf wrote:
On Wed, 20 May 2015 20:55:16 +0200, Csányi Pál wrote:
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR. https://www.archlinux.org/packages/community/x86_64/uucp/files/
Hi On Wed, May 20, 2015 at 11:55 AM, Csányi Pál <csanyipal@gmail.com> wrote:
Hello,
I have a FTDI TTL-232RG-VREG3V3-WE USB to TTL Serial Cable.
On my Arch linux I want to setup a connection through this cable.
How can I achieve this goal?
The output of the 'lsusb' command is: Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I'm trying to follow steps described here: http://linux-sunxi.org/Cubieboard/TTL
but I have more difficulties.
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR.
cu is in Arch repos as it was told above. There are other terminal applications: minicom, com.
2. There is no '/dev/ttyUSB0' on my system here.
Then it means driver has other name. Check 'dmesg' - kernel should write usb device name that was created. It can be /dev/ttyUSB1, ... /dev/ttyACM0, ... Also make sure this file is readable to your user - you might need be added to right UNIX group.
So eg. screen /dev/ttyUSB0 115200
doesn't work here: Cannot exec '/dev/ttyUSB0': No such file or directory
I can't find any advices on Arch Wiki.
Any advices will be appreciated!
-- Regards from Pal
On Wed, 20 May 2015 12:07:37 -0700, Anatol Pomozov wrote:
There are other terminal applications: minicom, com.
"Other alternatives are screen, picocom and kermit." - http://www.jann.cc/2013/02/10/the_cu_command.html
2015-05-20 21:16 GMT+02:00 Ralf Mardorf <ralf.mardorf@rocketmail.com>:
On Wed, 20 May 2015 12:07:37 -0700, Anatol Pomozov wrote:
There are other terminal applications: minicom, com.
"Other alternatives are screen, picocom and kermit." - http://www.jann.cc/2013/02/10/the_cu_command.html
I have now installed uucp and picocom. However, I can't use these commands: 'cu' 'picocom' because there is no /dev/ttyUSB1 /dev/ttyACM0 or such devices, but only /dev/ttyS0 .. /dev/ttyS3 I tried these commands: $ cu -s 115200 -l /dev/ttyS0 cu: /dev/ttyS0: Line in use $ cu -s 115200 -l /dev/ttyS1 # ( also S2, S3 ) Connected. cu: Got hangup signal Disconnected. dmesg gives me no ifnormation about such device: [36829.865727] Shorewall:net-fw:DROP:IN=enp0s20 OUT= MAC=00:1a:92:ce:61:70:00:22:02:00:07:3d:08:00 SRC=107.179.37.67 DST=192.168.10.90 LEN=35 TOS=0x00 PREC=0x00 TTL=48 ID=30265 DF PROTO=UDP SPT=50434 DPT=5093 LEN=15 [38367.939572] usb 2-6: new full-speed USB device number 6 using ohci-pci Maybe the Shorewall firewall is the culprit in this case? -- Regards from Pal
On Wed, May 20, 2015 at 09:41:13PM +0200, Csányi Pál wrote:
I tried these commands: $ cu -s 115200 -l /dev/ttyS0 cu: /dev/ttyS0: Line in use
$ cu -s 115200 -l /dev/ttyS1 # ( also S2, S3 ) Connected. cu: Got hangup signal
Disconnected.
dmesg gives me no ifnormation about such device: [36829.865727] Shorewall:net-fw:DROP:IN=enp0s20 OUT= MAC=00:1a:92:ce:61:70:00:22:02:00:07:3d:08:00 SRC=107.179.37.67 DST=192.168.10.90 LEN=35 TOS=0x00 PREC=0x00 TTL=48 ID=30265 DF PROTO=UDP SPT=50434 DPT=5093 LEN=15 [38367.939572] usb 2-6: new full-speed USB device number 6 using ohci-pci
Maybe the Shorewall firewall is the culprit in this case?
I can almost guarantee you that your firewall has nothing to do with it. It is just conincidence that the previous kernel message was from the firewall. The issue as I see it is that the serial driver kernel module seems to not be loading. Are you running any sort of modified / alternative kernel? Can you post the results of "uname -a" for us? Also, a "sudo lsusb -v" might be helpful as well. --Sean
2015-05-21 4:13 GMT+02:00 Sean Greenslade <sean@seangreenslade.com>:
On Wed, May 20, 2015 at 09:41:13PM +0200, Csányi Pál wrote:
I tried these commands: $ cu -s 115200 -l /dev/ttyS0 cu: /dev/ttyS0: Line in use
$ cu -s 115200 -l /dev/ttyS1 # ( also S2, S3 ) Connected. cu: Got hangup signal
Disconnected.
dmesg gives me no ifnormation about such device: [36829.865727] Shorewall:net-fw:DROP:IN=enp0s20 OUT= MAC=00:1a:92:ce:61:70:00:22:02:00:07:3d:08:00 SRC=107.179.37.67 DST=192.168.10.90 LEN=35 TOS=0x00 PREC=0x00 TTL=48 ID=30265 DF PROTO=UDP SPT=50434 DPT=5093 LEN=15 [38367.939572] usb 2-6: new full-speed USB device number 6 using ohci-pci
Maybe the Shorewall firewall is the culprit in this case?
I can almost guarantee you that your firewall has nothing to do with it. It is just conincidence that the previous kernel message was from the firewall.
The issue as I see it is that the serial driver kernel module seems to not be loading. Are you running any sort of modified / alternative kernel? Can you post the results of "uname -a" for us?
I'm running not a modified / alternative kernel. # uname -a Linux archcsp 4.0.4-1-ARCH #1 SMP PREEMPT Mon May 18 06:43:19 CEST 2015 x86_64 GNU/Linux
Also, a "sudo lsusb -v" might be helpful as well.
# lsusb -v Bus 002 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 8 idVendor 0x0403 Future Technology Devices International, Ltd idProduct 0x6001 FT232 USB-Serial (UART) IC bcdDevice 6.00 iManufacturer 1 FTDI iProduct 2 TTL232RG-VREG3V3 iSerial 3 FTWUHYHB bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 32 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 500mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 255 Vendor Specific Class bInterfaceSubClass 255 Vendor Specific Subclass bInterfaceProtocol 255 Vendor Specific Protocol iInterface 2 TTL232RG-VREG3V3 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0040 1x 64 bytes bInterval 0 can't get device qualifier: Resource temporarily unavailable can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0000 (Bus Powered) Also I must add that that I have not solded the RX, TX and GND to my Bubba 2 headless power pc box yet, I'm just testing this FTDI cable; a very simple test: to contact the TX and the RX wires together on the cable, to open a console and see if sent characters echo back. ( One can see more about this here: forum.mybubba.org/viewtopic.php?f=9&t=2658 ) $ groups wheel uucp vboxusers csp where 'csp' is the username. I shall investigate the provided links in this thread to day later, to see which kernel module is needed for this FTDI chip. -- Regards from Pal
Some progress has been made here. After I installed the 'libftdi' package from the official repository, and have connected the FTDI cable, finally I get the ttyUSB0 device, so I can to connect it with the command: cu -s 115200 -l /dev/ttyUSB0 Connected. So, it is time to read 'man cu'. -- Regards from Pal
On 05/20/2015 11:55 AM, Csányi Pál wrote:
Hello,
I have a FTDI TTL-232RG-VREG3V3-WE USB to TTL Serial Cable.
On my Arch linux I want to setup a connection through this cable.
How can I achieve this goal?
The output of the 'lsusb' command is: Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I'm trying to follow steps described here: http://linux-sunxi.org/Cubieboard/TTL
but I have more difficulties.
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR. 2. There is no '/dev/ttyUSB0' on my system here.
So eg. screen /dev/ttyUSB0 115200
doesn't work here: Cannot exec '/dev/ttyUSB0': No such file or directory
I can't find any advices on Arch Wiki.
Any advices will be appreciated!
I have used a similar adapter on my system. I used picocom (I think) to connect to the serial port. I also had to add myself to the uucp group because /dev/ttyUSB0 was owned by group uucp. --Kyle
http://www.tldp.org/HOWTO/UUCP-HOWTO-4.html http://www.comptechdoc.org/os/linux/usersguide/linux_uguucp.html Maybe those 2 links will help On 05/20/2015 08:15 PM, Kyle Terrien wrote:
On 05/20/2015 11:55 AM, Csányi Pál wrote:
Hello,
I have a FTDI TTL-232RG-VREG3V3-WE USB to TTL Serial Cable.
On my Arch linux I want to setup a connection through this cable.
How can I achieve this goal?
The output of the 'lsusb' command is: Bus 002 Device 005: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
I'm trying to follow steps described here: http://linux-sunxi.org/Cubieboard/TTL
but I have more difficulties.
1. I can't find to install the 'cu' utility neither on Arch linux repository nor in AUR. 2. There is no '/dev/ttyUSB0' on my system here.
So eg. screen /dev/ttyUSB0 115200
doesn't work here: Cannot exec '/dev/ttyUSB0': No such file or directory
I can't find any advices on Arch Wiki.
Any advices will be appreciated! I have used a similar adapter on my system.
I used picocom (I think) to connect to the serial port. I also had to add myself to the uucp group because /dev/ttyUSB0 was owned by group uucp.
--Kyle
participants (7)
-
Alan Jenkins
-
Anatol Pomozov
-
Csányi Pál
-
Kyle Terrien
-
Marshall Neill
-
Ralf Mardorf
-
Sean Greenslade