- Posts: 3333
Support for walkera telemetry.
- vlad_vy
- Offline
www.deviationtx.com/downloads-new/catego...lad-vy-devo-dsm-test
static u16 devo_telemetry_cb()
{
int delay;
if (txState == 0) {
DEVO_BuildPacket();
CYRF_WriteDataPacket(packet);
txState = 1;
return 900;
}
if (txState == 1) {
int i = 0;
u8 reg;
while (! ((reg = CYRF_ReadRegister(0x04)) & 0x02)) {
if (++i >= NUM_WAIT_LOOPS)
break;
}
if (((reg & 0x22) == 0x20) || (CYRF_ReadRegister(0x02) & 0x80)) {
CYRF_Reset();
cyrf_init();
cyrf_set_bound_sop_code();
CYRF_ConfigRFChannel(*radio_ch_ptr);
//printf("Rst CYRF\n");
delay = 1500;
txState = 3;
} else {
if (state == DEVO_BOUND) {
/* exit binding state */
state = DEVO_BOUND_3;
cyrf_set_bound_sop_code();
}
if(pkt_num == 0 || bind_counter > 0) {
delay = 1500;
txState = 3;
} else {
CYRF_SetTxRxMode(RX_EN); //Receive mode
CYRF_WriteRegister(CYRF_05_RX_CTRL, 0x80); //Prepare to receive (do not enable any IRQ)
txState = 2;
return 1300;
}
}
}
if(txState == 2) { // this won't be true in emulator so we need to simulate it somehow
//Read telemetry if needed
if(CYRF_ReadDataPacketLen(packet) == 16) {
parse_telemetry_packet();
}
CYRF_SetTxRxMode(TX_EN); //Write mode
#ifdef EMULATOR
u8 telem_bit = rand32() % 7; // random number in [0, 7)
packet[0] = TELEMETRY_ENABLE + telem_bit; // allow emulator to simulate telemetry parsing to prevent future bugs in the telemetry monitor
//printf("telem 1st packet: 0x%x\n", packet[0]);
for(int i = 1; i < 13; i++)
packet[i] = rand32() % 256;
parse_telemetry_packet();
for(int i = 0; i < TELEM_UPDATE_SIZE; i++)
Telemetry.updated[i] = 0xff;
#endif
delay = 200;
txState = 3;
}
if(txState == 3) {
if(pkt_num == 0) {
//Keep tx power updated
CYRF_WriteRegister(CYRF_03_TX_CFG, 0x08 | Model.tx_power);
radio_ch_ptr = radio_ch_ptr == &radio_ch[2] ? radio_ch : radio_ch_ptr + 1;
CYRF_ConfigRFChannel(*radio_ch_ptr);
}
txState = 0;
}
return delay;
}
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
-27h runtime; 8x 'Rst CYRF'; no problems so far.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
www.deviationtx.com/downloads-new/catego...lad-vy-devo-dsm-test
Minor change for DEVO protocol, require testing. Minor changes for DSM protocol.
DSMX protocol testing. I had not many time for testing, but for 10 min test:
AR6210+TM1000 (100uW) 18 meters - I havn't any Holds, but many Fades and Losses.
AR6210+TM1000 (300uW) 30 meters - I havn't any Holds, but many Fades and Losses.
I think it is not bad result for town testing with 2 WiFi access points near me, one around 6 meters to RX and other around 8 meters to Tx.
Linux-user, can you test DEVO protocol???
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
www.deviationtx.com/downloads-new/catego...lad-vy-devo-dsm-test
One more DSMX protocol testing, last time I forgot about TM1000 antenna position. I had not many time for testing, but for two 10 min test:
AR6210+TM1000, 100uW, 30 meters - I havn't any Holds, but many Fades and Losses.
AR6210+TM1000, 100uW, 30 meters - I havn't any Holds, but many Fades and Losses.
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
14h no 'Rst CYRF' so far.
IMHO not long enough yet, to make conclusions.
Shall I switch to next version 9244618 now?
Update:
e9e48c0 now running for
45h, 7x 'Rst CYRF' =~ 1Rst / 6h
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.
- linux-user
- Offline
- Posts: 271
48.5h, 8x 'Rst CYRF' =~ 1Rst / 6h
Please Log in or Create an account to join the conversation.
- HaGe
- Offline
- Posts: 11
i follow very interested this topic, because i have the LOC problem too .
I´m using Devo 8s, RX802, WK-CTL01-D Telemetry and the official Deviation 4.0.1 release .
At first thanks to all developers for the great work .
I´m sorry, but now i´m confused because i don´t know wich Test build i have to use to fix the LOC with Telemetry problem .
[PhracturedBlue]DEVO Telemetry LOS fix
[Indigo]Devo/DSMx Telemetry Updates
[PhracturedBlue]Vlad/Indigo fixes for Devo/DSM
[PhracturedBlue]Vlad's Devo/DSM test #31794
Thanks for helping .
TX: Walkera DEVO 8s / RX: Walkera RX802 / Some DSMX
Telemetry: WK-CTL01-D
Models: Walkera SuperCP / T-REX 450 PRO / Blade 130x / FPV RaceCopter ZMR250
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
the test builds are really for testing. You should only use them, if you want to help development and report back if they are working for you.
Sadly the developers often don't describe what we should expect from the test builds, so for "users" like you and me it is sometimes difficult to guess what we should look for.
If your intention is not testing, but flying, then the current nightly would be a better choice.
"Nightly Builds" are generally expected to work, and probably a safer bet than "test builds".
The "Rst CYRF" fix for Devo protocol should have been included some weeks ago.
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
www.deviationtx.com/downloads-new/catego...m-rf-scanner-updates
It's normal recent nightly build with some updates to DEVO and DSM2/X protocols and with enabled new version of RF Scanner. Scanner works with Devo 6, 8 and 12.
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
Edit: does it do anything on Devo10?
Please Log in or Create an account to join the conversation.
- vlad_vy
- Offline
- Posts: 3333
Example scan with two nearby WiFi access points:
Please Log in or Create an account to join the conversation.
- HaGe
- Offline
- Posts: 11
Thanks for your explanations. As soon as possible I will try the build that vlad has posted and i will commit my experience. If possible i will also try a nightly build. I hope my T-Rex survive this tests. Shuld i Backup the model an TX settings bevor Upgrade to an other build? Thanks
TX: Walkera DEVO 8s / RX: Walkera RX802 / Some DSMX
Telemetry: WK-CTL01-D
Models: Walkera SuperCP / T-REX 450 PRO / Blade 130x / FPV RaceCopter ZMR250
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.
- HaGe
- Offline
- Posts: 11
vlad_vy wrote: If you like you can try
www.deviationtx.com/downloads-new/catego...m-rf-scanner-updates
It's normal recent nightly build with some updates to DEVO and DSM2/X protocols and with enabled new version of RF Scanner. Scanner works with Devo 6, 8 and 12.
Hi,
so... after 6 flights i´ve 3 LOC´s . LOC 3 have killed my T-Rex 450 Pro .
i consider - unfortunately - to go back to stock firmware and go again to Deviation as soon as a new sable release is online.
what you think about that? Shuld i try an Nightly Build bevor i go back to stock?
best regards
HaGe
TX: Walkera DEVO 8s / RX: Walkera RX802 / Some DSMX
Telemetry: WK-CTL01-D
Models: Walkera SuperCP / T-REX 450 PRO / Blade 130x / FPV RaceCopter ZMR250
Please Log in or Create an account to join the conversation.
- Thomas.Heiss
- Offline
- Posts: 698
My suggestion:
Don't fly bigger (non-crash proof) helis / planes with test builds with these extensive Walkera / DSMx protocol changes.
These still need IMHO to be tested on a long run and original (expensive) 6-8CH++ receiver / telemetry equipment.
Unfortunately I can not tell you if your LOC problem does exist for V4.0.1 code or those two nightly-builds (fcd0669, 92e1705) I mentioned in the linked thread above.
Somehow I am confused about those existing 4-5++ threads on LemonRX, OrangeRX, DSMx range and telemetry topics with different testing results from different people myself.
Sometimes it is hard to keep track on code updates, thread posts on all multiple threads - at least for me to get the full picture
Thomas
Please Log in or Create an account to join the conversation.
- HaGe
- Offline
- Posts: 11
thanks for your answer. You are right... Its very difficult.
Yesterday i returned to the stock firmware. If the setup is finished and i will have no LOCs on test flights, i am sure deviation makes the problem. In the other hand i have a problem somewhere in my heli.
I will report my results...
Best regards hage
TX: Walkera DEVO 8s / RX: Walkera RX802 / Some DSMX
Telemetry: WK-CTL01-D
Models: Walkera SuperCP / T-REX 450 PRO / Blade 130x / FPV RaceCopter ZMR250
Please Log in or Create an account to join the conversation.
- linux-user
- Offline
- Posts: 271
I doubt, this is a deviation problem - 3 LOC in 6 flights ?!HaGe wrote: so... after 6 flights i´ve 3 LOC´s . LOC 3 have killed my T-Rex 450 Pro .
i consider - unfortunately - to go back to stock firmware and go again to Deviation as soon as a new sable release is online.
@HaGe
What do you need to do to recover from the LOC?
- reset RX?
- reset TX?
- what is the light on the RX doing
The LOC issues with release 4.01 and telemetry are very rare. One LOC in ~3-5h flight time.
I have (bench) tested this over 100h.
I have never heard of a LOC problem with telemetry switched off.
Please Log in or Create an account to join the conversation.
- Thomas.Heiss
- Offline
- Posts: 698
PhracturedBlue introduced two test versions (CYRF reset, LOS telemetry fix) some pages before: www.deviationtx.com/forum/protocol-devel...etry?start=280#31325
Those test build versions of 16 and 19 of April 2015 linked above (question from Hage) are now out-dated and replaced by latest Indigos telemetry test build version of 10 May and vlad's test build version of RF_scanner of 25 May as of today.
Please Log in or Create an account to join the conversation.
- HaGe
- Offline
- Posts: 11
I hope so too . Deviation is a extremly nice project and i will actually use it . I will test my setup with the stock firmware and announces my experience immediately .linux-user wrote: I doubt, this is a deviation problem - 3 LOC in 6 flights ?!
i´ve nothing to do . The Heli goes in FailSafe mode and goes down. Then i switch the throttle hold on and go to the "ground zero" (~50 meters).linux-user wrote: What do you need to do to recover from the LOC?
- reset RX?
- reset TX?
- what is the light on the RX doing
The lights on RX (GREEN) and Telemetry (RED) are stabel (no flashing) and the connection is already built up.
if the crash was mild, i can immediately fly again .
TX: Walkera DEVO 8s / RX: Walkera RX802 / Some DSMX
Telemetry: WK-CTL01-D
Models: Walkera SuperCP / T-REX 450 PRO / Blade 130x / FPV RaceCopter ZMR250
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- Support for walkera telemetry.