cvetaevvitaliy / Radiomaster_TX16S

Enable in Radiomaster TX16S and Jumper T16 - R9M ACCESS protocol
29 stars 5 forks source link

Firmware with Bluetooth please #4

Open TedAus opened 4 years ago

TedAus commented 4 years ago

Hi

Thanks for your work on this. I'm really grateful I can now use ACCESS and OTA on my Jumper T16 Pro!

However, I would also like to use the (Horus) Bluetooth module I got for my Jumper T16 Pro. Would you be kind enough to please compile a version of the firmware with Bluetooth and ACCESS (+ Lua) please? I'm happy to make a contribution for your efforts.

Many thanks.

cvetaevvitaliy commented 4 years ago

Hello! Thank you for your interest! Well, I will build FW soon.

TedAus commented 4 years ago

Thanks cvetaevvitaliy! Very much appreciated.

cvetaevvitaliy commented 4 years ago

Please test this firmware, I do not have T16 and BT module, if BT module is good work I will download it for everyone

firmware_t16_bt.zip

TedAus commented 4 years ago

Sorry, that did not work because I have a T16 Pro but the firmware is for the non-Pro version.

Thanks.

cvetaevvitaliy commented 4 years ago

Do you have such an item on the menu?

image

TedAus commented 4 years ago

Sorry, I haven't been able to test the Bluetooth yet as I haven't had a chance to solder the module.

cvetaevvitaliy commented 4 years ago

And after the firmware did this item appear in the menu?

the one that I threw off above, it is for both Pro and not Pro versions

TedAus commented 4 years ago

I do get the Bluetooth line, but don't see the options you have. Probably because the module has not been installed yet.

PXL_20200926_094728954 MP

If you look at the screenshot below, Receiver 2 appears three times, instead of Receiver 1, Receiver 2 and Receiver 3. I had this problem previously when I used the non-Pro version.

PXL_20200926_094745560 MP_2

cvetaevvitaliy commented 4 years ago

no, you need to select Bluetooth and turn the encoder, but about the problem above, try to register and bind the receiver

cvetaevvitaliy commented 4 years ago

I don't have a Jumper T16 Pro to check it, only Radiomaster TX16S

try to reset the receivers, I see there are 8 Clear receivers to 0

image

cvetaevvitaliy commented 4 years ago

added lua support

firmware.zip

TedAus commented 4 years ago

Ah, yes I now get the Bluetooth options.

PXL_20200926_103339642 MP

I've changed receiver number to 00 but still the same. Receiver 2 appears on all three lines and I can't perform the bind. HOWEVER, it is interesting that my previously bound receiver was still communicating with the transmitter even though the screen shows no receivers bound!

I had the "Receiver 2, Receiver 2, Receiver 2" problem with this firmware. But, this Pro firmware fixed it. Does that help you work out what's wrong?

cvetaevvitaliy commented 4 years ago

There are no changes in this menu T16, T16Pro, Radiomaster TX16S I cleaned the project and rebuilt everything - try it I also checked it in the simulator, I don't see such a problem, try resetting the settings, the EEPROM may be damaged

Screenshot from 2020-09-26 14-16-33

firmware.zip

TedAus commented 4 years ago

Success! I flashed the latest version you provided above and the receiver that I had previously bound with reappeared! And the bluetooth options remain intact. I also tested LUA and for some reason, it seems MUCH faster. In fact, it's almost instant compared to how long it previously took to load each page. Have you optimised the LUA script somehow?

Thanks so much for your help! This is awesome! Look forward to having this integrated into the main stable release.

PXL_20200926_123627641 MP PXL_20200926_123601462 MP

TedAus commented 4 years ago

I forgot to ask - when power is set to 1W, is that the same as Flex 1W which automatically increases power when signal strength drops? Or does your firmware locks the power at 1W?

It would be good if you could make the power switch automatically like it does on the Flex firmware.

Thanks again.

cvetaevvitaliy commented 4 years ago

it does not block anything, I did not change the OpenTX (this original firmware) code which is responsible for ACCEESS

TedAus commented 4 years ago

Ok, thanks! So even though the display doesn't say "Auto", I can assume it actually changes the power output based in signal strength?

TedAus commented 4 years ago

Quick update. I've installed the Horus Bluetooth module on my Jumper T16 Pro and managed to get telemetry data using the Telemetry Viewer app. However, it keeps disconnecting after about 10 seconds. Any idea why? My phone also won't pair with it using the 000000 PIN (but can still get the data, albeit only briefly before it disconnects).

cvetaevvitaliy commented 4 years ago

I ordered myself a Bluetooth module from AliExpress, I will check and work with it

TedAus commented 4 years ago

Nice! Did you get an internal or external model?

cvetaevvitaliy commented 4 years ago

https://aliexpress.ru/item/1005001429040420.html?spm=a2g0s.9042311.0.0.2a9433edWaMYx5

TedAus commented 4 years ago

Looks the same as what I got. Have to say that it was very easy to solder!

Note that the module doesn't come with an antenna, so you might have to order it separately.

TedAus commented 4 years ago

Hi

I see that 2.3.10 is out but I don't believe ACCESS has been included yet. Could you please make one based on 2.3.10 and include Bluetooth, Lua and ACCESS?

Many thanks.

cvetaevvitaliy commented 4 years ago

Hi!

I received my BT module today, solder it in the radio, turned it on and everything works. I can see it on the network, see the BT MAC address and see the dust MAC address when I connect to it with my laptop

image

cvetaevvitaliy commented 4 years ago

image

TedAus commented 4 years ago

Nice! Do you find the signal strength to be weak and tends to disconnect after a few minutes?

cvetaevvitaliy commented 3 years ago

No, all works good, I don’t have BLE disconnected event

jejakmedia commented 3 years ago

added lua support

firmware.zip

I don't want to change acces on tx16s, is there any firmware to activate bluetooth only?