SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
#246775
I have been trying get the serial port to work from the SparkFun RedBoard Artemis Nano on an Ubuntu 22.04 VM, but I am having no luck.
NOTE: I can see the serial output in the Arduino IDE from Windows and the Python code I have does work with another board such as a Nano 33 BLE Sense on the same Ubuntu 22.04 VM.

I have gone through the SparkFun "How to Install CH340 Drivers", but this references an older driver,
I've tried other update drivers such as:
https://github.com/WCHSoftGroup/ch341ser_linux
https://www.wch-ic.com/downloads/CH341S ... X_ZIP.html

I can get the driver to load and seems to recognize the Artemis Nano board, but if I attempt to read from the serial port via something like pyserial, I am getting no output.

I did have to comment out an entry for the brltty rules since the device id from the Artemis nano is the same as one listed in the rules file and was preventing the driver from loading.

Ex:
sudo view /usr/lib/udev/rules.d/85-brltty.rules
Code: Select all
# Device: 1A86:7523
# Baum [NLS eReader Zoomax (20 cells)]
#ENV{PRODUCT}=="1a86/7523/*", ENV{BRLTTY_BRAILLE_DRIVER}="bm", GOTO="brltty_usb_run"
This is the output of dmesg when I attach the Artemis board to the VM:
[ 7634.592277] usb 1-2.1: USB disconnect, device number 5
[ 7634.592459] usb_ch341 1-2.1:1.0: ch341 usb device disconnect.
[ 7638.702687] usb 1-2.1: new full-speed USB device number 6 using uhci_hcd
[ 7638.919161] usb 1-2.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 7638.919167] usb 1-2.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 7638.919168] usb 1-2.1: Product: USB Serial
[ 7638.922065] usb_ch341 1-2.1:1.0: ttyCH341USB0: ch341 USB device
Any suggestions?
#246776
If I use the built in ch341 driver from Ubuntu 22.04, when I attetmpt to read from the Atemis Nano serial port from Python, the driver fails:

Ex:
[ 725.904030] usb 1-2.1: USB disconnect, device number 4
[ 725.904344] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 725.904362] ch341 1-2.1:1.0: device disconnected
[ 729.445872] usb 1-2.1: new full-speed USB device number 5 using uhci_hcd
[ 729.665870] usb 1-2.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 729.665875] usb 1-2.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 729.665877] usb 1-2.1: Product: USB Serial
[ 729.668519] ch341 1-2.1:1.0: ch341-uart converter detected
[ 729.675721] usb 1-2.1: ch341-uart converter now attached to ttyUSB0
[ 792.823067] usb 1-2.1: failed to send control message: -110
[ 794.823993] usb 1-2.1: failed to send control message: -110
[ 795.826303] usb 1-2.1: failed to receive control message: -110
[ 795.826311] ch341-uart ttyUSB0: failed to read modem status: -110
#246779
Well, I did have an issue in my python script for the baudrate which did not produce an issue with the Arduino 33 BLE Nano but did result in no output for the Artemis Nano.
I did have to use the driver from WCH to get this to work which produces a ttyCH341USB0 device, but it works.
This is the driver I used:
https://www.wch-ic.com/downloads/CH341S ... X_ZIP.html
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum