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

From The Dragon Archive
(fixups)
Line 5: Line 5:
 
== Hardware ==
 
== Hardware ==
  
The built-in serial UART is the CP2102
+
The built-in serial UART is the CP2102 from Silicon Labs.
  
 
== Windows ==
 
== Windows ==
Line 13: Line 13:
 
== Linux ==
 
== Linux ==
  
some needful commands:
+
In most cases, you simply need to run "sudo adduser $USER dialout". Read on for more details.
 +
 
 +
Some helpful commands:
 
<pre>
 
<pre>
 
~ $ sudo lsusb | grep UART
 
~ $ sudo lsusb | grep UART
Line 32: Line 34:
 
crw-rw---- 1 root dialout 188, 0 Nov 11 13:15 /dev/ttyUSB0
 
crw-rw---- 1 root dialout 188, 0 Nov 11 13:15 /dev/ttyUSB0
 
</pre>
 
</pre>
In this case you should assume that your user is in the usergroup '''dialout''', e.g.:
+
In this case you should assure that your user is in the user group '''dialout''', e.g.:
 
<pre>
 
<pre>
$ groups # Display the usergroups for the current user
+
$ 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
 
user_foo : user_foo adm tty dialout fax cdrom floppy tape sudo audio dip video plugdev netdev fuse lpadmin scanner
 
</pre>
 
</pre>
Is the group is not listed, add the user, e.g:
+
Is the group is not listed, add your user to the group, e.g:
 
<pre>
 
<pre>
adduser username dialout
+
sudo adduser $USER dialout
 
</pre>
 
</pre>
  
You have to logout and relogin!
+
You will have to logout and relogin after this command!
  
== Drivewire Server ==
+
== Drivewire servers ==
  
The Drivewire Server 4 is a Java Application and can be downloaded here: https://sites.google.com/site/drivewire4/download
+
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 exist also "DriveWire Lite": a reimplementation in C of the server side of the DriveWire 3 protocol: http://sourceforge.net/projects/dwlite/
  
== Drivewire Server 4 usage ==
+
== 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:
+
If you would like to use the server under Windows without installing the JRE, use this batch file for startup:
 
<pre>
 
<pre>
 
SET JDK=%~dp0\jre
 
SET JDK=%~dp0\jre
Line 59: Line 64:
 
pause
 
pause
 
</pre>
 
</pre>
Download a JRE and put it into divewire directory with this batch.
+
Download a JRE and put it into DriveWire directory together with this batch file.
 
 
 
 
Just choose CoCo2 from the DriveWire Server simple config wizard.
 
Keep all the default selections.
 
  
  

Revision as of 22:14, 4 December 2014

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!

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/

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:

SET JDK=%~dp0\jre
SET JAVA_EXE=%JDK%\bin\java.exe
"%JAVA_EXE%" -XX:+UseConcMarkSweepGC -jar DW4UI.jar --backup &
pause

Download a JRE and put it into DriveWire directory together with this batch file.


Links