Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi all,
I'am posting to see if anyone have compiled or have come across a DNS-323 compiled version of the ACM driver (cdc-acm.ko) and are willing to share? Or if anyone have gotten a Arduino UNO to work with other drivers/methods? I know earlier versions of the Arduino did have a FTDI chip and did work with ftdi_sio.ko, but for UNO I am quite sure I need the ACM driver as it is used on a "normal" unix box.
I have never compiled anything in unix and I don't have a unix box at the moment so thought I ask here before getting into the crosscompiling business.
Thanks
Markus
Offline
Oki, so after learning alot and a bit more I got the module compiled and working. I used:
http://tsd.dlink.com.tw/temp/download/3 … 052008.tgz
to compile the driver and it works on my fw1.08. It turned out to be a little flaky though as the driver hang the ssh session when any usb-involved command were issued after I plugged/unplugged the Arduino a few times. A system reboot and everything went back to normal.
Thought I upload the driver here for those who are as little experienced in unix building as I was (though I really recommend to try it out as you will learn and it is not that much of a nightmare)
Use it on your own risc, I can't be held responsible if there is any mistakes in the driver causing any loss of data on your unit.
/Thanks for a great forum
Offline
..oh, and a few instructions on how to get started:
1. insmod cdc-acm.ko
I have usbserial.ko loaded as well but I don't think it is needed for this
2. mknod /dev/ttyACM0 c 166 0
3. stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts
change '9600' to what ever baud rate you used in Serial.begin() on your Arduino
Now you are ready to go, using what ever software capable of sending/reciving serial data.
To send data using command line, do:
echo "Hello Arduino" > /dev/ttyACM0
The Arduino seems to reset it self each time you send something to it (or rather just after the data has been sent), so to kind of "open a session" to the Arduino, do for example:
cat /dev/ttyACM0 > /etc/from_arduino &
Now you can send data with the commands abowe and you can read what is sent back in the file /etc/from_arduino
To close the session you have to kill the 'cat' process, use 'top' to find the PID of the process and 'kill ####' to shut it down.
There is probably better ways of doing this if you know a little more unix than I.
/Cheers
Offline
bjby wrote:
I got curious, what are you using the chip for?
well, I just like to play with it. And connected to a 323 makes for more possibilities e.g internet connection, mass storage, scheduling (as it is running 24/7) and such. First I thought of hooking up a few sensors in my closet where I keep my computers to control ventilation and monitor through a webserver. After that I will probably play around with home automation, combined with a Tellstick, to control wireless light switches and sensors for when the front door is locked etc. Maybe try to futher develop the IPhone app that wakes you up in the morning when it senses movment in the bed, but let the movment sensor trigger a slow dim up of the bedroom lights or something. This page is brilliant if one is looking for ideas: http://www.arduino.cc/playground/Main/I … thHardware
/cherio
Offline