Teensy 4.0 no ttyACM serial port when connected

bsrobotcz

New member
Hi,
I use orange pi 32 bit.
I bought teensy 4.0.
I copied
Code:
cp 00-teensy.rules /etc/udev/rules.d/
and then reload

When I connect teensy to USB 2.0 port, teensy is recognized as hidraw and not as ttyACM0.

Code:
lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.6 LTS
Release:	20.04
Codename:	focal


lsmod |grep acm
cdc_acm                32768  0
usb_f_acm              20480  1
u_serial               24576  1 usb_f_acm
libcomposite           45056  2 g_serial,usb_f_acm

uname -a
Linux floppi 5.4.65-sunxi #2.0.8 SMP Mon Oct 26 10:20:38 CST 2020 armv7l armv7l armv7l GNU/Linux

lsusb -t
/:  Bus 09.Port 1: Dev 1, Class=root_hub, Driver=musb-hdrc/1p, 480M
/:  Bus 08.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 07.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
    |__ Port 1: Dev 4, If 0, Class=Human Interface Device, Driver=usbhid, 480M
    |__ Port 1: Dev 4, If 1, Class=Human Interface Device, Driver=usbhid, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ohci-platform/1p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-platform/1p, 480M



May 09 19:31:49 floppi kernel: usb 3-1: new high-speed USB device number 2 using ehci-platform
May 09 19:31:50 floppi kernel: usb 3-1: device descriptor read/64, error -71
May 09 19:31:50 floppi kernel: usb 3-1: New USB device found, idVendor=16c0, idProduct=0486, bcdDevice= 2.79
May 09 19:31:50 floppi kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 09 19:31:50 floppi kernel: usb 3-1: Product: Teensyduino RawHID
May 09 19:31:50 floppi kernel: usb 3-1: Manufacturer: Teensyduino
May 09 19:31:50 floppi kernel: usb 3-1: SerialNumber: 13334780
May 09 19:31:50 floppi kernel: hid-generic 0003:16C0:0486.0001: hiddev96,hidraw0: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-1c1b000.usb-1/input0
May 09 19:31:50 floppi kernel: hid-generic 0003:16C0:0486.0002: hidraw1: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-1c1b000.usb-1/input1
May 09 19:31:55 floppi kernel: usb 3-1: USB disconnect, device number 2
May 09 19:31:56 floppi kernel: usb 3-1: new high-speed USB device number 3 using ehci-platform
May 09 19:31:56 floppi kernel: usb 3-1: New USB device found, idVendor=16c0, idProduct=0486, bcdDevice= 2.79
May 09 19:31:56 floppi kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 09 19:31:56 floppi kernel: usb 3-1: Product: Teensyduino RawHID
May 09 19:31:56 floppi kernel: usb 3-1: Manufacturer: Teensyduino
May 09 19:31:56 floppi kernel: usb 3-1: SerialNumber: 13334780
May 09 19:31:56 floppi kernel: hid-generic 0003:16C0:0486.0003: hiddev96,hidraw0: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-1c1b000.usb-1/input0
May 09 19:31:56 floppi kernel: hid-generic 0003:16C0:0486.0004: hidraw1: USB HID v1.11 Device [Teensyduino Teensyduino RawHID] on usb-1c1b000.usb-1/input1


What can I do?

Some advice?

Thank you
 
Last edited:
When I connect teensy to USB 2.0 port, teensy is recognized as hidraw and not as ttyACM0.

This is normal behavior. Every Teensy ships with the LED blink program built as RawHID. It will also be RawHID if you upload code from Arduino IDE with Tools > USB Type set to RawHID, or after the 15 second button press causes a full wipe of the flash and restores the original LED blink which talks as RawHID.


What can I do?

In Arduino IDE, click Tools > USB Type and check it's set for Serial. Then just upload any program. File > Examples > 01.Basics > Blink is a good one to use if you don't have any program yet. Teensy will become USB Serial (or whatever was selected in the USB Type menu) when it runs the program you've uploaded.
 
Back
Top