Difference between revisions of "Dragon 32/64 Drivewire Adapter"

From The Dragon Archive
(+github.com/6809/DwLoadServer)
(moved server software parts to new DriveWire page)
Line 46: Line 46:
 
You will have to logout and relogin after this command!
 
You will have to logout and relogin after this command!
  
== Drivewire servers ==
 
  
The Drivewire4 server is a Java application and can be downloaded here: https://sites.google.com/site/drivewire4/download
 
 
There exist also "DriveWire Lite": a reimplementation in C of the server side of the DriveWire 3 protocol: http://sourceforge.net/projects/dwlite/
 
 
There is also a OpenSource DriveWire Server written in Python: https://github.com/6809/DwLoadServer
 
 
== Drivewire4 server usage ==
 
 
Just choose CoCo2 in the DriveWire4 server "Simple Config Wizard".
 
Keep all the default selections.
 
 
If you would like to use the server under Windows without installing the JRE, use this batch file for startup:
 
<pre>
 
SET JDK=%~dp0\jre
 
SET JAVA_EXE=%JDK%\bin\java.exe
 
"%JAVA_EXE%" -XX:+UseConcMarkSweepGC -jar DW4UI.jar --backup &
 
pause
 
</pre>
 
Download a JRE and put it into DriveWire directory together with this batch file.
 
  
  

Revision as of 17:48, 22 August 2015

Drivewire.jpg

See also: Drivewire_for_dummies

Hardware

The built-in serial UART is the CP2102 from Silicon Labs.

Windows

Windows driver can be downloaded from the chip manufacturer: http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx

Linux

In most cases, you simply need to run "sudo adduser $USER dialout". Read on for more details.

Some helpful commands:

~ $ sudo lsusb | grep UART
Bus 001 Device 002: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

$ dmesg | grep -ie cp210*
[17479.466698] usb 1-1: Product: CP2102 USB to UART Bridge Controller
[17479.548508] usbcore: registered new interface driver cp210x
[17479.548520] usbserial: USB Serial support registered for cp210x
[17479.548535] cp210x 1-1:1.0: cp210x converter detected
[17480.428168] usb 1-1: cp210x converter now attached to ttyUSB0

Look at the last line, to see that the adapter is assigned to ttyUSB0. Check which groups have access to it:

$ ls -l /dev/ttyUSB0 
crw-rw---- 1 root dialout 188, 0 Nov 11 13:15 /dev/ttyUSB0

In this case you should assure that your user is in the user group dialout, e.g.:

$ groups # Display the user groups for the current user
user_foo : user_foo adm tty dialout fax cdrom floppy tape sudo audio dip video plugdev netdev fuse lpadmin scanner

Is the group is not listed, add your user to the group, e.g:

sudo adduser $USER dialout

You will have to logout and relogin after this command!



Links