Arduino 1.8.5 and serial ports in 18.04

Moderators: mdrjr, odroid

Arduino 1.8.5 and serial ports in 18.04

Unread postby Technicavolous » Wed Jul 11, 2018 2:43 pm

I did a simple sudo apt install arduino and it installed fine, but the version in the repo doesn't have the board manager. So I purged it and downloaded stable arm version from
https://www.arduino.cc/en/Main/Software and it also seemed to install fine and appears to run. It downloads the boards and libraries just fine.

But for the life of me I can't figure out the serial ports on 18.04 ... I'm totally confused by the searching I've done, finding things about udev rules and searching for serial ports.

Arduino shows me in the dropdown ports ttySAC0 - 3 but none communicate.

When I plug in this Arduino lsusb clearly shows a QinHeng Electronics HL-340 USB-Serial adapter
Code: Select all
odroid@odroid:~$ lsusb
Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp.
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 018: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 001 Device 006: ID 046d:c408 Logitech, Inc. Marble Mouse (4-button)
Bus 001 Device 004: ID 1a40:0101 Terminus Technology Inc. Hub
Bus 001 Device 003: ID 413c:2113 Dell Computer Corp.
Bus 001 Device 002: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
odroid@odroid:~$


The ttySAC* are the ports that show up in the Arduino dropdown, but I can't communicate over any of them
Code: Select all
odroid@odroid:~$ dmesg | grep tty
[    0.000000] Kernel command line: console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repair=yes net.ifnames=0  HPD=true vout=hdmi usbhid.quirks=0x0eef:0x0005:0x0004 smsc95xx.macaddr=00:1e:06:61:7a:39 false s5p_mfc.mem=16M
[    0.002256] console [tty1] enabled
[    1.130961] 12c00000.serial: ttySAC0 at MMIO 0x12c00000 (irq = 58, base_baud = 0) is a S3C6400/10
[    1.131360] 12c10000.serial: ttySAC1 at MMIO 0x12c10000 (irq = 59, base_baud = 0) is a S3C6400/10
[    1.131793] 12c20000.serial: ttySAC2 at MMIO 0x12c20000 (irq = 60, base_baud = 0) is a S3C6400/10
[    2.030783] console [ttySAC2] enabled
[    2.034770] 12c30000.serial: ttySAC3 at MMIO 0x12c30000 (irq = 61, base_baud = 0) is a S3C6400/10
odroid@odroid:~$


