- Posts: 1868
New FrSkyX protocol
- hexfet
- Offline
Alex, looks like failsafe is behaving as expected. I'll try not to break it in the future You mentioned you have the old vario sensor (that works with D8 hub). Does it plug directly into the X8R sport or is there some adapter?
I'll spend some time now going through the telemetry display. I think more than one telemetry field might be going to volt2. There's also some uncertainty about when to update telemetry fields that are received as multiple values (e.g. latitude is three values: before decimal point, after decimal point, and direction). I tried to duplicate the order that opentx uses but not sure it's working that way.
Please Log in or Create an account to join the conversation.
- Alexandro
- Offline
- Posts: 204
the Vario Sensor is the Altitude High Precision Sensor from Frsky -> www.frsky-rc.com/product/pro.php?pro_id=111
It has the Direct Output for SPORT and it is a HUB for old non SPORT Sensors. I can use it with my FAS-40 and FAS-100 Amp. Sensor ( they connect via Serial to the Vario Sensor).
With this Way i do not need the Big HUB from Frsky (wich i have to )
greetings Alex
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
I have a feeling that we should introduce one more check regarding telemetry.
The SPORT full telemetry frame is split in 2 frskyX telemetry frames and 2 complete SPORT frames fill up 3 valid full frskyXframes .... If is missing the consecutive one or more we end up processing a frame with wrong data.
I think we can use to prevent that ,...packet[5],.We store packet [5 ] from a telemetry frame and compare with the the subsequent one(doing the calculation) and if ok we process the frame as valid if not toss it.
0x06 0x06 0x06 0x06 0x06
0x7E 0x00 0x03 0x7E 0x00
0x1A 0x00 0xF1 0x1A 0x00
0x10 0x00 0xD7 0x10 0x00
0x03 0x7E 0x00 0x03 0x7E
0xF1 0x1A 0x00 0xF1 0x1A
0xD7 0x10 0x00 0xD7 0x10
0xE1 0x1C 0xD0 0xEE 0x33
0x34 0x0A 0xC3 0x56 0xF3
let me know what you think about it.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
The next test build I'll add the code to reset the sport state machine on sequence errors and we can see how that goes.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
It would catch the case if columns 2 and 3 of your example data were missed, but not if only column 2 was dropped.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Indigo1 ran into this with the DSM telemetry. The fix there was the idea of "extended" telemetry: features that were less likely to be used. Those are disabled in the 7E. You ignore those values in the protocol file, which saves your ram space. You can also remove them from the display, so they save space in ROM.
This is confused by that busted merge of the FrSky telemetry I did. The DSM version used HAS_DSM_EXTENDED_TELEMETRY. I changed that to just HAS_EXTENDED_TELEMETRY, using that to disable it in both protocols. As we discussed earlier, those got into the nightly via a bad merge. I just backed that out.
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Would it be better for me to start with those changes applied or reverted? If the code you added to handle values and display is correct that would be a head start, even if the protocol stuff is removed.mwm wrote: This is confused by that busted merge of the FrSky telemetry I did. The DSM version used HAS_DSM_EXTENDED_TELEMETRY. I changed that to just HAS_EXTENDED_TELEMETRY, using that to disable it in both protocols. As we discussed earlier, those got into the nightly via a bad merge. I just backed that out.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
I'll forge ahead with your changes since they're in the protocol_frskyx branch already.
Please Log in or Create an account to join the conversation.
- mwm
- Offline
BTW, I've just gotten a comment about backing things out - Gyrfalcon is working on the Devo telemetry, and wanted to use the now-missing HAS_EXTENDED_TELEMETRY option to disable things to avoid breaking the F7 & 7e. I pointed him to you and this thread to coordinate things.
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Actually I thnk there is a problem taking open tx code unmodified.
Taranis XJT module is doing some processing of telemetry frame before sending serially to open tx.
For example :
You may find one or more 0x7E bytes inside the telemetry frame as valid bytes,The byte is stuffed byte is split in 2bytes one 0x7D and second XOR-ed with 0x20. ......and after send serially to OpenTX where is processed.
if ((p == 0x7e) || (p == 0x7d))
{
Serial_write(0x7d);
Serial_write(0x20 ^ p);
}
so 0x7E byte inside the SPORT frame that coming from RX may be valid.
edit:
I see the code that openx sensor...sends to RX bytes already stuffed...0x7E already split on 0x7D and byte^0x20.
Maybe the RX is converting to serial SPORT but I maybe wrong about that.I did not see telemetry frames with 0x7E or 0x7D.
I have to do some more research.
hexfet wrote: Looking at the state machine in frsky_parse_sport_stream() (pretty much straight from opentx) there is already some protection against missed/duped packets. If the start flag (0x7e) is encountered when it shouldn't be - as a byte in an sport frame - then it's treated as the start of a new frame. Any data collected in the sport frame buffer is discarded.
It would catch the case if columns 2 and 3 of your example data were missed, but not if only column 2 was dropped.
Please Log in or Create an account to join the conversation.
- djdazzy
- Offline
- Posts: 54
Have you got the latest 7e build please? Was it the telemetry hub code that wouldn't fit?
Thanks
Please Log in or Create an account to join the conversation.
- mwm
- Offline
Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.
My remotely piloted vehicle ("drone") is a yacht.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Haven't heard from Gyrfalcon but I used HAS_EXTENDED_TELEMETRY to remove the sport code for the 7e. I intend to just build on what you had started. To handle the sensor possibilities I plan to collapse multiples of the same type to one value. You could have one sensor of each type but any id you give it will work.
Please Log in or Create an account to join the conversation.
- Alexandro
- Offline
- Posts: 204
Test Ver. c65
i testet the Telemetry (Vario Altimeter, FAS-100)
The Curr. from FAS-100 works and show the same with Taranis. Good Work !
The Alt does not work, it shows always 0
The Volt2 is jumping the same way.
The TeleVAmp shows 3.00 V . TeleVAmp ?
Any other things to test ?
greetings Alex
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Everything but the telemetry seems pretty solid. No changes were made to midelic's and Pascal's implementation other than what was required to run on Deviation. I'd say it's ready for range testing. If that looks good fly it on something inexpensive
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
What box on the telemetry monitor screen is TeleVAmp?
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New FrSkyX protocol