THREE WORKING SOLUTIONS for standalone control of Dual Turntable

[GATT CTRLL]
+CR,STOP;              2B 43 52 2C 53 54 4F 50 3B 
+CR,TILTSPEED=10.000   2B 43 52 2C 54 49 4C 54 53 50 45 45 44 3D 31 30 2E 30 30 30 
+CR,TILTVALUE=-20.00   2B 43 52 2C 54 49 4C 54 56 41 4C 55 45 3D 2D 32 30 2E 30 30 
+CR,TILTVALUE=0.0000   2B 43 52 2C 54 49 4C 54 56 41 4C 55 45 3D 30 2E 30 30 30 30 
+CR,TILTVALUE=20.000   2B 43 52 2C 54 49 4C 54 56 41 4C 55 45 3D 32 30 2E 30 30 30 
+CR,TOZERO;            2B 43 52 2C 54 4F 5A 45 52 4F 3B 
+CT,STOP;              2B 43 54 2C 53 54 4F 50 3B 
+CT,TOZERO;            2B 43 54 2C 54 4F 5A 45 52 4F 3B 
+CT,TURNANGLE=-360.0   2B 43 54 2C 54 55 52 4E 41 4E 47 4C 45 3D 2D 33 36 30 2E 30 
+CT,TURNSPEED=36.000   2B 43 54 2C 54 55 52 4E 53 50 45 45 44 3D 33 36 2E 30 30 30 
+QR,TILTSPEED;         2B 51 52 2C 54 49 4C 54 53 50 45 45 44 3B 
+QR,TILTVALUE;         2B 51 52 2C 54 49 4C 54 56 41 4C 55 45 3B 
+QT,CHANGEANGLE;       2B 51 54 2C 43 48 41 4E 47 45 41 4E 47 4C 45 3B 
+QT,TURNSPEED;         2B 51 54 2C 54 55 52 4E 53 50 45 45 44 3B 
00000;                 30 30 30 30 30 3B 
0000;                  30 30 30 30 3B 
000;                   30 30 30 3B 

(Revopoint-Dual-Turntable/README.md at main · opensourcemanufacturing/Revopoint-Dual-Turntable · GitHub)

1 Like

Am I correct that the above "gatt ctrll’ list, is a list of bluetooth commands?

Does look like it, it is what is captured from a 360 0/20/-20 scan, the file i uploaded to github, and that i “translated” to ascii with the HEX2ASCII online tool

But besides the +QT comands that basically Query and return the current value of the attribute, the rest
does not seem to do anything at least when i send them via termite serial.
Most likely if one can fnd out a way to communicate with the turntable via the bluetooth connection sending those commands might probably work

I presume that:

  • Q is Query,
  • C is controll or something,
  • R rotation,
  • T tilt

And that GATT refers to the BLE protocol like in this link

Here is an article explaining how to set up a “Standard serial over bluetooth link” on a windows 10 computer. This gives you a com port for your bluetooth device, to use with any windows serial terminal.

Using Serial Bluetooth terminal APP for android i have managed to connect to the table send the commands and verify that it is being recieved on the serial port on termite. But nothing else happens on those listed commands… something is missing

image

I have tried that method but it does not show the dual axis table be it paired or not, at least on my win10.

[CONFIRMED WORKING COMMANDS]

--------------------------------
The control template goes as follow:    +"command","action"="value";

It is important that the command;
- is written in all caps
- has no spaces
- starts with + and is terminated with ;

------------- TILT -------------
+CR,TILTVALUE=10;     (degrees - min -30 max 30)
+CR,TILTSPEED=10;     (max speed 36)
+CR,TOZERO;           (tilts back to boot time zero)
+CR,STOP;             (stop any ongoing rotation operation)

+QR,TILTSPEED;        (query current tracked rotation value)      
+QT,TURNSPEED;        (query current set speed value)

------------ ROTATE -------------
+CT,TURNANGLE=360;    (degrees - incremental comand, accepts positive or negative values, total rotation angle is tracked)
+CT,TURNSPEED=36;     (max speed 36)
+CT,TOZERO;           (rotates back to boot time zero)
+CT,STOP;             (stop any ongoing rotation operation)

+QT,CHANGEANGLE;      (query current tracked rotation value)
+QT,TURNSPEED;        (query current set speed value)

----------------------------------
3 Likes

@X3msnake

You are so fantastic, thank you so much.

So who can write us a app for control?

1 Like

For now you can start using it with the Android APP by Kai Morich, it is free to download and use, with no ads, and one can donate to the authoer trough the app.

He also has a simpler opersource version of his terminal that someone with knowlage in Androi APPs can use to hit the ground running on building the app :slight_smile:

You can download my preset macro config buttons as seen on the screenshot from the github here:

8 Likes

Thanks for this I have it working with android app by Kai Morich :sunglasses:

1 Like

@X3msnake & @Johnathan I installed the app from Kai and imported your configuration but if I try to connect to the turntable I get a “Connection failed gatt status 257”. What do I wrong? If I go to “Devices” I find the DAT under Bluetooth LE (Android Smartphone Huawei P30Pro). I tried to connect via the app and via Bluetooth settings on my Phone. Phone is able to connect to DAT but both ways didn’t work with the app. Any advice? Thanks in advance.

I paired to the phone then go to devices

Then select the turntable

Then click on the content logo

1 Like

The turntable should have an ID of REVO_DUAL_AXIS_TABLE if it doesn’t maybe it is connected to the scanner already? I don’t have it with me now to test that

I tried the same way but unfortunately without success. Paired first with the phone and then choosen the device from the list. Got always the 257 error. :frowning:

And the turntable isn’t connected to the Revopoint software ? Try contacting the turntable without the scanner on first, i had nothing else on at the time I tested

Reboot of my phone solved the issue … now I am able to connect. Thank you for your help @Johnathan

1 Like

Excellent glad you got it working :+1:
I’m going to try and do an app for it but I’m sure someone else will beat me to it :joy:

2 Likes

It does work! Thank for the effort @X3msnake

I tried to adjust the turn speed but it does not seem to rotate faster.
What is the proper way of increasing the speed ?

1 Like

To change the speed you have to use:
+CT,TURNSPEED=value;

The values is from 36 to (dunno, the max i tried was 500) and it specify how many seconds are needed for a 360° revolution.
Then you just can set the turnangle with:
+CT,TURNANGLE=value;

You can send the commands together too.
For example if you want to have a full revolution in 5mins you’ll write:
" +CT,TURNSPEED=500;+CT,TURNANGLE=360; " all in one line. No spaces.

6 Likes

Good sleuthing, @X3msnake ! I never expected the turntable to use such a general (and Open) protocol!
Was it your recognition of the processor chip that lead to your conclusion? Perhaps that processor only supports the serial port protocol?

1 Like