You can see I've plugged it in several times ...
Code: Select all
odroid@odroid:~$ dmesg | grep usb
[    0.000000] Kernel command line: console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repair=yes net.ifnames=0  HPD=true vout=hdmi usbhid.quirks=0x0eef:0x0005:0x0004 smsc95xx.macaddr=00:1e:06:61:7a:39 false s5p_mfc.mem=16M
[    0.299213] usbcore: registered new interface driver usbfs
[    0.299279] usbcore: registered new interface driver hub
[    0.299425] usbcore: registered new device driver usb
[    1.050980] samsung-usb2-phy 12130000.phy: 12130000.phy supply vbus not found, using dummy regulator
[    1.051993] exynos5_usb3drd_phy 12100000.phy: 12100000.phy supply vbus not found, using dummy regulator
[    1.052078] exynos5_usb3drd_phy 12100000.phy: 12100000.phy supply vbus-boost not found, using dummy regulator
[    1.052453] exynos5_usb3drd_phy 12500000.phy: 12500000.phy supply vbus not found, using dummy regulator
[    1.052546] exynos5_usb3drd_phy 12500000.phy: 12500000.phy supply vbus-boost not found, using dummy regulator
[    2.168216] usbcore: registered new interface driver r8152
[    2.173392] usbcore: registered new interface driver cdc_ether
[    2.179184] usbcore: registered new interface driver cdc_subset
[    2.196659] exynos-ehci 12110000.usb: EHCI Host Controller
[    2.201809] exynos-ehci 12110000.usb: new USB bus registered, assigned bus number 1
[    2.209744] exynos-ehci 12110000.usb: irq 80, io mem 0x12110000
[    2.227746] exynos-ehci 12110000.usb: USB 2.0 started, EHCI 1.00
[    2.232577] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    2.239076] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.246261] usb usb1: Product: EHCI Host Controller
[    2.251108] usb usb1: Manufacturer: Linux 4.14.47-139 ehci_hcd
[    2.256944] usb usb1: SerialNumber: 12110000.usb
[    2.279761] exynos-ohci 12120000.usb: USB Host Controller
[    2.284926] exynos-ohci 12120000.usb: new USB bus registered, assigned bus number 2
[    2.292636] exynos-ohci 12120000.usb: irq 80, io mem 0x12120000
[    2.359978] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    2.365328] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.372691] usb usb2: Product: USB Host Controller
[    2.377278] usb usb2: Manufacturer: Linux 4.14.47-139 ohci_hcd
[    2.383083] usb usb2: SerialNumber: 12120000.usb
[    2.879720] usb 1-1: new high-speed USB device number 2 using exynos-ehci
[    3.040377] usb 1-1: New USB device found, idVendor=1a40, idProduct=0201
[    3.045642] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.052765] usb 1-1: Product: USB 2.0 Hub [MTT]
[    3.371750] usb 1-1.2: new low-speed USB device number 3 using exynos-ehci
[    3.511395] usb 1-1.2: New USB device found, idVendor=413c, idProduct=2113
[    3.516845] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    3.524116] usb 1-1.2: Product: Dell KB216 Wired Keyboard
[    3.614191] usb 1-1.4: new high-speed USB device number 4 using exynos-ehci
[    3.732389] usb 1-1.4: New USB device found, idVendor=1a40, idProduct=0101
[    3.738590] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    3.745874] usb 1-1.4: Product: USB 2.0 Hub
[    3.840008] usb 1-1.6: new high-speed USB device number 5 using exynos-ehci
[    3.970873] usb 1-1.6: New USB device found, idVendor=1908, idProduct=0226
[    3.976308] usb 1-1.6: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    4.052401] usb 1-1.4.2: new low-speed USB device number 6 using exynos-ehci
[    4.193378] usb 1-1.4.2: New USB device found, idVendor=046d, idProduct=c408
[    4.199001] usb 1-1.4.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    4.206448] usb 1-1.4.2: Product: USB Trackball
[    4.210950] usb 1-1.4.2: Manufacturer: Logitech
[    4.506626] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    4.513265] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.520456] usb usb3: Product: xHCI Host Controller
[    4.525293] usb usb3: Manufacturer: Linux 4.14.47-139 xhci-hcd
[    4.531105] usb usb3: SerialNumber: xhci-hcd.3.auto
[    4.563309] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.571418] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    4.578079] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.585271] usb usb4: Product: xHCI Host Controller
[    4.590109] usb usb4: Manufacturer: Linux 4.14.47-139 xhci-hcd
[    4.595920] usb usb4: SerialNumber: xhci-hcd.3.auto
[    4.636878] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    4.643520] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.650715] usb usb5: Product: xHCI Host Controller
[    4.655551] usb usb5: Manufacturer: Linux 4.14.47-139 xhci-hcd
[    4.663352] usb usb5: SerialNumber: xhci-hcd.6.auto
[    4.699420] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    4.708140] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[    4.715466] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.723206] usb usb6: Product: xHCI Host Controller
[    4.728585] usb usb6: Manufacturer: Linux 4.14.47-139 xhci-hcd
[    4.734917] usb usb6: SerialNumber: xhci-hcd.6.auto
[    4.914205] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    5.080737] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610
[    5.088669] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.096468] usb 3-1: Product: USB2.0 Hub
[    5.101360] usb 3-1: Manufacturer: GenesysLogic
[    5.203891] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[    5.230587] usb 4-1: New USB device found, idVendor=05e3, idProduct=0616
[    5.237732] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    5.245289] usb 4-1: Product: USB3.0 Hub
[    5.249614] usb 4-1: Manufacturer: GenesysLogic
[    5.472864] input: Dell KB216 Wired Keyboard as /devices/platform/soc/12110000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413C:2113.0001/input/input0
[    5.476525] usb-storage 1-1.6:1.0: USB Mass Storage device detected
[    5.476992] scsi host0: usb-storage 1-1.6:1.0
[    5.477580] usbcore: registered new interface driver usb-storage
[    5.478768] usbcore: registered new interface driver uas
[    5.576016] hid-generic 0003:413C:2113.0001: input,hidraw0: USB HID v1.11 Keyboard [Dell KB216 Wired Keyboard] on usb-12110000.usb-1.2/input0
[    5.596274] input: Dell KB216 Wired Keyboard as /devices/platform/soc/12110000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:413C:2113.0002/input/input1
[    5.667972] hid-generic 0003:413C:2113.0002: input,hidraw1: USB HID v1.11 Device [Dell KB216 Wired Keyboard] on usb-12110000.usb-1.2/input1
[    5.687674] input: Logitech USB Trackball as /devices/platform/soc/12110000.usb/usb1/1-1/1-1.4/1-1.4.2/1-1.4.2:1.0/0003:046D:C408.0003/input/input2
[    5.701897] hid-generic 0003:046D:C408.0003: input,hidraw2: USB HID v1.10 Mouse [Logitech USB Trackball] on usb-12110000.usb-1.4.2/input0
[    5.715081] usbcore: registered new interface driver usbhid
[    5.721431] usbhid: USB HID core driver
[    5.947813] usb 6-1: new SuperSpeed USB device number 2 using xhci-hcd
[    5.976600] usb 6-1: New USB device found, idVendor=0bda, idProduct=8153
[    5.986871] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[    5.997544] usb 6-1: Product: USB 10/100/1000 LAN
[    6.005776] usb 6-1: Manufacturer: Realtek
[    6.013372] usb 6-1: SerialNumber: 000001000000
[    6.203525] usb 6-1: reset SuperSpeed USB device number 2 using xhci-hcd
[ 5860.752899] usb 1-1.4.3: new high-speed USB device number 7 using exynos-ehci
[ 5860.861854] usb 1-1.4.3: New USB device found, idVendor=abcd, idProduct=1234
[ 5860.861862] usb 1-1.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 5860.861868] usb 1-1.4.3: Product: UDisk           
[ 5860.861873] usb 1-1.4.3: Manufacturer: General
[ 5860.861878] usb 1-1.4.3: SerialNumber: \xd0\x89
[ 5860.862522] usb-storage 1-1.4.3:1.0: USB Mass Storage device detected
[ 5860.862832] scsi host1: usb-storage 1-1.4.3:1.0
[17647.761383] usb 1-1.3: new high-speed USB device number 8 using exynos-ehci
[17647.870558] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5567
[17647.870566] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[17647.870572] usb 1-1.3: Product: Cruzer Blade
[17647.870577] usb 1-1.3: Manufacturer: SanDisk
[17647.870582] usb 1-1.3: SerialNumber: 4C531001441202110482
[17647.871215] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[17647.871588] scsi host2: usb-storage 1-1.3:1.0
[74525.362093] usb 1-1.3: USB disconnect, device number 8
[74527.410970] usb 1-1.4.3: USB disconnect, device number 7
[203227.057600] usb 1-1.6: USB disconnect, device number 5
[203233.442799] usb 1-1.6: new full-speed USB device number 9 using exynos-ehci
[203233.571849] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[203233.571857] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[203233.571862] usb 1-1.6: Product: USB2.0-Serial
[203269.041602] usb 1-1.6: USB disconnect, device number 9
[203278.500938] usb 1-1.6: new full-speed USB device number 10 using exynos-ehci
[203278.630222] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[203278.630230] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[203278.630235] usb 1-1.6: Product: USB2.0-Serial
[204106.161598] usb 1-1.6: USB disconnect, device number 10
[204128.420363] usb 1-1.6: new full-speed USB device number 11 using exynos-ehci
[204128.549721] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[204128.549729] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[204128.549734] usb 1-1.6: Product: USB2.0-Serial
[213681.329561] usb 1-1.6: USB disconnect, device number 11
[213785.253617] usb 1-1.7: new full-speed USB device number 12 using exynos-ehci
[213785.353620] usb 1-1.7: device descriptor read/64, error 13
[213785.565640] usb 1-1.7: device descriptor read/64, error 9
[213785.777665] usb 1-1.7: new full-speed USB device number 13 using exynos-ehci
[213785.877676] usb 1-1.7: device descriptor read/64, error 9
[214070.178576] usb 1-1.6: new full-speed USB device number 14 using exynos-ehci
[214070.307807] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[214070.307815] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[214070.307821] usb 1-1.6: Product: USB2.0-Serial
[214135.970942] usb 1-1.7: new full-speed USB device number 15 using exynos-ehci
[214141.091272] usb 1-1.7: device descriptor read/64, error -110
[214141.332687] usb 1-1.7: New USB device found, idVendor=1a86, idProduct=7523
[214141.332697] usb 1-1.7: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[214141.332703] usb 1-1.7: Product: USB2.0-Serial
[214791.601557] usb 1-1.6: USB disconnect, device number 14
[214793.649555] usb 1-1.7: USB disconnect, device number 15
[214797.475273] usb 1-1.6: new full-speed USB device number 16 using exynos-ehci
[214797.604681] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[214797.604689] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[214797.604695] usb 1-1.6: Product: USB2.0-Serial
[214928.817557] usb 1-1.6: USB disconnect, device number 16
[214932.643039] usb 1-1.7: new full-speed USB device number 17 using exynos-ehci
[214933.927076] usb 1-1.7: device descriptor read/64, error 7
[214934.168430] usb 1-1.7: New USB device found, idVendor=1a86, idProduct=7523
[214934.168438] usb 1-1.7: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[214934.168443] usb 1-1.7: Product: USB2.0-Serial
[215222.961556] usb 1-1.7: USB disconnect, device number 17
[215334.052482] usb 1-1.6: new full-speed USB device number 18 using exynos-ehci
[215334.181801] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[215334.181809] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[215334.181815] usb 1-1.6: Product: USB2.0-Serial
[217974.193551] usb 1-1.6: USB disconnect, device number 18
[217978.530574] usb 1-1.7: new full-speed USB device number 19 using exynos-ehci
[217979.046593] usb 1-1.7: device not accepting address 19, error -32
[217979.150571] usb 1-1.7: new full-speed USB device number 20 using exynos-ehci
[217979.250576] usb 1-1.7: device descriptor read/64, error -32
[217979.462567] usb 1-1.7: device descriptor read/64, error -32
[217979.574697] usb 1-1-port7: attempt power cycle
[217980.198554] usb 1-1.7: new full-speed USB device number 21 using exynos-ehci
[217980.614554] usb 1-1.7: device not accepting address 21, error -32
[217980.718550] usb 1-1.7: new full-speed USB device number 22 using exynos-ehci
[217981.134548] usb 1-1.7: device not accepting address 22, error -32
[217981.139544] usb 1-1-port7: unable to enumerate USB device
[218018.722290] usb 1-1.6: new full-speed USB device number 23 using exynos-ehci
[218018.851542] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[218018.851550] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[218018.851556] usb 1-1.6: Product: USB2.0-Serial
odroid@odroid:~$


