Picochess working with Bluetooth DGT Board (Procedure included)

510 views
Skip to first unread message

Eric Singer

unread,
Oct 14, 2012, 9:59:25 AM10/14/12
to pico...@googlegroups.com
I finally recieved my RikoMagic MK802 II and I Picochess working great with a bluetooth connection to my DGT board.
 
Here's a procedure on how to set this up.
 
Prerequisites:
1) DGT Bluetooth E-board and XL Clock
2) A USB Bluetooth Dongle (Mine is an IOGear GBU421 http://www.iogear.com/product/GBU421/ )
3) The ability to access the RikoMagic through a terminal emulator and access the Super User account (The USB Bluetooth Dongle has to be plugged in, I have a USB hub to provide BT Dongle, Keyboard and Mouse all at the same time).
 
Steps:
1) Power up the XL clock (in mode 23) and the DGT Bluetooth E-board.
2) Insert the USB Bluetooth dongle into the RikoMagic directly (if you have a network connection setup with Super User access) or a USB hub that's connected to the RikoMagic.
3) Power up the RikoMagic.
4) Get to a command prompt and use the command sudu su with the password of picochess to gain access to the Super User account.
5) Get the bluetooth dongle's device by using the command hciconfig (in the below example hci0 was found).
 
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:02:72:AC:46:C0  ACL MTU: 1021:7  SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:7375 acl:9 sco:0 events:109 errors:0
        TX bytes:937 acl:6 sco:0 commands:56 errors:0
 
6)  Get the Bluetooth Device address using the command hcitool scan (in the below example my e-board is 00:06:66:04:FD:17 )
 
miniand@miniand:~$ hcitool scan
Scanning ...
        00:06:66:04:FD:17       DGT_BT_20336
 
7)  Pair the Bluetooth dongle and the e-board.   Use the  bluez-simple-agent command with the USB dongle's device and the e-board's address.   You'll need to enter the pairing pin of 0000
 
miniand@miniand:~$ bluez-simple-agent hci0 00:06:66:04:FD:17
RequestPinCode (/org/bluez/264/hci0/dev_00_06_66_04_FD_17)
Enter PIN Code: 0000
Release
New device (/org/bluez/264/hci0/dev_00_06_66_04_FD_17)
 
8)  Now that we have the pairing stored, we need to setup the serial communications device so when the RikoMagic/Picochess boots it's available for stockfish.   Edit the file /etc/bluetooth/rfcomm.conf and insert these lines at the bottom of the file.  NOTE: You'll need to use your E-board's bluetooth device address and not my address which is in the example.
 
rfcomm0 {
        bind yes;
        device 00:06:66:04:FD:17;
        channel 1;
        Comment "DGT Bluetooth Board";
}
 9) Save the changes to rfcomm.conf.   Once again, this file will setup the communication device /dev/rfcomm0 for stockfish to use when the RikoMagic and Picochess boots.
 
10) Finally you'll need to edit the stockfish initialization script to use the /dev/rfcomm0 device
a) Edit /etc/init.d/stockfish
b) find the start section of the script
c) copy and paste the screen line
d) comment out (#) the original screen line
e) Change the device at the end of the copied line from /dev/ttyUSB0 to /dev/rfcomm0
f) Save these changes to the /etc/init.d/stockfish file
 
Example of the changes to the start section
------------------------------------------------------
  start)
    echo "Starting stockfish "
    #nohup /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyUSB0 &
    #screen -dmUS sf /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyUSB0
    screen -dmUS sf /home/miniand/git/Stockfish/src/stockfish dgt /dev/rfcomm0
 
    ;;
------------------------------------------------------
 
11) Setup is now complete.   Power off the RikoMagic.  Place the USB Bluetooth dongle in the standard USB port of the RikoMagic and power it up.  (Make sure the XL clock is in mode 23 and the board is powered up before doing this)
 
Enjoy!
Eric 
 

