Month: April 2021

Low Cost CAN Interfaces for Linux

CANable:
https://canable.io

CANtact:
https://cantact.io/cantact/users-guide.html

Microchip APGDT002:
https://github.com/rkollataj/mcba_usb/blob/master/mcba_usb.c

USB2CAN:
https://www.8devices.com/products/usb2can

Chinese USB-CAN:
https://github.com/kobolt/usb-can

screen is terminating but never finish

While trying to use the screen the second time (the first time I just close the terminal without exiting the screen with ctrl + a + k) I got this error:


$ screen /dev/ttyACM0 115200
[screen is terminating]

After some searching I found the solution:

$ sudo lsof /dev/ttyACM0
lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/1000/gvfs
Output information may be incomplete.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
screen 62004 alan 5u CHR 166,0 0t0 735 /dev/ttyACM0

$ kill -9 62004

Source: https://unix.stackexchange.com/questions/93892/why-do-i-get-screen-is-terminating-without-root

USB Keyboard on NuttX needs more improvements

NuttX has support to USB Mouse and keyboard, whoever only few USB Keyboards will work. I know a keyboard that some users reported to work correctly is the Perixx PERIBOARD-409U Wired USB Mini Keyboard.

I decided to test a generic mini keyboard from China, but it is not working. Most of the time the /dev/kbda is not created and when it is created it is not working:

ABCDF

nsh> ls /dev
/dev:
console
kbda
null
ttyS0
nsh> ?
help usage: help [-v] []

NuttShell (NSH) NuttX-10.0.1
nsh> OTGFS ERROR: ctrl_senddata() failed with: 11

. cat dd false ls ps sleep uname
[ cd df free mkdir pwd source umount
? cp echo help mkrd rm test unset
basename cmp exec hexdump mount rmdir time usleep
break dirname exit kill mv set true xd

Builtin Apps:
sh nsh hidkbd
nsh> hidkbd
Opening device /dev/kbda
Device /dev/kbda opened

If you get some other keyboard working, please comment here!