Note the line 'Unable to enumerate device' but shows USB2.0-Serial
Code: Select all
odroid@odroid:~$ dmesg | tail   
[217979.574697] usb 1-1-port7: attempt power cycle
[217980.198554] usb 1-1.7: new full-speed USB device number 21 using exynos-ehci
[217980.614554] usb 1-1.7: device not accepting address 21, error -32
[217980.718550] usb 1-1.7: new full-speed USB device number 22 using exynos-ehci
[217981.134548] usb 1-1.7: device not accepting address 22, error -32
[217981.139544] usb 1-1-port7: unable to enumerate USB device
[218018.722290] usb 1-1.6: new full-speed USB device number 23 using exynos-ehci
[218018.851542] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[218018.851550] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[218018.851556] usb 1-1.6: Product: USB2.0-Serial
odroid@odroid:~$


Code: Select all
odroid@odroid:~$ lsmod
Module                  Size  Used by
fuse                   86016  5
cpufreq_conservative    16384  0
cpufreq_userspace      16384  0
cpufreq_powersave      16384  0
spidev                 20480  0
sg                     32768  0
joydev                 20480  0
evdev                  24576  7
input_leds             16384  0
spi_s3c64xx            20480  0
uio_pdrv_genirq        16384  0
uio                    16384  1 uio_pdrv_genirq
gpio_keys              20480  0
exynos_gpiomem         16384  0
sch_fq_codel           20480  2
ip_tables              24576  0
ipv6                  385024  90
sd_mod                 40960  2
uas                    20480  0
usb_storage            49152  2 uas
scsi_mod              135168  4 sd_mod,usb_storage,uas,sg
usbhid                 45056  0
extcon_usb_gpio        16384  0
odroid@odroid:~$


