Teensy 与 Ubuntu 14.04

Teensy 与 Ubuntu 14.04

我正在尝试让我的 teensy 板与 ubuntu 一起工作。我复制了他们提供的 udev 规则:

ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", ENV{ID_MM_DEVICE_IGNORE}="1"
ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", ENV{MTP_NO_PROBE}="1"
SUBSYSTEMS=="usb", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", MODE:="0666"
KERNEL=="ttyACM*", ATTRS{idVendor}=="16c0", ATTRS{idProduct}=="04[789]?", MODE:="0666"

但是,重新加载规则或拔下/重新插入后,/dev/ttyACM* 下没有出现任何内容。

我可以在 lsusb 上看到它:

$lsusb
Bus 003 Device 015: ID 16c0:0486 Van Ooijen Technische Informatica Teensyduino RawHID

运行 udevadm 测试结果如下:

$ udevadm test /dev/bus/003/015
calling: test
version 204
This program is for debugging only, it does not run any program
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

=== trie on-disk ===
tool version:          204
file size:         5774243 bytes
header size             80 bytes
strings            1271747 bytes
nodes              4502416 bytes
load module index
...
read rules file: /etc/udev/rules.d/49-teensy.rules
....
rules contain 393216 bytes tokens (32768 * 12 bytes), 33780 bytes strings
21462 strings (183267 bytes), 18149 de-duplicated (152801 bytes), 3314 trie nodes used
unable to open device '/sys/dev/bus/003/015'
unload module index

我将假设“无法打开设备”错误无关紧要,因为它也出现在我的 arduino 板上。

答案1

由于 Teensy 使用一种称为 Raw HID 的东西,因此它不会显示为串行端口。为了能够对其进行编程,需要安装它们的 arduino 附加组件:

https://www.pjrc.com/teensy/td_download.html

相关内容