Collect by USB host and send by Wifi

I just want to know if it's possible (and easily) to collect data received on the USB host and push them by wifi with arduino yun ?

Thanks for your help and exemple code (if you have one).

Hello, what do you mean for USB host?

It's the connector 'usb host' on that picture

That port is directly managed by the Linux processor, so you can access to that USB using OpenWRT capabilities. What do you want to connect to the USB Host?

I bought a multiplexer the same as this one below

My project is to send datas out on USB from multiplexer to a wifi access point

Usually the manufacturer releases binary files and drivers to use the USB device. I don't know if there are linux binaries for that product and if they exists you have to check if they can work on the Yun.

You should contact the manufacturer for more info.

You might try this:

Follow first part of

http://forum.arduino.cc/index.php?topic=278719.msg1959911#msg1959911

install correct USB driver.

Follow this one install kplex

Follow this one to setup The config file for kplex, it is located at /etc/kplex.conf

http://www.stripydog.com/kplex/configuration.html

Many thanks Sonnyu for your help I will try to use it. It's my first time to use Arduino yun and i do not know Kplex before.

I have just looking your link GitHub - caesar/kplex-openwrt: Necessary files for using the OpenWrt build system to cross-compile kplex for your router but I don't know how to do to install kplex on my Arduino Yun.

Do I have to install SDK on my Arduino to compile Kplex on my card and install it after ?

All these things are realy new for me. Thanks for your help

I have no boat! :wink: as well as no multiplexer. I would not be able test the setup.
Caesar Schinas compiles kplex for ar71xx which is same as Yun CPU. I guess it could work. Why not drop a line for help.

Thanks for your help and all the best for this new Year 2015

I had contact Caesar by mail and with his help I have installed Kplex on my Yun. But I have always a problem.
Below a little picture to show you my project : Test1.png

When I plug my multiplexeur on the USB host port (Yun) I don't know wish port i have to use :sob:

Kplex need to be configure to know wich port use to listen (exemple : filename=/dev/ttyUSB0)
You can see the result of command lsusb (i used putty) : Capture_connexion

When the multiplexeur is plug on port usb host of my Yun I do not see on directory /dev/ a port who identify my Multiplexeur.

Thanks for your help

test1[1].png

Capture_connexion+multiplexeur_2[1].JPG

Can kplex be configured to choose the usb device using vendor ID and product ID?

Bus 001 Device 004: ID 0403:fd49 Future Technology Devices International, Ltd

Future Technology Devices International, Ltd means ftdi.

Install its driver:

opkg update
opkg install kmod-usb-serial kmod-usb-serial-ftdi

and hope /dev/ttyUSBX, could be /dev/ttyUSB0 show up. then use it at Kplex.

Thank you Sonnyyu I will test it on the next saturday. I will coming back to say if it work's :wink:

i'm disappointed. :cry:
after having installed those two packages kmod-usb-serial kmod-usb-serial-ftdi We can see them on two lines [41.420000] on the picture below

my multiplexer is still not recocnize on my Yun. no ttyusb !
on this other picture, we can see the different connection before pluged the multiplexer and after.

I don't no why :angry: Can you let me know where I'm wrong ?

Many thanks for your help

You should add powered USB Hub between Yun and Your device

http://forum.arduino.cc/index.php?topic=284254.msg1993792#msg1993792

Possible FTDI Chip problems!

http://forum.arduino.cc/index.php?topic=272405.0

Testing device at linux box. if ftdi firmware is bad, need refresh it.

If I were you start with fresh copy YunOS.

http://forum.arduino.cc/index.php?topic=284254.msg1993788#msg1993788

Please upgrade your Yún - latest is 1.5.3

http://forum.arduino.cc/index.php?topic=279008.0

Make sure ftdi driver load in kernel:

root@Arduino:~#  lsmod |grep ftdi
ftdi_sio               27968  0
usbserial              25274  1 ftdi_sio

pascal74:
Thank you Sonnyyu I will test it on the next saturday. I will coming back to say if it work's :wink:

Disconnect from system, take back to office/home to testing.