- Posts: 1868
PXX protocol
- hexfet
- Topic Author
- Offline
Mainly motivated by the Frsky R9M which only supports PPM and PXX.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
To be sure how to connect it?
Vin & Gnd but then serial PXX, is it via Smart Port or PPM pin ? If smartport, to devo do we need bidirectional invertor? And what about the hartbeat ?
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
The Jumper and Devo transmitters don't have an input for heartbeat. Deviation will just send unsynchronized with the tx module.
Test build is updated (057b920). This version has at least a 50% chance of working Still no telemetry.
For testing I made a PXX analyzer plugin for Salae Logic.
Please Log in or Create an account to join the conversation.
- pashteton
- Offline
- Posts: 3
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
If you were running a 5.0 build the filesystem also needs to be copied when moving to a test build which is based on the nightly builds. Backup/restore models, and tx.ini and hardware.ini if you've changed them.
Please Log in or Create an account to join the conversation.
- pashteton
- Offline
- Posts: 3
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
What radio module and receiver are you using? Do they have any status lights that might indicate what is happening? Sometimes a video of the behavior while turning the tx on and off is an easy way to communicate what's happening.
Please Log in or Create an account to join the conversation.
- pashteton
- Offline
- Posts: 3
After switching on, the first channel = 1500. The remaining channels (2-14) accept the values 880.
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
Test build is updated (66fc9c6). Added a protocol option to set country code and added support for binding.
Please test this build, first setting the country code then going through the bind procedure. The country code must match the firmware on the R9MM. Click on the protocol name to access the protocol options. Also set the Fail-Safe protocol option to RX for testing.
For binding, after pressing Bind on the t8sg you have 5 seconds to power up the receiver in bind mode. No need to press bind button on the R9M. The LEDs should indicate a successful bind. Please record what the LEDs do during this procedure.
Previously I thought the bind wasn't critical because the tx and rx could be bound as with PPM. But with PXX one of the PXX data bytes is used as a tx id for model match. So when using PXX the bind must be done through through the Deviation bind option.
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
The PXX rx number is now taken directly from the model fixed id. This makes moving an R9M module from other transmitters easier. Set the fixed id the same as the receiver number in the other transmitter and then it will not be necessary to re-bind when moving the R9M between transmitters.
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
U7E(256), flashed with pxxtestbuild, connected R9M module, R9 gnd to the 3.5mm connector plug gnd , ppm pin to the 3.5mm plug top of the pin.
The R9M I power from a 2s battery, the firmware is the so called "Flex firmware", FW-Ranger9-FCCBeta-181116
Ok when in Deviation, I go to PXX press bind, nothing happens to the LED at R9M it stays red.
any advise?
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
Does everything work correctly when you use PPM instead of PXX?
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
yes R9M using CPPM works fine.
Channels 8
CPPM settings: center1100,deltapw 500, notch 400, framesize22500
To bind: push rx button power on, then push r9m button and poweron.
R9M dip switches I have them both on /up, according manual no telemetry 200mw.
Now when R9M / R9 binded it keeps bind even when devos switched off and ppm stream stops.
So now tried a PXX stream 8 channel and also 16 channel it should auto detect, R9m still bind but no movements of channels , tried restart etc no luck,
no movements.
Then tried bind R9M via deviation and in FCC mode and once out of 15 times or so the leds R9M start to flash/alternate and I loose the bind with the Rx, but no controls.
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
The hardware connection is good since PPM works.
The R9M manual says during bind the LEDs should be green on and red flashing. Is that what you see only sometimes when trying to bind PXX? What do the LEDs (both green and red) on the receiver look like when that happens?
The manual says the normal state is green flashing and red on. Do you ever see that state on the module?
Please set Fixed ID to 0 in PXX model and try binding again. What happens with LEDs on both R9M and receiver?
Also try the range check on the transmitter menu. According to the manual with range check activated the R9M LEDs should display green flashing and red off. Please check what the LEDs display.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
When bind in ppm mode I see channels move, led rx green flickering.
Led R9M solid red led on and green led flickering.
When switch to PXX and repower (8 and tested 16ch) the leds stay same, however no channels data received. (so all is still bind and connected,but nostreamchannels from pxx read.)
But something strange when not touching sticks allstay bind, but when moving stick to full deflection randomly, the R9M led go to red and all unbind. I can't saywhat is causing sometimes it happen fullroll ,but then next time happen fullrudder.
I need repower R9M txmodule to get link back inlock.
Binding I tried 000000 or 222222, both case it does not work not in FCC or EU also the led stay redon R9M, no change.
hope it helps let me know if more tests ideas.
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
Test build is updated (c02d22a). I found some indications that the order of the CRC bytes was backwards. This version swaps them to the order in the more recent docs.
No need to test with PPM anymore. Check if PXX bind works with this version. Also please try the range check just to see if the R9M LEDs change.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
And still no pxx channels encoded, no reaction to bind command,selecting range check in transmitter menu no difference in R9M led
Please Log in or Create an account to join the conversation.
- hexfet
- Topic Author
- Offline
- Posts: 1868
Thanks!
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
BTW I am on test builds anyway, could you merge at some point the other test builds, PXX- latency - timing all into one big test build?
So can fly test that all at once?
Aaaghhh I accidentally deleted my long test results post.…...
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- PXX protocol