- Posts: 63
New FrSkyX protocol
- petsmith
- Offline
Cereal_Killer wrote: Where can I get the newest? I had just downloaded and flashed the one I did (572bda9) two nights ago.
It's the same place that you had downloaded. It's just been updated yesterday. That's why yours is 1 version behind.
www.deviationtx.com/downloads-new/catego...7-hexfet-frskyx-drop
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Ok so not complaining here but is there any place (other than reading code) to find the changes from one build to the next? "Build release notes" of the like...
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- petsmith
- Offline
- Posts: 63
Cereal_Killer wrote: Ah cool, thanks!
Ok so not complaining here but is there any place (other than reading code) to find the changes from one build to the next? "Build release notes" of the like...
You can goto github and check the commit log. Here is the one for frskyx_drop from Hexfet. It lists the specific changes associated with that particular version. Hope this help.
github.com/hexfet/deviation/commits/frskyx_drop
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Any way to get raw S.Port data out the back of the tx (maybe via the unused serial port that is the trainer port) like you can from the s.port mirror pin on taranis?
edited to add:
Absolutely any pin would be great, I figured that serial port would be convenient but literally any pin would be great, even if I need solder to a MCU leg directly!
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- zipray
- Offline
- Posts: 4
or via miniusb port
Please Log in or Create an account to join the conversation.
- lamnesique
- Offline
- Posts: 10
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
S.port data out would be a nice addition - I'll take a look. Waiting till I have equipment before more changes (4n1 board just made it in-country).
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
- Fix GPS scaling for altitude and speed values. Fix GPS time display where hours and minute values were swapped.
- Remove multiplier for fuel telemetry value. Documentation says should be percentage number 0-100.
- Remove scale multiplier for RPM and report raw value. Need to add ability for multiplier for displayed value
- Fix minimum cell value calculation
Based on testing with XSR receiver and this most excellent S.port Telemetry emulator running on a Pro Mini.
All the other telemetry values matched what the emulator is sending. Would like some real world verification, especially for the GPS data.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Please Log in or Create an account to join the conversation.
- Alexandro
- Offline
- Posts: 204
same Reboot on 7E with FrskyX and Bind
Greetings Alex
EDIT:
On my 8s with Bild 5.0.0 from vlad_vy 10.10.2016 the Bind and RX is working ( no 4in1 )
On the 7E with Build 5.0.0 from vlad_vy 05.10.2016 it does Reboot to (no 4in1 )
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
static void initialize(int bind)
{
CLOCK_StopTimer();
// initialize statics since 7e modules don't initialize
fine = Model.proto_opts[PROTO_OPTS_FREQFINE];
fixed_id = (u16) get_tx_id();
failsafe_count = 0;
chan_offset = 0;
FS_flag = 0;
channr = 0;
chanskip = 0;
ctr = 0;
seq_last_sent = 0;
seq_last_rcvd = 8;
while (!chanskip)
chanskip = (get_tx_id() & 0xfefefefe) % 47;
while((chanskip - ctr) % 4)
ctr = (ctr + 1) % 4;
counter_rst = (chanskip - ctr) >> 2;
...
If I comment out both "while" transmitter boot normally.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
get_tx_id always returns the same value for a given transmitter and fixed ID. I've pushed the fix below. This guarantees the loop will exit. The set of frequencies used will still be determined by the tx id.
u32 seed = get_tx_id();
while (!chanskip)
chanskip = (rand32_r(&seed, 0) & 0xfefefefe) % 47;
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
- Improve minimum cell algorithm for hub telemetry
- Fix interpretation of telemetry value for CELL voltages
- Remove scaling from RPM and report raw sensor value
Tested with D4RII with Frsky and code from this library . All the other hub telemetry sensors were fine.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
- S.Port telemetry packets output on trainer port for FrskyX (serial 115200 bps, 8, n, 1)
No protection against conflict with PPM In, so don't do that.
This change is not included in the pending pull request as they really aren't related.
Interesting that the over-the-air protocol does not include the CRC of the S.Port packets. Have to calculate it and add to conform to the s.port protocol.
edit: had to disable extended telemetry for the f7 build. Exceeded memory by 4 bytes.
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Would it be better to output it at the same baud as s.port is IRL?
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Changing to 57600 would probably be best if it increases compatibility with existing decoder devices.
Need ideas on how to handle conflict with PPM In. And I'd like to get info on the Frsky UART telemetry devices so we could do a full-duplex serial link.
Also looked at using FREQEST to adjust the FINE freq setting. I'm planning to add FREQEST and received RSSI as telemetry items. You can manually adjust your FINE setting base on the FREQEST value. The FREQEST value is pretty noisy so don't want to attempt an automatic adjustment. It does work - my tx showed FREQEST of -15 when FINE was set to 0. Changing FINE to -15 resulted in a FREQEST value around 0. But in my limited indoor testing it didn't make a difference in RSSI when wandering around the house.
Branch with s.port out the trainer port is here .
Please Log in or Create an account to join the conversation.
- petsmith
- Offline
- Posts: 63
Please Log in or Create an account to join the conversation.
- midelic
- Offline
- Posts: 174
FRQEST was tried before(years back) to be used,But is useless.
If you want to use some more reliable indicator to adjust fine variable the best is LQI.
I will introduce it in multi in the future to be displayed on 9X/9XR or Taranis,
Any telemetry frame had LQI bytes at the end the calculation is.
Lqi=packet[Len-1]& 0x7F;
Lqi<50 good (middle of channel bandwidth)The maximum energy received /transmitted is on the middle
LQi>100 not good.,channel hit at the end of bandwidth
The idea is of the best transmission to be sure the channels is hit at the peak or closer.
If you want to have some idea how it looks like LQI with channel frequency .
Offset is the fine variable(translated in frequency hertz)in our case.
see below
Please Log in or Create an account to join the conversation.
- Cereal_Killer
- Offline
Are you in the US? I have a frsky s.port to UART adapter (think it's called a
m.banggood.com/FrSky-Smart-Port-Converte...le-SPC-p-929073.html
Edit: this is what I have, for $3 i''ll just buy you one from China anyway (hell I've got that many points it'll only cost me a few cents cash). PM me your address, I'll order it this weekend
Taranis X9E | DEVO 10 | Devo U7E | Taranis Q7
What I do in real life: rivergoequestrian.com/
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Thanks for the heads up midelic. I'll add LQI to the telemetry test page as well. When LQI is high, does FRQEST reliably indicate the direction to adjust the frequency to improve LQI?
petsmith, I'm leaning towards checking if ppm in is active and disabling the serial out if so. If that turns out to be hard I'll make a protocol option.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New FrSkyX protocol