- Posts: 4402
WLToys V912/V915/? protocols
- PhracturedBlue
- Offline
bitbucket.org/deviationtx/deviation
what version of gcc do you have?
there is a '#pragma weak' which can cause issues with older gcc. It should happen at link time not compile time though. I crosscompile the emu in Linux typically, which builds properly.
I just ran a emulator build on my Windows machine (make TARGET=emu_devo10 WINDOWS=1) and it went through fine.
gcc --version
gcc.exe (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
gcc 4.7.2, but this is a compile time error complaining about different return types (int vs void)... I thought my sources were up to date, but I'll check that.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Now this means I've no idea of which version of the source I'm working on....
I got lost with all those repos and branches
Please Log in or Create an account to join the conversation.
- victzh
- Offline
- Posts: 1386
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
bitbucket.org/goebish/deviation/history-...u/radio.c?at=default
you have the wrong A7105_Reset in radio.c. This code seems to have come from the 4.0 branch rather than trunk. This doesn't look like a general issue with your repo though. Not sure how you got it into this state.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
capture : 4C, 92, 42, 88, 38, 7E, 2E, 74, 24, 6A, 2A, 60, 10, 56, 06, 9C
dev emu: 4C, 92, 42, 88, 38, 7E, 2E, 74, 24, 6A, 1A, 60, 10, 56, 06, 9C
Maybe this can explain this copter (V912) does not work well with my latest firmware ? To confirm that I can build a dfu with this fixed id and hardcoded hops sequence to check if this fix the problem (after some sleep ).
But this is only 1/16 packets... probably not enough to even notice.
I've a problem with the 4 files you posted earlier, saleae logic software does not show anything when I open them. Which version are you using ?
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Let me know if you need that RX capture.
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
I wanted those files mostly to check timings, and there's no problem with that, time between start of packets is fine (a bit less than 1.5 ms).
Attached is a dfu in which I've set an hardcoded TX id (same as your stock TX) and an altered FlySky tx_channels table. Can you tell if it works better ?
Then... there's one more thing I've not checked that could be the cause to your problem: chip init, maybe there's a difference in VCO calibration or something like that... I'll check later.
Please Log in or Create an account to join the conversation.
- SeByDocKy
- Offline
- Posts: 1016
goebish wrote: yeah, works better with updated version...
I wanted those files mostly to check timings, and there's no problem with that, time between start of packets is fine (a bit less than 1.5 ms).
Attached is a dfu in which I've set an hardcoded TX id (same as your stock TX) and an altered FlySky tx_channels table. Can you tell if it works better ?
Then... there's one more thing I've not checked that could be the cause to your problem: chip init, maybe there's a difference in VCO calibration or something like that... I'll check later.
Can you post the new code in your repo ? I can test also I got also a V913 ...
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
gist.github.com/goebish/cd68d0928d37f81df027
Regarding my repo... I'll keep it for reference but I'll now work on a new fork, that'll be simpler:
bitbucket.org/goebish/deviationtx
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
goebish wrote: keep in mind that is just crap code for testing ...
gist.github.com/goebish/cd68d0928d37f81df027
Regarding my repo... I'll keep it for reference but I'll now work on a new fork, that'll be simpler:
bitbucket.org/goebish/deviationtx
You do good stuff! This totally works! The accessory buttons are working great. I saw absolutely no hesitation on the collective, and I walked through the whole house without losing bind. I haven't flight tested so let me know when it's ready for that.
Thanks!
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Now we've to make it work with any tx id... I think I need to replace all the 0x1e with 0x2e in tx_channels[ ][ ] for this particular protocol (I wonder if this is intentional or if they made a typo when they coded their firmware , because that's stupid to change only 1 byte in the sequence)... or maybe that's more complicated than that in which case I'll need a few RX captures, to check which rf channels it listens on.
I'll build a few more firmwares you'll have to test
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Deal57 wrote: I haven't flight tested so let me know when it's ready for that.
If you think there's a solid link you can try, just don't try another flysky aircraft with this firmware.
Please Log in or Create an account to join the conversation.
- PhracturedBlue
- Offline
- Posts: 4402
If you look at the table, you can see the rows come in pairs, with the 2nd being the 1st reversed (so there are really only 8 unique rows)
the 2nd number is always the 1st plus 0x50, so there are really only 8 unique bytes in a row.
in the 1st row, the bytes are in ascending order, and grow by 0x0a for each pair.
So it would be trivial to take the 16x16 table and turn it into an 8x8 table if we ever need more space. Based on the above, I would guess there is probably also an algorithm to determine the row scrambling, but I was never able to figure that part out. If we asume the 1e->2e is a typo (very likely), that strengthens the argument that there is an algorithm to determine the row scrambling, since it is unlikely they would make the same typo in each row (or more precisely that they don't use a table like ours when computing the channel)
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
Now maybe they made the mistake only in this row (0x01), I'll write something to check that. And yes in last resort a few RX captures with different tx IDs would help.
Please Log in or Create an account to join the conversation.
- goebish
- Offline
- I Void Warranties
- Posts: 2631
edit: oops, made a mistake, reuploaded ...
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
RX Bind move collective
RX Bottom Button
RX Power no bind
RX THR RUD moves
RX Top Button several presses
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- Deal57
- Offline
- Posts: 857
Deviation Devo7e 3way switch mod, A7105, NRF24L01
Devo6s 2x2 switch mod, trim mod, haptic, multimodule, A7105, NRF24L01, CC2500
Devo12e 4-in-1 with voice mod -- it speaks!!
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- WLToys V912/V915/? protocols