Sounds promising, yes the swapping of the Ethernet and USB ports will require a case modification.
Al.
Good news,
According to: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711/rpi_DATA_2711_1p0_preliminary.pdf page 10 there is no longer an I2C slave device on the pi 4. However there are 4 unused pin-function combinations. According to https://github.com/RPi-Distro/raspi-gpio/blob/master/raspi-gpio.c these pins do contain the I2C slave device! So with some changes in software and moving the wires to different pins it should be possible to us a pi 4 in a DGT Pi. Some mechanical modification to fit the new connector locations would be necessary.
I don't know yet about the Bluetooth and voice, but this should also be fixable.
Best regards,
Lucas
-----Original Message-----
From: pico...@googlegroups.com [mailto:pico...@googlegroups.com] On Behalf Of Scally
Sent: 02 July 2019 10:38
To: PicoChess <pico...@googlegroups.com>
Subject: RE: Raspberry Pi 4b and Picochess
Hi Lucas,
Thanks for the clarification, I must have miss-understood this fix for the RPi 3b+:
https://github.com/jromang/picochess/issues/272
However, with the voice problems on a normal RPi 4b (which must be on Raspbian Buster) and the connectivity problems with the DGT Pi with a RPi 4b within, it’s looking as though we will have to remain with Raspbian Stretch and a RPi 3b+ or lower.
Al.
--
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 pico...@googlegroups.com.
Hi,
I have made some changes to enable the I2C slave on the pi 4. These changes should work in theory, can you test them for me?
Replace the two attached files in /opt/picochess/dgt
Also move these wires:
- pin 12 BCM 18 to pin 19 BCM 10 (I2C slave SDA, green)
- pin 37 BCM 19 to pin 23 BCM 11 (I2C slave SCL, gray)
Keep these wires the same:
- pin 1 3V3 Power (VCC, red)
- pin 3 BCM 2 (I2C master SDA, blue)
- pin 5 BCM 3 (I2C master SCL, yellow)
- pin 9 Ground (GND, black)
see https://pinout.xyz, double check your work, you can destroy your pi by connecting to the wrong pins.
let me know if this works!
regards,
Lucas
Hi everyone,
Claude has tested for me and it looks like Picochess can now talk directly to the DGT 3000 from a Raspberry Pi 4b+.
Attached is the correct version, it should also still work on any other existing pi. For older pi's you still need to connect the wires the old way.
Enjoy!
Lucas
[bluetooth]# devices[bluetooth]# scan onDiscovery started[CHG] Controller DC:A6:32:6C:27:B5 Discovering: yes[NEW] Device 67:16:AE:DA:22:C3 67-16-AE-DA-22-C3[NEW] Device 00:06:66:04:FD:17 DGT_BT_20336[bluetooth]# pair 00:06:66:04:FD:17Attempting to pair with 00:06:66:04:FD:17[CHG] Device 00:06:66:04:FD:17 Connected: yesRequest PIN code[agent] Enter PIN code: 0000[CHG] Device 00:06:66:04:FD:17 UUIDs: 00001101-0000-1000-8000-00805f9b34fb[CHG] Device 00:06:66:04:FD:17 ServicesResolved: yes[CHG] Device 00:06:66:04:FD:17 Paired: yesPairing successful[DGT_BT_20336]# trust 00:06:66:04:FD:17[CHG] Device 00:06:66:04:FD:17 Trusted: yesChanging 00:06:66:04:FD:17 trust succeeded[CHG] Device 00:06:66:04:FD:17 ServicesResolved: no[CHG] Device 00:06:66:04:FD:17 Connected: no[bluetooth]# connect 00:06:66:04:FD:17Attempting to connect to 00:06:66:04:FD:17[CHG] Device 00:06:66:04:FD:17 Connected: yes[CHG] Device 00:06:66:04:FD:17 ServicesResolved: yesFailed to connect: org.bluez.Error.NotAvailable[CHG] Device 00:06:66:04:FD:17 ServicesResolved: no[CHG] Device 00:06:66:04:FD:17 Connected: no[bluetooth]#[bluetooth]# quit
# Remove the bluetooth pair of the DGT e-Board@reboot /bin/echo -e 'remove 00:06:66:04:FD:17 \nquit' | bluetoothctl# Remove the bluetooth pair of the DGT Revelation II@reboot /bin/echo -e 'remove 00:06:66:49:1B:1E \nquit' | bluetoothctl
[bluetooth]# devices[bluetooth]# scan onDiscovery started[CHG] Controller DC:A6:32:6C:27:B5 Discovering: yes
[NEW] Device 64:10:83:42:81:E8 64-10-83-42-81-E8[NEW] Device 00:06:66:04:FD:17 DGT_BT_20336[NEW] Device 00:06:66:49:1B:1E PCS-REVII-011025
https://www.dropbox.com/sh/hi06dymwlgcqdqb/AADJKU48tPM6iAGK7drrg_cZa?dl=0
Al.
systemctl start hciuart
/bin/echo -e 'remove 00:06:66:65:83:6C \nquit' | bluetoothctl
exit 0
Copy the script into /opt/picochess/scriptsMake it executable using sudo chmod 755 /opt/picochess/scripts/fix_bluetooth_4b.shEdit the root crontab by sudo crontab -eAdd this line at the bottom of the crontab @reboot /opt/picochess/scripts/fix_bluetooth_4b.sh 1>/opt/picochess/logs/fix_bluetooth_4b.log 2>&1
Yes, my RPi 4b is fine too, but it did connect before.
Thanks,
Al.
Copy the script into /opt/picochess/scripts
Make it executable using sudo chmod 755 /opt/picochess/scripts/fix_bluetooth_4b.py
Edit the root crontab by sudo crontab -e
Add this line at the bottom of the crontab @reboot python3 /opt/picochess/scripts/fix_bluetooth_4b.py 1>/opt/picochess/logs/fix_bluetooth_4b.log 2>&1
Hi all,
I’ve been attempting to get my new Raspberry Pi 4b working with Picochess and am having a couple of problems.
The First is with Bluetooth* connectivity the second with part speech, both using the new Raspbian Buster that the RPi 4b requires. The Bluetooth problem is intermittent on the RPi 3b+ running Buster.
*This could be that Lucas needs to supply a patch to dgtpicom and dgtpicom.so as was needed when the RPi 3b+ was introduced?
Basically I backed up my Picochess micro sd card using RPi Clone, then inserted my backup micro sd card and converted it from Stretch to Buster, which took 80+ minutes on my RPi 3b+ with cooling fan on.
(I will supply the method once it’s fool proof and the problems are fixed)
After the conversion and clean up, I needed to update the requirements in the Picochess folder, as several requirements were missing. Picochess then started ok, but I couldn’t connect to my Rev2 via Bluetooth. I removed my Rev2 from bluetoothctl and re-paired it and was able to connect, however I was back to the partial speech problem from a few weeks back. I knew how to fix that, but I wanted to try the micro sd card in my RPi 4b first. It booted fine but I couldn’t get it to connect to my Rev2. Like a couple of weeks ago I started back tracking through RPi-update to no avail with fixing speech. As soon as back tracked past the update for the the RPi 4b, it failed to boot, as expected. This update is 4.19.55 whereas the update for fixed speech is 4.19.36.
I placed the micro sd card back in my RPi 3b+ and it booted fine, I then back tracked RPi-update to 4.19.36 and speech returned. I’m still having intermittent problems with Bluetooth, hopefully Lucas can fix this.
Even once Bluetooth is fixed, we will still have the partial speech problem, so updating to Buster and using the RPi 4b for Picochess is currently not advised.
Cheers,
Al.
Pictures attached;
Geekworm chassis, with RPi 4 + 256gb ssd boot
DGT Pi (RPi 3b+) matching Rev2 board
RPi 4 inside small case with fan (£5.99 from Amazon)
Close up of new cheap case fitting under my Rev2
Al.