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

From The Dragon Archive
Line 26: Line 26:
 
</pre>
 
</pre>
  
Look at the last line, to see that the adapter is assigned to '''ttyUSB0'''
+
Look at the last line, to see that the adapter is assigned to '''ttyUSB0'''. Check which groups have access to it:
  
 +
<pre>
 +
$ ls -l /dev/ttyUSB0
 +
crw-rw---- 1 root dialout 188, 0 Nov 11 13:15 /dev/ttyUSB0
 +
</pre>
 +
In this case you should assume that your user is in the usergroup '''dialout''', e.g.:
 +
<pre>
 +
$ groups ${USER}
 +
user_foo : user_foo adm tty dialout fax cdrom floppy tape sudo audio dip video plugdev netdev fuse lpadmin scanner
 +
</pre>
 +
Is the group is not listed, add the user, e.g:
 +
<pre>
 +
adduser username dialout
 +
</pre>
 +
 +
You have to logout and relogin!
  
 
== Drivewire Server ==
 
== Drivewire Server ==

Revision as of 15:00, 11 November 2014

Drivewire.jpg

See also: Drivewire_for_dummies

Hardware

The built-in serial UART is the CP2102

Windows

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

Linux

some needful 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 assume that your user is in the usergroup dialout, e.g.:

$ groups ${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 the user, e.g:

adduser username dialout

You have to logout and relogin!

Drivewire Server

The Drivewire Server 4 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/

Drivewire Server 4 usage

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 divewire directory with this batch.


Just choose CoCo2 from the DriveWire Server simple config wizard. Keep all the default selections.


Links