In the last 12 months, Windows users and developers have been constantly providing feedbacks and suggestions on how to make the DLL better. We listened to each and every suggestions and worked really hard on the DLL. Our test machine for Windows ran more than 3 months non-stop without crashing whilst controlling the radio. With this kind of stability we decided that it is about time to declare Windows DLL stable and move on to other OS.
We have many requests for Linux driver in the past from our customers and we wish to tell you that listening to customers is always our priority. The reason why it took us so long was because we do not wish to release something that is buggy that will waste developers precious time. Focusing on the Windows DLL and make it as robust as possible helps create a strong foundation when we port the codes to other platforms. The other reason was it was hard working with Linux RAW serial port. We have many failure attempts before coming to this beta release. Timing difference and behaviour difference were hard to tackle especially the DTR, RTS and also the timeouts.
In this tutorial, we will quickly go through DABMonkey in Raspberry Pi and later in PC running Ubuntu using our beta Linux library.
When the board is plugged into the system's USB, a tty device will be created. Execute the dmesg command after plugged in the board will produce the following result for version 1.1 and 1.2 board.
[ 2898.566001] usb 1-1.2: new full-speed USB device number 5 using dwc_otg
[ 2898.670162] usb 1-1.2: New USB device found, idVendor=04d8, idProduct=000a
[ 2898.670192] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2898.670209] usb 1-1.2: Product: CDC RS-232 Emulation Demo
[ 2898.670223] usb 1-1.2: Manufacturer: Microchip Technology Inc.
[ 2898.677744] cdc_acm 1-1.2:1.0: This device cannot do calls on its own. It is not a modem.
[ 2898.677850] cdc_acm 1-1.2:1.0: ttyACM0: USB ACM device
From the result, /dev/ttyACM0 was created.
With Raspberry Pi properly setup and able to access the internet, run the following commands:
tar -xvzpf raspberrypi_keystone.tgz keystonecomm/
sudo make install
With an Ubuntu PC properly setup and able to access the internet, run the following commands:
tar -xvzpf ubuntupc_keystone.tgz keystonecomm/
sudo make install
Screenshot showing the result of executing the testdab application
The testdab.cpp was written in the simplest possible form in C for easy understanding and produces results in text. It serves as a starting point for developers to create their own application. We will be happy to see soon developers creating network based DAB Radio with SlideShow display on the web.
Update 29th March 2013
A developer named 68070 from Germany just sent us his network controlled DAB software using the Ubuntu driver together with source here.
After running the app, the app is listening to a TCP port. Example commands are:
"echo "8" | netcat localhost 20000"
"echo "v" | netcat localhost 20000"
Please read the Readme.txt in the zip file for more information. Thanks 68070.
Note: Developer wishing to obtain the source code please contact our support. Please take note that Virtual Machine is not supported due to timing requirements.