Linux+BS2 setup
icepuck
Posts: 466
Linux notes for using a BS2 USB boeboard rev. D.
Ubuntu netbook remix on a Dell mini 10.1
Wine version 1.01
Basic Stamp editor v2.4.2
Use the Synaptic package manager to install the ubuntu WINE packages.
If wine installed correctly you will see a new menu entry for wine. Click on "Configure Wine" icon then click on the applications tab and check the windows version. Select Windows XP and apply.
Next Download Setup-Stamp-Editor-v2.4.2.exe and save it the downloads folder.
Right click on the exe and select "Open with wine windows program loader"
If all went as planned you will be greeted with the BSE windows intaller menus. Install as you would with a real windows install.
Using the Synaptic package manager search for "ftdi" to see if any FTDI modules were installed.
In this case I installed the following
python-ftdi 0.16-2
libftdi1 0.16-2
libftdipp1 0.16-2
Plug in your Boe into a usb port, if all went as planned you should see the leds flash.
The following is for if you want to use a usb2serial adaptor that uses the FTDI chip.I just so happened to have a no-name adaptor that uses the same chip and the same settings in the following example.
Go to Accessories and open up the terminal and type
sudo su then enter your root password
lsusb
This is what you will see if your Boe board is plugged in.
Bus 005 Device 006: ID 0403:6001 Future Technology Devices International, LTD FT232 USB-SERIAL (UART) IC
then type
dmesg tty or dmesg tty | more if you want to have time to read everything.
Look for a line like the following at or near the bottom of text that scrolls past really fast.
usb 5-2: FTDI USB Serial Device converter now attached to ttyUSB0
Type the following line but replace the "?" with what dmesg tty found.
ln -s /dev/ttyUSB? ~/.wine/dosdevices/com?
In my setup this is what I used to make a link to the com port for use in wine.
ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
When I ran the stamp editor it seemed to work exept for Ctl+I to identify the basic stamp.
I was greeted with a "No usable serial ports found" error.
Clicking the drive "C:\" causes it to crash.
In order to test things I tried a windows terminal program called Tera Term Web 3.1 with my usb2serial adaptor hooked up to my Hero1 robot. After changing the serial port setup to Hero's requirements I was able to connect to Hero and was greeted with the Wintek HERO-1 BASIC command line prompt.
That was the proof I needed to see if things really worked.
I hope this helps out anyone else trying to use a basic stamp with linux.
A true test would be a program on the stamp that would return everything that was sent to it from the terminal, but I haven't made it that far-yet. Debug/Debug in?
Why the basic stamp editor will not see the serial port I haven't been able to figure that out. Maybe some one at parallax(or anyone else) can answer that question.
-dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Arguing with myself--sometimes me, myself, and I don't always agree.
(Former) Caterpillar product support technician
Post Edited (icepuck) : 2/10/2010 2:16:15 AM GMT
Ubuntu netbook remix on a Dell mini 10.1
Wine version 1.01
Basic Stamp editor v2.4.2
Use the Synaptic package manager to install the ubuntu WINE packages.
If wine installed correctly you will see a new menu entry for wine. Click on "Configure Wine" icon then click on the applications tab and check the windows version. Select Windows XP and apply.
Next Download Setup-Stamp-Editor-v2.4.2.exe and save it the downloads folder.
Right click on the exe and select "Open with wine windows program loader"
If all went as planned you will be greeted with the BSE windows intaller menus. Install as you would with a real windows install.
Using the Synaptic package manager search for "ftdi" to see if any FTDI modules were installed.
In this case I installed the following
python-ftdi 0.16-2
libftdi1 0.16-2
libftdipp1 0.16-2
Plug in your Boe into a usb port, if all went as planned you should see the leds flash.
The following is for if you want to use a usb2serial adaptor that uses the FTDI chip.I just so happened to have a no-name adaptor that uses the same chip and the same settings in the following example.
Go to Accessories and open up the terminal and type
sudo su then enter your root password
lsusb
This is what you will see if your Boe board is plugged in.
Bus 005 Device 006: ID 0403:6001 Future Technology Devices International, LTD FT232 USB-SERIAL (UART) IC
then type
dmesg tty or dmesg tty | more if you want to have time to read everything.
Look for a line like the following at or near the bottom of text that scrolls past really fast.
usb 5-2: FTDI USB Serial Device converter now attached to ttyUSB0
Type the following line but replace the "?" with what dmesg tty found.
ln -s /dev/ttyUSB? ~/.wine/dosdevices/com?
In my setup this is what I used to make a link to the com port for use in wine.
ln -s /dev/ttyUSB0 ~/.wine/dosdevices/com1
When I ran the stamp editor it seemed to work exept for Ctl+I to identify the basic stamp.
I was greeted with a "No usable serial ports found" error.
Clicking the drive "C:\" causes it to crash.
In order to test things I tried a windows terminal program called Tera Term Web 3.1 with my usb2serial adaptor hooked up to my Hero1 robot. After changing the serial port setup to Hero's requirements I was able to connect to Hero and was greeted with the Wintek HERO-1 BASIC command line prompt.
That was the proof I needed to see if things really worked.
I hope this helps out anyone else trying to use a basic stamp with linux.
A true test would be a program on the stamp that would return everything that was sent to it from the terminal, but I haven't made it that far-yet. Debug/Debug in?
Why the basic stamp editor will not see the serial port I haven't been able to figure that out. Maybe some one at parallax(or anyone else) can answer that question.
-dan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Arguing with myself--sometimes me, myself, and I don't always agree.
(Former) Caterpillar product support technician
Post Edited (icepuck) : 2/10/2010 2:16:15 AM GMT