WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Arduino and FTDI  (Read 3849 times)

Offline void2015

  • Newbie
  • *
  • Posts: 5
Arduino and FTDI
« on: September 11, 2015, 12:50:36 AM »
Hello there!
This is my first post message.
About a month ago I started to work with CorePlus.
I discovered how fast this Linux OS is working. I'm just starting to enquerry it.
OK, today I am about to explain my problem with getting to work the Arduino.
When I am pluging Arduino Nano to USB and connecting to PC, the "Port" option is not available.
The dmesg says:
usb 2-1.3: new full-speed USB device number 10 using ehci-pci
usb 2-1.3: USB disconnect, device number 10
But when I am plugging FTDI to USB and connecting to PC, the port is showing /dev/ttyUSB0 available.
The dmesg says:
ftdi_sio 2-1.3:1.0: FTDI USB Serial Device converter detected
usb 2-1.3: Detected FT232RL
usb 2-1.3: Number of endpoints 2
usb 2-1.3: Endpoint 1 MaxPacketSize 64
etc...

Do you have any suggestions, how to get Arduino Nano detected in CorePlus (TC)?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Arduino and FTDI
« Reply #1 on: September 11, 2015, 01:02:12 AM »
Did you install usb-serial-3.16.6-tinycore.tcz extension?

Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline void2015

  • Newbie
  • *
  • Posts: 5
Re: Arduino and FTDI
« Reply #2 on: September 11, 2015, 07:45:25 AM »
Hello there again!
Thanks for your suggestion :)
All the same.
I installed usb-serial-3.16.6-tinycore.tcz extension and nothing new.
Maybe the permissions is blocking device detection.
A time ago in TC I was setting the USB device the permissions, but without success :(
Could you help me to do that corretly?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Arduino and FTDI
« Reply #3 on: September 11, 2015, 08:04:45 AM »
First check your USB serial chip type with lsusb command:

Code: [Select]
root@box:/home/tc# lsusb
Bus 002 Device 003: ID 064e:a101 Suyin Corp. Acer CrystalEye Webcam
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 1a86:7523 QinHeng Electronics HL-340 USB-Serial adapter
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 002: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 / CBM2090 Flash drive controller
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

My Chinese Arduino Nano equipped with a HL-340 adapter. HL-340 is supported and works fine with TC. What is your chipset?



« Last Edit: September 11, 2015, 08:07:00 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline void2015

  • Newbie
  • *
  • Posts: 5
Re: Arduino and FTDI
« Reply #4 on: September 11, 2015, 08:32:11 AM »
I guess lsusb is detecting:
Bus 002 Device 007: ID 0403:0000 Future Technology Devices International, Ltd H4

I just disconnected and connected the device for checking.

But in Arduino IDE software "Ports" option is still grayed.

What should I do next?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Arduino and FTDI
« Reply #5 on: September 11, 2015, 08:36:26 AM »
Your adapter is bricked. This article may help:

http://www.cnblogs.com/xiaolei-kaiyuan/p/4233138.html
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline void2015

  • Newbie
  • *
  • Posts: 5
Re: Arduino and FTDI
« Reply #6 on: September 11, 2015, 09:23:48 AM »
Thank you for information. :)
I didn't notice piracy.  :o
I was searching for downloadable libftdi-dev TC repository in Apps browser and internet, but couldn't find it.
If you have, could give me link to libftdi-dev TC repo?

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Arduino and FTDI
« Reply #7 on: September 11, 2015, 09:42:06 AM »
I don't have


Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline void2015

  • Newbie
  • *
  • Posts: 5
Re: Arduino and FTDI
« Reply #8 on: September 11, 2015, 10:58:23 AM »
Ok.
That's interesting. In Windows OS my Arduino device is detected and working as well. The code is compiling and avrdude is uploading it succesfully. Also in Linux Ubuntu and Porteus there are no problems with coding and uploading. But in TC Linux I gave about a week to get my Arduino device to be detected. I installed all required extensions, except libftdi, set permissions in rules.d, but no success with Arduino. Thats' sad.
Anyway, thank you for your help.

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Arduino and FTDI
« Reply #9 on: September 11, 2015, 12:30:15 PM »
When the new FTDI driver of WINDOWS made fake FTDI chips unusable, IT community was very angry and loud. It took cca. one week for Microsoft to change the driver. Most probably they recognize the bricked chips like yours as the original to fix the issue. Didn't check Linux kernel source but I can imagine that new Linux FTDI driver is doing the same.

While it may work with some systems, it is definitely affected by the FTDI manufacturer's stupid action and the real solution is to reprogram with the right ID.

I added libftdi1-dev.tcz to the TC 6.x/x86 repo, so you can try to build the program to fix.

Note, mirrors may be updated 1-2 days after the main repo, repo.tinycorelinux.net
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."