WLtoys Q242G

More
22 Jan 2016 10:00 #42062 by SeByDocKy
WLtoys Q242G was created by SeByDocKy
Here are some SPI capture of new WLtoys protocol probably using the XN297 (to be cheched)

mon-partage.fr/f/4YGFK2qy/

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 02:19 #42102 by hexfet
Replied by hexfet on topic WLtoys Q242G
Just a few differences from Q282. The combo test build has a new protocol option under cx10 for x242.

It seems to be an nRF chip since there's no special register initialization. But the value written to the rf setup register is not valid for nRF. Can you visually confirm what device is used? It looks like maybe 2Mbps data rate so that's what the test build is set for. But the actual value written in the capture is invalid according to the nRF+ datasheet, so it's a bit confusing.

The rf channels are all just offset by 2 from the Q282. Please try a few different fixed ids, mainly a small one and large one, to see if there's any difference.

The RTH and headless bits are swapped as compared to the Q282. Is it possible those captures got swapped?

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 07:11 - 23 Jan 2016 07:13 #42105 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G

hexfet wrote: Just a few differences from Q282. The combo test build has a new protocol option under cx10 for x242.

It seems to be an nRF chip since there's no special register initialization. But the value written to the rf setup register is not valid for nRF. Can you visually confirm what device is used? It looks like maybe 2Mbps data rate so that's what the test build is set for. But the actual value written in the capture is invalid according to the nRF+ datasheet, so it's a bit confusing.

The rf channels are all just offset by 2 from the Q282. Please try a few different fixed ids, mainly a small one and large one, to see if there's any difference.

The RTH and headless bits are swapped as compared to the Q282. Is it possible those captures got swapped?


Hi HexFet,

Great news... I test it in a couple of minutes.
For the receiver side at least it's a XN297L

File Attachment:


You are probably right for the inversion of the RTH & Headless channels... Since I do not have instruction manual for it... so please swap channel as for the other protocols
Last edit: 23 Jan 2016 07:13 by SeByDocKy.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 07:22 #42106 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G
Well ... unfortunatly it's not binding ....
It's strange you don't recognize the XN297 from a register point of view but this chip is here ...

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 15:37 #42118 by hexfet
Replied by hexfet on topic WLtoys Q242G
I've updated the combo build to use the XN297 emulation with the Q242. Don't know if it will work. I checked that the values written to the three XN297 registers by the Q282 are different than the registers' default values. The registers have something to do with radio calibration and don't know if the default values will be compatible with nRF.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 15:57 - 23 Jan 2016 16:11 #42120 by goebish
Replied by goebish on topic WLtoys Q242G
Oh, a new chip, interesting ...

edit: according to Panchip website, the XN297L is the third generation of their 2.4 G chip, XN297 was the second one.
I wish they wrote a detailed datasheet in English this time, but maybe I'm asking too much :p
Last edit: 23 Jan 2016 16:11 by goebish.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 16:02 - 23 Jan 2016 16:16 #42121 by goebish
Replied by goebish on topic WLtoys Q242G
I just stumbled upon that, sorry, mostly in Chinese, but with some interesting code snippets:
www.stmcu.org/module/forum/forum.php?mod...54&page=1#pid2136446

see
void RF_ENHANCE_MODE_Init(void)
and
void RF_NORMAL_MODE_Init(void)

Those functions are using different sets of values for "debug registers"

edit: sets are only slightly different, and it seems it has something to do with auto-retransmit / ack, so nothing really interesting for us...

3.XN297L has two modes, one is the common type, one is to enhance the line!
Normal: just send the data, regardless of the recipient does not receive data received,
Enhanced: Awaiting answer signal receiving side after sending data, after will not receive automatic retransmission, (if you have not received) the number of words you can not reach from the hair retransmission, if received, to continue to send other data!

(google translate)
Last edit: 23 Jan 2016 16:16 by goebish.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 16:13 #42122 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G

hexfet wrote: I've updated the combo build to use the XN297 emulation with the Q242. Don't know if it will work. I checked that the values written to the three XN297 registers by the Q282 are different than the registers' default values. The registers have something to do with radio calibration and don't know if the default values will be compatible with nRF.