Counterfiet? This guy thought so but the fellow at the bottom of this post seems to have a solution but I'm clueless how to implement it or if it's even appropriate
https://unix.stackexchange.com/question ... ter#361199

This adapter had a known bug for Fedora that was apparently solved in 05/2017 -
https://bugzilla.redhat.com/show_bug.cgi?id=1235715

EDIT:
I also found this
https://stackoverflow.com/questions/310 ... r#31077131
which looks promising but I can't find the driver mentioned.

What to do?
What box?
Technicavolous
 
Posts: 52
Joined: Mon May 30, 2016 12:17 pm
Location: Howey In The Hills, FL
languages_spoken: Southern US English
ODROIDs: :

XU4 -> CloudShell, BoomBonnet,
eMMC64/Ubuntu
eMMC16/Armbian

C2 -> VU7, HiFiShield2
SD/Ubuntu
eMMC16/Armbian

HC1 -> serial
SD/Ubuntu
SD/Armbian
.

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby odroid » Wed Jul 11, 2018 4:05 pm

If your adapter has CH341 chipset, it should work.
https://github.com/hardkernel/linux/blo ... nfig#L4318

Try to load the driver module manually.
Code: Select all
sudo modprobe ch341


Also update the kernel to the latest 4.14.52-145.
https://wiki.odroid.com/odroid-xu4/os_i ... st-upgrade
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby Technicavolous » Wed Jul 11, 2018 10:32 pm

