- Posts: 1016
WLtoys Q242G
- SeByDocKy
- Topic Author
- Offline
mon-partage.fr/f/4YGFK2qy/
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
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.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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
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
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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.
- hexfet
- Offline
- Posts: 1891
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
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...
(google translate)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!
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
According to the XN297 (non "L") datasheet, config register bit 7 (0x80) is DATAOUT_SEL :
(google translate)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
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
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1891
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.
- hexfet
- Offline
- Posts: 1891
XN297L datasheet
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
Flips: OK
Photo: Ok
Camera Ok
continuing testing
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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.
- hexfet
- Offline
- Posts: 1891
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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.
- hexfet
- Offline
- Posts: 1891
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Topic Author
- Offline
- Posts: 1016
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.
- Home
- Forum
- Development
- Protocol Development
- WLtoys Q242G