Shivkumar Shivaji

unread,
Oct 14, 2012, 11:05:41 AM10/14/12
to pico...@googlegroups.com
Fantastic! This information should be on the wiki/manual at https://github.com/jromang/Stockfish/wiki/Manual

You need to sign up for a free github account to add to the wiki.

I thought the rikomagic already had Bluetooth internal to it (perhaps not?). I wonder if one can make it work without the external USB Bluetooth adapter.

Interestingly, as you have gotten this far, you can easily upgrade your version of picochess by going to the /home/miniand/git folder and following steps 6-8 on the manual on building custom images, for the git commands.

Shiv
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group, send email to picochess+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Singer

unread,
Oct 14, 2012, 11:53:33 AM10/14/12
to pico...@googlegroups.com
Hi Shiv,
 
Unfortunately the rikomagic doesn't come with bluetooth :(  So a USB Bluetooth dongle is needed.
 
If I could figure out how to pair the DGT and dongle with a command that doesn't require a keyboard input of 0000 then I could script this entire setup.   My idea is that a function call could be made in the stockfish init script that finds the DGT device on USB or Bluetooth device and passes that as a variable instead of hardcoding the device like it is right now.
 
If that could be done then adding this procedure to the Wiki would be useless since the setup would be automatic.
 
Once a get a good battery charge on my camera, I'll do a short video showing the bluetooth operation.
 
This is a fun project and really brings playing on the DGT board up to a new level.
 
Eric

On Sunday, October 14, 2012 11:05:47 AM UTC-4, sshivaji wrote:
Fantastic! This information should be on the wiki/manual at https://github.com/jromang/Stockfish/wiki/Manual

You need to sign up for a free github account to add to the wiki.

I thought the rikomagic already had Bluetooth internal to it (perhaps not?). I wonder if one can make it work without the external USB Bluetooth adapter.

Interestingly, as you have gotten this far, you can easily upgrade your version of picochess by going to the /home/miniand/git folder and following steps 6-8 on the manual on building custom images, for the git commands.

Shiv

On Oct 14, 2012, at 6:59 AM, Eric Singer <mytu...@yahoo.com> wrote:

I finally recieved my RikoMagic MK802 II and I Picochess working great with a bluetooth connection to my DGT board.
 
Here's a procedure on how to set this up.
 
Prerequisites:
1) DGT Bluetooth E-board and XL Clock
2) A USB Bluetooth Dongle (Mine is an IOGear GBU421 http://www.iogear.com/product/GBU421/ )
3) The ability to access the RikoMagic through a terminal emulator and access the Super User account (The USB Bluetooth Dongle has to be plugged in, I have a USB hub to provide BT Dongle, Keyboard and Mouse all at the same time).
 
Steps:
1) Power up the XL clock (in mode 23) and the DGT Bluetooth E-board.
2) Insert the USB Bluetooth dongle into the RikoMagic directly (if you have a network connection setup with Super User access) or a USB hub that's connected to the RikoMagic.
3) Power up the RikoMagic.
4) Get to a command prompt and use the command sudu su with the password of picochess to gain access to the Super User account.
5) Get the bluetooth dongle's device by using the command hciconfig (in the below example hci0 was found).
 
hci0:   Type: BR/EDR  Bus: USB
        BD Address: 00:02:72:AC:46:C0  ACL MTU: 1021:7  SCO MTU: 64:1
        UP RUNNING PSCAN
        RX bytes:7375 acl:9 sco:0 events:109 errors:0
        TX bytes:937 acl:6 sco:0 commands:56 errors:0
 
6)  Get the Bluetooth Device address using the command hcitool scan (in the below example my e-board is 00:06:66:04:FD:17 )
 
min...@miniand:~$ hcitool scan

Eric Singer

unread,
Oct 14, 2012, 1:07:55 PM10/14/12
to pico...@googlegroups.com
I have created a demonstration video showing picochess and the DGT bluetooth e-board operating together.
 