Thanks you rock! Will go through this thoroughly tonight so I understand what I did. For now here is my proof of success ;]

Kernel appears to be already latest
Code: Select all
odroid@odroid:~$ uname -a
Linux odroid 4.14.52-145 #1 SMP PREEMPT Wed Jun 27 11:07:47 -03 2018 armv7l armv7l armv7l GNU/Linux
odroid@odroid:~$


Performed the modprobe, here is dmesg | tail output
Code: Select all
odroid@odroid:~$ dmesg | tail
[   11.826330] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.831842] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   11.857142] r8152 6-1:1.0 eth0: carrier on
[   11.857274] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   14.805991] fuse init (API version 7.26)
[ 1562.227693] usbcore: registered new interface driver usbserial
[ 1562.227754] usbcore: registered new interface driver usbserial_generic
[ 1562.227791] usbserial: USB Serial support registered for generic
[ 1562.229003] usbcore: registered new interface driver ch341
[ 1562.229052] usbserial: USB Serial support registered for ch341-uart


Plugged in the 'Compatible' Arcuino and did dmesg again
Code: Select all
odroid@odroid:~$ dmesg | tail
[ 1562.227754] usbcore: registered new interface driver usbserial_generic
[ 1562.227791] usbserial: USB Serial support registered for generic
[ 1562.229003] usbcore: registered new interface driver ch341
[ 1562.229052] usbserial: USB Serial support registered for ch341-uart
[ 2027.169498] usb 1-1.6: new full-speed USB device number 6 using exynos-ehci
[ 2027.299040] usb 1-1.6: New USB device found, idVendor=1a86, idProduct=7523
[ 2027.299048] usb 1-1.6: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 2027.299054] usb 1-1.6: Product: USB2.0-Serial
[ 2027.299667] ch341 1-1.6:1.0: ch341-uart converter detected
[ 2027.300714] usb 1-1.6: ch341-uart converter now attached to ttyUSB0
odroid@odroid:~$