Still not binding :(

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 16:20 - 23 Jan 2016 17:14 #42123 by goebish
Replied by goebish on topic WLtoys Q242G
If nothing works, I'd be glad if someone (Seby ?) could lend me this Q242G+TX so I can try to make the same work than Victzh did for XN297, except I do not have a HackRF or any other advanced tools, so if I've no result with nrf24l01 "semi promiscuity" trick * I'll be stuck (someday I've to build this cheap platform * , that would be enough for my needs) ... But that surprises me that they're not compatible ... or as hexfet said this has something to do with default rf cal registers or this invalid 0x8E config.
According to the XN297 (non "L") datasheet, config register bit 7 (0x80) is DATAOUT_SEL :

Data read select bit
1: making the address 0X09 of bit7: lose 1
Out of Analog_data of bit6: 0
0: makes address 0X09 of bit7: 0. lose
The receiver of the four real-time RSSI given
Receiver synchronization packet data + 4
Bit RSSI data

(google translate)

I think (but I'm not sure) this is to set the resolution of register 0x09 for RSSI/carrier detect, so nothing we really care ...

* those 2 links are gold ;)
Last edit: 23 Jan 2016 17:14 by goebish.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 17:41 #42127 by hexfet
Replied by hexfet on topic WLtoys Q242G
Another strangeness is writing 3f to the rf setup register. Setting bits that should be 0 according to the XN297 datasheet. The code currently sets a 2Mbps data rate based on what a Beken chip will accept, but that may not be correct. Might be worth trying other data rates.

The code is pushed to the new_protocols branch in my repo if anyone would like to double-check.

No luck finding a XN297L datasheet. Nice links, goebish :)

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:24 - 23 Jan 2016 18:30 #42130 by hexfet
Replied by hexfet on topic WLtoys Q242G
Google translate is amazing. I was able to get the registration on the site goebish linked and download the datasheet. Turns out the XN297L rf setup register is not bit-compatible with the nRF. It's actually being set to a 1Mbps data rate. The combo test build is updated.

XN297L datasheet
Last edit: 23 Jan 2016 18:30 by hexfet.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:26 #42131 by goebish
Replied by goebish on topic WLtoys Q242G
Ok, good to know, and thanks for the datasheet :)

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:35 - 23 Jan 2016 18:41 #42134 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G

hexfet wrote: Google translate is amazing. I was able to get the registration on the site goebish linked and download the datasheet. Turns out the XN297L rf setup register is not bit-compatible with the nRF. It's actually being set to a 1Mbps data rate. The combo test build is updated.

XN297L datasheet



Bingo :) it's binding now :) and fly smooth :)

EDIT... I am testing channels now
Last edit: 23 Jan 2016 18:41 by SeByDocKy.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:35 - 23 Jan 2016 18:39 #42136 by goebish
Replied by goebish on topic WLtoys Q242G
Wow, awesome, there's some detailed description of the rf_cal, demod_cal etc... registers in this datasheet :)
Last edit: 23 Jan 2016 18:39 by goebish.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:47 #42138 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G
Lights: Ok
Flips: OK
Photo: Ok
Camera Ok

continuing testing :)

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 18:51 #42139 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G
CH9 is RTH and is working
CH10 is Headless and is working
so just need to inverse CH9 & 10 and voilĂ  :)

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 19:35 #42140 by hexfet
Replied by hexfet on topic WLtoys Q242G
Combo build is updated to swap RTH and headless channels. I also consolidated some code with the q282 variation so hopefully still works. If there are problems I'll revert that change. Thanks for testing!

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 19:48 #42143 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G

hexfet wrote: Combo build is updated to swap RTH and headless channels. I also consolidated some code with the q282 variation so hopefully still works. If there are problems I'll revert that change. Thanks for testing!


Can't see anymore the test build ... normal ?

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 20:18 #42144 by hexfet
Replied by hexfet on topic WLtoys Q242G
oops...didn't notice the upload failed. It's there now.

Please Log in or Create an account to join the conversation.

More
23 Jan 2016 20:27 #42145 by SeByDocKy
Replied by SeByDocKy on topic WLtoys Q242G

hexfet wrote: oops...didn't notice the upload failed. It's there now.



Hummmm ... the channel are well swapped but now the quad is acting a little bit strange ... sometime the throttle is not responding for take off and it's drifting forward a bit (trasmitter calibrated and subrim to 0) something changed ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.075 seconds
Powered by Kunena Forum