Forum
Browser interface to TouchDRO board - Printable Version

+- Forum (https://forum.yuriystoys.com)
+-- Forum: General Discussion (https://forum.yuriystoys.com/forumdisplay.php?fid=5)
+--- Forum: Project Gallery (https://forum.yuriystoys.com/forumdisplay.php?fid=6)
+--- Thread: Browser interface to TouchDRO board (/showthread.php?tid=1027)



Browser interface to TouchDRO board - llamatrails - 05-12-2022

I have put together a browser interface to the TouchDRO board at https://llamatrails.com/touchdro-term .

Why, you may ask? Well, because ... Smile

It is a work in progress at this time, I don't know where I'm going with it yet.

I have tested it on Windows using Chrome and Microsoft Edge, and on a Raspberry Pi using Chromium. It uses the WebSerial API, so please update your browser if it doesn't work.  AFAIK, at this time, Brave has not yet enabled the WebSerial API.

The board will need to be configured and paired first. On Windows, Add a Bluetooth Device. On Linux, I used bluetooth-agent and hcitool and rfcomm, it will depend on your flavor of Linux.

The default baud of 115200 is set, you will have to input your CPI and PPR. They will be saved for the next time.

Feedback is welcome, I'd like to know if it will be useful to others.

Scroll down for screen shots.  More features to come as I plod along ...

Rick


How to enable a bluetooth device on a Raspberry Pi:

Code:
    *****  follow below steps  *****
$ bluetoothctl
Agent registered
[bluetooth]# devices
[bluetooth]# scan on
Discovery started
[CHG] Controller AA:AA:AA:AA:AA:AA Discovering: yes
[NEW] Device xx:xx:xx:xx:xx:xx HC-05
[bluetooth]# agent on
Agent is already registered
[bluetooth]# pair xx:xx:xx:xx:xx:xx
Attempting to pair with xx:xx:xx:xx:xx:xx
[CHG] Device xx:xx:xx:xx:xx:xx Connected: yes
Request PIN code
[agent] Enter PIN code: 1234
[CHG] Device xx:xx:xx:xx:xx:xx UUIDs: 00001101-0000-1000-8000-00805f9b34fb
[CHG] Device xx:xx:xx:xx:xx:xx ServicesResolved: yes
[CHG] Device xx:xx:xx:xx:xx:xx Paired: yes
Pairing successful
[CHG] Device xx:xx:xx:xx:xx:xx ServicesResolved: no
[CHG] Device xx:xx:xx:xx:xx:xx Connected: no
[bluetooth]# trust xx:xx:xx:xx:xx:xx
[CHG] Device xx:xx:xx:xx:xx:xx Trusted: yes
Changing xx:xx:xx:xx:xx:xx trust succeeded
[bluetooth]# quit

$ sudo rfcomm bind 0 xx:xx:xx:xx:xx:xx 1    : bind to device
$ sudo rfcomm release 0                        : if needed, then try bind again
$ rfcomm
  rfcomm0: xx:xx:xx:xx:xx:xx channel 1 clean
$

    *****  how to use minicom to see data from the TouchDRO board  *****
$ sudo minicom -s -c on
change port serial port to /dev/rfcomm0
change screen/display to line wrap (R)
save as: rfcomm0    saved in /etc/minicom
exit
$
$ minicom rfcomm0


[Image: edge-screen-05-05.png]

[Image: edge-screen-05-05-mm.png]

[Image: chrome-connect.png]

[Image: chrome-screen-04-15-tailstock.png]