
need to do after every reboot:
modprobe ftdi_sio
echo 0403 7c58 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id




chown www-data.www-data /tmp/groovix-coinbox.log

EVERY TIME AFTER USB CONNECTION IS REPLUGGED:
chgrp www-data /dev/ttyUSB0
	- if not done then we get python exception in browser - need to catch that exception

!!!!!!!!!NOTE: need to make a UDEV rule to make this automatic
 you can automate the process like this:
Add the following single line to /etc/udev/rules.d/99-ftdi.rules
ACTION=="add", ATTRS{idVendor}=="0403", ATTRS{idProduct}=="6001", RUN+="/sbin/modprobe ftdi_sio" RUN+="/bin/sh -c 'echo 0403 6001 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id'"
Either reboot or run sudo udevadm control --reload to pick up the new rule.
Unplug the device.
Plug in the device.

------------------------------------------------------------------------------------------------
old?:
------------------------------------------------------------------------------------------------
tried pylibftdi
apt-get install libftdi-dev
apt-get install python-pip
pip install pylibftdi
must change device id in /usr/local/lib/python2.7/dist-packages/pylibftdi/driver.py
can find device, know it contacts device because scrolling briefly pauses, but can't get it to respond


trying to contact with minicom
modprobe ftdi_sio
echo 0403 7c58 > /sys/bus/usb-serial/drivers/ftdi_sio/new_id
unplug/replug device
/dev/ttyUSB0 shows up , dmesg shows "Detected FT232RL"
minicom -b 9600 --device /dev/ttyUSB0 didn't work but 
putty -serial -sercfg 9600,8,n,1 /dev/ttyUSB0
worked - can paste in character sequences and get responses
try5.py can write and read





