Eric--
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.
Thanks Jan. What is the chipset of the USB on the bluetooth board? I unfortunately don't have a bluetooth DGT board and can't help debug.
Shiv
On Oct 14, 2012, at 11:12 PM, Jan Krabbenbos <jan.kra...@gmail.com> wrote:
The USB on the Bluetooth board is not FTDI. I guess the signature of the USB port in Linux tells the OS it is a modem, this happens also on Mac OS X (which is another Unix variant). I still have to figure out how this should be solved on OS X and have not had time to look at this issue under any Linux version.Regards,
Jan
On 15 okt. 2012, at 01:56, Shivkumar Shivaji <sshi...@gmail.com> wrote:
Its hard to tell exactly what is happening without a live Bluetooth DGT board. However, when I look up the device for me, its /dev/serial/by-id/usb-FTDI_USB__-__Serial-if00-port0.Is the USB port that is on the bluetooth DGT board not an FTDI chip? Jan might know. You can try to see if linux on the desktop has the same issue.
Shiv
On Sun, Oct 14, 2012 at 1:04 PM, Eric Singer <mytu...@yahoo.com> wrote:
I'm having an issue with picochess and using a standard USB cable to connect the Rikomagic and the e-board. I've tested the USB cable connection using "DGT BoardTester" application with my Windows laptop and it tests okay. So the cable is not the issue.The first problem is the startup script is using /dev/ttyUSB0 device which does not appear in the /dev directory (Even with a fresh boot and the cable and board connected).There's a device that appears under /dev/serial/by-id that looks promising
min...@miniand:/dev$ ls -l /dev/serial/by-id/usb-DGT_DGT_Chessboard-if00
lrwxrwxrwx 1 root root 13 Oct 14 15:30 /dev/serial/by-id/usb-DGT_DGT_Chessboard-if00 -> ../../ttyACM0
This is linked to the /dev/ttyACM0 device, however that does not work when I try Stockfish with it.
min...@miniand:/dev$ /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyACM0
--
Shiv,Thanks for this information too. Very useful.Regards,Jan
On 16 okt. 2012, at 14:50, Shivkumar Shivaji <sshi...@gmail.com> wrote:
Though I don't have the device, I see the problem. The cdc_acm modem device module is loaded ! Jan's comment is right on. Try the suggestion of the following link. For vendor Id and product I'd use what is in the third paragraph of your last email.You have to remove the cdc_acm module and force a different module on the device. If this procedure works, there is a way to automate this process by blacklisting the cdc_acm module.Shiv
This is what I get
ro...@miniand:/home/miniand# udevadm info --query=all --name="/dev/ttyACM0" --att ribute-walk
ro...@miniand:/dev# ls -l /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 0 Oct 16 16:24 /dev/ttyUSB0
However it still doesn't work
ro...@miniand:/dev# /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyUSB0
Stockfish 121006 by Tord Romstad, Marco Costalba and Joona Kiiski
dgtnix-debug:debug mode set to DGTNIX_DEBUG_WITH_TIME
dgtnix-debug:opening driver in normal mode
dgtnix-debug:Sending _DGTNIX_SEND_RESET to the board
dgtnix-debug:Sending _DGTNIX_SEND_BRD to the board
dgtnix-debug:Sending _DGTNIX_SEND_SERIALNR to the board
dgtnix-debug:Sending _DGTNIX_SEND_BUSADDRESS to the board
dgtnix-debug:Sending _DGTNIX_SEND_VERSION to the board
dgtnix-debug:Sending _DGTNIX_SEND_TRADEMARK to the board
dgtnix-debug:Sending _DGTNIX_SEND_UPDATE to the board
dgtnix-debug:/dev/ttyUSB0 does not respond to the init query.
Here's the udevadm attributewalk output
ro...@miniand:/dev# udevadm info --query=all --name="/dev/ttyUSB0" --attribute-walk
ro...@miniand:/dev# lsmod
You can't emulate ftdi_sio with this usb serial port.At this point, I would recommend trying out g-serial. I think none of these solutions will work out of the box, but you can echo and see what you are getting (like you indicated).If you have time and are curious, you can debug the DGTNIX driver line by line for your bluetooth connection and the USB connection using the usb-serial driver and compare. usb-serial however does not have buffering or some of the advanced things that you have via ftd_sio.Its hard to recommend much more at this point without having the device. The fact that you have a working connection and one that does not work is good. You can probably see if you get terminal output and compare the 2 connections. The original link sent by Jan allows you to test cdc_acm, which might be useful as well. The DGT protocol is documented and available from http://www.dgtprojects.com/site/index.php/dgtsupport/developer-info/downloads/cat_view/131-developersShiv
On Oct 22, 2012, at 4:49 PM, Eric Singer <mytu...@yahoo.com> wrote:
I'm back, however I haven't figured anything out yet. I tried removing all the serial and usb related modules and issuing a modprobe ftdi_sio vendor=0x04d8 product=0x000aThat created two devices
ro...@miniand:/home/miniand# lsmod
Module Size Used by
8192cu 512561 0
ftdi_sio 30625 0
cdc_acm 18935 0
usbserial 34183 1 ftdi_sio
root@miniand:/home/miniand# rmmod ftdi_sio
root@miniand:/home/miniand# rmmod usbserial
root@miniand:/home/miniand# rmmod cdc_acm
ro...@miniand:/home/miniand# lsmod
Module Size Used by
8192cu 512561 0
ro...@miniand:/home/miniand# modprobe ftdi_sio vendor=0x04d8 product=0x000aro...@miniand:/home/miniand# lsmod
Module Size Used by
ftdi_sio 30625 1
usbserial 34183 3 ftdi_sio
8192cu 512561 0
ro...@miniand:/home/miniand# ls -l /dev/ttyUSB*
crw-rw---- 1 root dialout 188, 0 Oct 22 19:35 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 Oct 22 19:35 /dev/ttyUSB1
ro...@miniand:/home/miniand# /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyUSB0
Stockfish 121006 by Tord Romstad, Marco Costalba and Joona Kiiski
dgtnix-debug:debug mode set to DGTNIX_DEBUG_WITH_TIME
dgtnix-debug:opening driver in normal mode
dgtnix-debug:Sending _DGTNIX_SEND_RESET to the board
dgtnix critical:sendMessageToBoard: write() error
: No such device
ro...@miniand:/home/miniand# /home/miniand/git/Stockfish/src/stockfish dgt /dev/ttyUSB1
Stockfish 121006 by Tord Romstad, Marco Costalba and Joona Kiiski
dgtnix-debug:debug mode set to DGTNIX_DEBUG_WITH_TIME
dgtnix-debug:opening driver in normal mode
dgtnix-debug:Sending _DGTNIX_SEND_RESET to the board
dgtnix-debug:Sending _DGTNIX_SEND_BRD to the board
dgtnix-debug:Sending _DGTNIX_SEND_SERIALNR to the board
dgtnix-debug:Sending _DGTNIX_SEND_BUSADDRESS to the board
dgtnix-debug:Sending _DGTNIX_SEND_VERSION to the board
dgtnix-debug:Sending _DGTNIX_SEND_TRADEMARK to the board
dgtnix-debug:Sending _DGTNIX_SEND_UPDATE to the board
dgtnix-debug:/dev/ttyUSB1 does not respond to the init query.
Hi Everyone,
Eric--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
Great Eric.
Thanks
Gab
--
I've modified the Bluetooth detection and connection script to look for the Revelation II board. I'm not sure how well it will work, since I do not own a Revelation II board to test with.
miniand@miniand:~$ sudo /home/miniand/git/Stockfish/src/stockfish dgt /dev/rfcomm0
Stockfish DD by Tord Romstad, Marco Costalba and Joona Kiiski
dgtnix-debug:debug mode set to DGTNIX_DEBUG_WITH_TIME
dgtnix-debug:opening driver in normal mode
dgtnix-debug:Sending _DGTNIX_SEND_RESET to the board
dgtnix-debug:Sending _DGTNIX_SEND_BRD to the board
dgtnix-debug:Sending _DGTNIX_SEND_SERIALNR to the board
dgtnix-debug:Sending _DGTNIX_SEND_BUSADDRESS to the board
dgtnix-debug:Sending _DGTNIX_SEND_VERSION to the board
dgtnix-debug:Sending _DGTNIX_SEND_TRADEMARK to the board
dgtnix-debug:Sending _DGTNIX_SEND_UPDATE to the board
dgtnix-debug:Received _DGTNIX_BOARD_DUMP from the board
dgtnix-debug:|r|n|b|q|k|b|n|r|
dgtnix-debug:|p|p|p|p|p|p|p|p|
dgtnix-debug:| | | | | | | | |
dgtnix-debug:| | | | | | | | |
dgtnix-debug:| | | | | | | | |
dgtnix-debug:| | | | | | | | |
dgtnix-debug:|P|P|P|P|P|P|P|P|
dgtnix-debug:|R|N|B|Q|K|B|N|R|
dgtnix-debug:Received _DGTNIX_SERIALNR from the board
dgtnix-debug:serial number 00001
dgtnix-debug:Received _DGTNIX_BUSADDRESS from the board
dgtnix-debug:bus address 0-0x1
dgtnix-debug:Received _DGTNIX_VERSION from the board
dgtnix-debug:version 0.57
dgtnix-debug:Board initialised
The board was found - code: 5
dgtnix-debug:Received _DGTNIX_TRADEMARK from the board
dgtnix-debug:trademark DGT Projects - Digital Game Technology.
This Revelation II board is produced by DGT.
Firmw. ver. 0.57 051113/Bootloader ver. 3.02 230513/Serial nr: 0000000001:
dgtnix-debug:Sending _DGTNIX_SEND_UPDATE_NICE to the board
Sending message:pic018
dgtnix-debug:Sending message to clock
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: write() error. Retrying..
: Input/output error
dgtnix critical:sendMessageToClock: More than 5 retries, exiting.
: Input/output error
miniand@miniand:~$
--
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.
--
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.
Jonas, did you get the rikomagic to work with the Rev II before? (Prior to using the new bluetooth setup)
--
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.