Ran Arduino, now shows ttyUSB0! Connected the Compatible, and selected 'Get Board Info' and got this -
Code: Select all
BN: Unknown board
VID: 1A86
PID: 7523
SN: Upload any sketch to obtain it


As always, you rock and thanks a heap!!
What box?
Technicavolous
 
Posts: 52
Joined: Mon May 30, 2016 12:17 pm
Location: Howey In The Hills, FL
languages_spoken: Southern US English
ODROIDs: :

XU4 -> CloudShell, BoomBonnet,
eMMC64/Ubuntu
eMMC16/Armbian

C2 -> VU7, HiFiShield2
SD/Ubuntu
eMMC16/Armbian

HC1 -> serial
SD/Ubuntu
SD/Armbian
.

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby odroid » Wed Jul 11, 2018 10:40 pm

Glad to hear it helped. :D

BTW, did you install Oracle Java to make Arduino 1.8.5 work?
Or, preinstalled OpenJDK was enough?
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby Technicavolous » Thu Jul 12, 2018 7:42 am

Did
Code: Select all
sudo apt install arduino

Bring down any JDK? I did that first, purged then downloaded Arduino for Arm from their site (link above) and it worked.

I just modified the blinky script so it all seems functional.
What box?
Technicavolous
 
Posts: 52
Joined: Mon May 30, 2016 12:17 pm
Location: Howey In The Hills, FL
languages_spoken: Southern US English
ODROIDs: :

XU4 -> CloudShell, BoomBonnet,
eMMC64/Ubuntu
eMMC16/Armbian

C2 -> VU7, HiFiShield2
SD/Ubuntu
eMMC16/Armbian

HC1 -> serial
SD/Ubuntu
SD/Armbian
.

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby odroid » Thu Jul 12, 2018 7:50 am

Arduino IDE runs on Java. So you should have OpenJDK version 10.
Code: Select all
odroid@odroid:~$ java --version                                                 
openjdk 10.0.1 2018-04-17                                                       
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)                   
OpenJDK Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby Technicavolous » Thu Jul 12, 2018 11:38 am

Code: Select all
odroid@odroid:~$ java --version
openjdk 10.0.1 2018-04-17
OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1)
OpenJDK Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)
odroid@odroid:~$
What box?
Technicavolous
 
Posts: 52
Joined: Mon May 30, 2016 12:17 pm
Location: Howey In The Hills, FL
languages_spoken: Southern US English
ODROIDs: :

XU4 -> CloudShell, BoomBonnet,
eMMC64/Ubuntu
eMMC16/Armbian

C2 -> VU7, HiFiShield2
SD/Ubuntu
eMMC16/Armbian

HC1 -> serial
SD/Ubuntu
SD/Armbian
.

Re: Arduino 1.8.5 and serial ports in 18.04

Unread postby odroid » Thu Jul 12, 2018 11:38 am

Thank you for the confirmation.
User avatar
odroid
Site Admin
 
Posts: 28610
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Ubuntu

Who is online

Users browsing this forum: No registered users and 1 guest