When it's finished uploading, the video will be available at this Youtube URL
 
 
Eric 

Shivkumar Shivaji

unread,
Oct 14, 2012, 2:11:58 PM10/14/12
to pico...@googlegroups.com
Great to have a video! Jean should consider linking it from the front page somehow :) Jean too had an initial video on pico chess which make me interested in the project.

On the init.d script, its possible to check for existence of /dev/ttyusb0 and if that fails to try /dev/rfcomm0 next. The simple bash 'exists' keyword is likely to work. Once you have something like that working, you can either do a pull request or since this is small, send the diff to Jean. I feel automating the BT pairing is harder as people might use a different device USB BT device. However, would be great if there is a possible solution.

On the specs, it said that rikomagic v2 has bluetooth, I guess that was wrong. I never investigated the actual device as I don't typically use bluetooth!

I have added a section on the manual/wiki on how to update pico chess on the rikomagic. You can use that procedure to update to the latest pico chess build. Feel free to update that section.

Shiv

Eric Singer

unread,
Oct 14, 2012, 3:50:31 PM10/14/12
to pico...@googlegroups.com
The video finished uploading, so please take a look.
 
I don't want to mess up this thread, however one of the driving forces to get the bluetooth working in Picochess is the fact that when I plug the e-board up using the standard USB cable the device doesn't respond.
 
I'll start a separate thread on this topic.
 
Eric

Jean-Francois Romang

unread,
Oct 15, 2012, 3:48:26 AM10/15/12
to pico...@googlegroups.com
Thanks Eric ! I created a wiki page based on your instructions
(https://github.com/jromang/Stockfish/wiki/DGT-Bluetooth-eboard-configuration)
: feel free to edit it as needed :-)
Very nice video, I added it to the front page. I'm very happy to see
it running on a bluetooth eboard ;-)

Regards,
Jean-Francois

2012/10/14 Eric Singer <mytu...@yahoo.com>:

Eric Singer

unread,
Apr 24, 2013, 7:40:14 AM4/24/13
to pico...@googlegroups.com
Just want to let any DGT Bluetooth e-Board users know that DGT release a new version of their firmware and bootloader (Version 3.0).   Something has changed and I can no longer connect using Picochess and my bluetooth dongle.   I'll investigate this problemI have some free time and hopefully get a fix for this issue.
 
Thanks,
Eric

Jean-Francois Romang

unread,
Apr 24, 2013, 7:44:57 AM4/24/13
to pico...@googlegroups.com
Thanks Eric !


2013/4/24 Eric Singer <esin...@gmail.com>
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
Message has been deleted

Shivkumar Shivaji

unread,
Apr 30, 2013, 1:11:09 PM4/30/13
to pico...@googlegroups.com
No problem. At least it works!

Shiv
On Apr 28, 2013, at 4:23 AM, Eric Singer <esin...@gmail.com> wrote:

I don't feel very smart right now.  Went to take out the micro SD card out for troubleshooting and realized that there wasn't one in it.  Found the Picochess micro SD, plug it in and everything works fine now.
 
Sorry, false alarm.
Eric

Mete Yücel

unread,
Nov 15, 2014, 1:11:55 PM11/15/14
to pico...@googlegroups.com
Must i use iogear dongle or is connection to eboard with every dongle possible?

Shivkumar Shivaji

unread,
Nov 15, 2014, 1:38:36 PM11/15/14
to pico...@googlegroups.com
Any compatible dongle should work. Better to go with a more popular manufacturer to reduce risk of linux incompatibility.

Shiv

> On Nov 15, 2014, at 10:11 AM, Mete Yücel <yuece...@googlemail.com> wrote:
>
> Must i use iogear dongle or is connection to eboard with every dongle possible?
>
> --
> You received this message because you are subscribed to the Google Groups "PicoChess" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages