Support for walkera telemetry.

More
09 May 2015 07:10 - 09 May 2015 07:16 #32286 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
New test version with "Rst CYRF" enabled. Changed timing of DEVO protocol to 900+1300+200. CYRF_SetTxRxMode(TX_EN) moved where it has to be.

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;
}
Last edit: 09 May 2015 07:16 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
10 May 2015 11:10 #32336 by linux-user
Replied by linux-user on topic Support for walkera telemetry.
vlad-deviation-devo10-v4.0.1-8430bce
-27h runtime; 8x 'Rst CYRF'; no problems so far.

Please Log in or Create an account to join the conversation.

More
12 May 2015 05:35 - 12 May 2015 07:47 #32431 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
New test version with "Rst CYRF" enabled.

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???
Last edit: 12 May 2015 07:47 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
13 May 2015 04:40 - 13 May 2015 05:27 #32481 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
New test version with "Rst CYRF" enabled.. DSM protocol - More structured CYRF programming. CYRF programming divided to: cyrf_startup_config(), cyrf_bind_config() and cyrf_transfer_config(). This is the version used for last DSMX test.

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.
Last edit: 13 May 2015 05:27 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
13 May 2015 08:44 - 14 May 2015 17:31 #32487 by linux-user
Replied by linux-user on topic Support for walkera telemetry.
vlad-deviation-devo10-v4.0.1-e9e48c0 now running for
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
Last edit: 14 May 2015 17:31 by linux-user.

Please Log in or Create an account to join the conversation.

More
13 May 2015 09:03 - 13 May 2015 09:04 #32488 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
No, version 9244618 has not changes for DEVO protocol.
Last edit: 13 May 2015 09:04 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
14 May 2015 18:43 #32570 by linux-user
Replied by linux-user on topic Support for walkera telemetry.
e9e48c0 now running for
48.5h, 8x 'Rst CYRF' =~ 1Rst / 6h

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 08:55 - 02 Jun 2015 08:59 #33350 by HaGe
Replied by HaGe on topic Support for walkera telemetry.
Hello together,

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 :cheer: .

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 :blink: .

[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
Last edit: 02 Jun 2015 08:59 by HaGe.

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 09:49 - 02 Jun 2015 11:28 #33351 by linux-user
Replied by linux-user on topic Support for walkera telemetry.
Hi HaGe,
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.
Last edit: 02 Jun 2015 11:28 by linux-user.

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 09:54 - 02 Jun 2015 09:55 #33353 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
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.
Last edit: 02 Jun 2015 09:55 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 09:58 - 02 Jun 2015 10:02 #33354 by linux-user
Replied by linux-user on topic Support for walkera telemetry.
Vlad, how can I see on Devo10 what "RF scanner" is doing?
Edit: does it do anything on Devo10?
Last edit: 02 Jun 2015 10:02 by linux-user.

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 10:40 - 02 Jun 2015 10:59 #33355 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
RF Scanner was initially writed for Devo 6, 8 and 12 only. Devo 10 has not code (page) for scanner. RF Scanner scan 80 channels and has two modes: Peak and Average. Peak mode for periodical RF sources (RC transmitter, WiFi) and Average mode for permanent RF sources/noises.

Example scan with two nearby WiFi access points:
Attachments:
Last edit: 02 Jun 2015 10:59 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
02 Jun 2015 17:32 #33367 by HaGe
Replied by HaGe on topic Support for walkera telemetry.
Hi linux-user & vlad,
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.

More
03 Jun 2015 04:21 - 03 Jun 2015 04:21 #33378 by vlad_vy
Replied by vlad_vy on topic Support for walkera telemetry.
There are changes at filesystem from v4.01 build, so you need backup your models to PC, write firmware, delete old filesystem, write new filesystem, restore your models, calibrate and setup your Tx. If you have any additional modules, uncomment it at 'hardware.ini'. For test build you can use filesystem from nightly builds. Last step = check setup for your models.
Last edit: 03 Jun 2015 04:21 by vlad_vy.

Please Log in or Create an account to join the conversation.

More
12 Jun 2015 17:25 #33938 by HaGe
Replied by HaGe on topic Support for walkera telemetry.

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 :sick: .
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.

More
13 Jun 2015 06:33 #33989 by Thomas.Heiss
Replied by Thomas.Heiss on topic Support for walkera telemetry.
Flying 450er Heli with nightly-build with DSMx (FHSS) on 100mw with Spektrum AR8000 + TM1000 and Telemetry FlightLog results: www.deviationtx.com/forum/protocol-devel...port?start=340#33913

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.

More
13 Jun 2015 07:10 - 13 Jun 2015 07:13 #33992 by HaGe
Replied by HaGe on topic Support for walkera telemetry.
Servus Thomas ;) ,
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
Last edit: 13 Jun 2015 07:13 by HaGe.

Please Log in or Create an account to join the conversation.

More
13 Jun 2015 09:11 - 13 Jun 2015 09:13 #33995 by linux-user
Replied by linux-user on topic Support for walkera telemetry.

HaGe wrote: so... after 6 flights i´ve 3 LOC´s :( . LOC 3 have killed my T-Rex 450 Pro :sick: .
i consider - unfortunately - to go back to stock firmware and go again to Deviation as soon as a new sable release is online.

I doubt, this is a deviation problem - 3 LOC in 6 flights ?!
@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.
Last edit: 13 Jun 2015 09:13 by linux-user.

Please Log in or Create an account to join the conversation.

More
13 Jun 2015 14:37 #34011 by Thomas.Heiss
Replied by Thomas.Heiss on topic Support for walkera telemetry.
If any newbie joins this thread and may wonder about "LOS" of the last pages it means "Loss of signal" (so loss of TX signal).

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.

More
13 Jun 2015 21:19 #34033 by HaGe
Replied by HaGe on topic Support for walkera telemetry.

linux-user wrote: I doubt, this is a deviation problem - 3 LOC in 6 flights ?!

I hope so too :unsure: . Deviation is a extremly nice project :) and i will actually use it :huh: . I will test my setup with the stock firmware and announces my experience immediately :) .

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

i´ve nothing to do :whistle: . The Heli goes in FailSafe mode and goes down. Then i switch the throttle hold on and go to the "ground zero" (~50 meters).
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 B) .

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.

Time to create page: 0.096 seconds
Powered by Kunena Forum