| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

Arduino2Flash

Page history last edited by PBworks 16 years, 1 month ago

Some people using Intel Macs and OS X were unable to get serproxy configured correctly to connect Flash and the Arduino board. To work around this problem, I have written a replacement for serproxy in java called Arduino2Flash. This is experimental code, hacked together quickly, and probably buggy. Please test, let me know if it works, and I'll upload improved versions over time.

 

Installation steps:

  1. Download arduino2flash.jar. Extract in some known place, maybe even into the same directory where serproxy was.
  2. Install RXTX for Mac OSX - unfortunately this isn't straightforward.
    1. Download rxtx 2.1-7 binaries.
    2. Extract RXTXcomm.jar and Mac_OS_X/librxtxSerial.jnilib form the zip file to /Library/Java/Extensions on your hard drive.
    3. Open Terminal. Execute "sudo chmod 777 /var/lock". If the lock directory doesn't exist, create it first: "sudo mkdir /var/lock", then execute the chmod command as above.
    4. In Terminal, execute "sudo chmod 777 /var/spool/uucp". If the uucp directory doesn't exist, create it first: "sudo mkdir /var/spool/uucp", then execute the chmod command as above. (NOTE: we need more secure instructions here so people can chmod 775 instead. The user's account has to be added to group _uucp or uucp, but unfortunately the existing script for this uses niutil, which does not exist on OSX leopard - it was replaced by dscl).

 

Running arduino2flash

  1. Connect the Arduino via USB. Execute "ls /dev/cu.usb*" to find the name of the Arduino serial port.
  2. In your terminal, go to the directory where arduino2flash.jar lives and run "java -jar arduino2flash.jar /dev/cu.usbXYZ" where /dev/cu.usbXYZ is the name of your serial port.
  3. Now run your Flash test.

 

arduino2flash documentation:

Usage:  java -jar arduino2flash.jar <com_port> <com_speed> <tcp_port>
Example: java -jar arduino2flash.jar /dev/cu.usbserial-A1001NgZ 57600 5331

The second and third arguments are optional - defaults are 57600 for serial speed and port 5331.

 

You can stop arduino2flash with Ctrl+C.

Troubleshooting

If you get a message about a stale lock file that RxTx removed, don't worry about it. If you get an error message about a Lock file, delete that file directly from directory /var/lock and restart arduino2flash.

 

If you get a "Port already in use" exception, most likely RxTx is not installed correctly - /var/lock may not exist or you didn't set the folder permissions correctly.

Comments (0)

You don't have permission to comment on this page.