- Posts: 63
New FrSkyX protocol
- petsmith
- Offline
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Another reason it's on by default is that if there's any problems I'd rather know right away. It has to work no matter what other options are turned on. The telemetry serial out is implemented with DMA so the only extra processing is calculating the checksum and setting up the transfer, and a final termination interrupt. The DMA and interrupt are at lower priority than ADC DMA and timer interrupt. The serial output takes about 1.8ms and occurs during the 4ms window for processing the s.port packet. Since it takes 2 over-the-air telemetry packets to receive one s.port packet at least 72ms separates each telemetry serial out packet.
Please Log in or Create an account to join the conversation.
- Fernandez
- Offline
- Posts: 983
I have been flying first time outside, using x4r with sbus to betaflighht 3.1 and the u7e build of HappyHarry, flew some lipos and I had no problems to report with this protocol. Telemetry I use the analog port for my battery not used smart port yet.
Do we have some more field reports people flying the x protocol with success? Can we conclude it is stable?
Please Log in or Create an account to join the conversation.
- LumpyLouis
- Offline
- Posts: 11
As a relative newb wrt coding, could you offer some resources on what I would need to do specially to a firmware file to remove standard GUI and enable s.port telemetry? I didn't see any anything in the test builds section that look like a good jumping off point.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
Then edit file deviation/src/target/devo7e/target_defs.h. Where you see HAS_STANDARD_GUI 1, change the 1 to 0. On the line with HAS_EXTENDED_TELEMETRY change the 0 to a 1.
Please Log in or Create an account to join the conversation.
- LumpyLouis
- Offline
- Posts: 11
hexfet wrote: Follow the directions here to set up your build environment. Make sure you can build the unmodified 7e software.
Then edit file deviation/src/target/devo7e/target_defs.h. Where you see HAS_STANDARD_GUI 1, change the 1 to 0. On the line with HAS_EXTENDED_TELEMETRY change the 0 to a 1.
OK thanks. So this process will build a firmware file with the FrSkyX protocol currently only available in the Nightlies?
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.
- LumpyLouis
- Offline
- Posts: 11
hexfet wrote: Follow the directions here to set up your build environment. Make sure you can build the unmodified 7e software.
Then edit file deviation/src/target/devo7e/target_defs.h. Where you see HAS_STANDARD_GUI 1, change the 1 to 0. On the line with HAS_EXTENDED_TELEMETRY change the 0 to a 1.
So I was able to get docker installed and was able to follow all of the steps down to creating the image. When I select "Build" it just creates the image and it looks like any other download of deviation. I do not see a folder for "deviation" in the zip file. How do I access deviation/src/target/devo7e/target_defs.h? If this is something I need to do before i select "Build" how do I do so? Thanks again for the assistance.
Please Log in or Create an account to join the conversation.
- hexfet
- Offline
- Posts: 1868
After you make the changes type "exit" at the command prompt and you'll be back in the menu. Select Build and you know the rest.
Please Log in or Create an account to join the conversation.
- LumpyLouis
- Offline
- Posts: 11
hexfet wrote: The change needs to be made before you build. Tab over to the Shell menu item and select it. That will put you at a linux command line inside the docker container. The deviation directory should be under /git I think (my setup is slightly different).
After you make the changes type "exit" at the command prompt and you'll be back in the menu. Select Build and you know the rest.
Im sorry again but i am still not grasping it. i am able to get to the linux command line through shell. i have typed
dir git/deviation/src/target/devo7e/target_defs.h
which is what i think i need to do but it just repeats what i typed and drops me to the next command line. i dont see an option to select or edit a file.
Please Log in or Create an account to join the conversation.
- Nitro_123
- Offline
- Posts: 95
Error response from daemon: create ~/devo_builds: "~/devo_builds" includes invalid characters for a local volume name, only "[a-zA-Z0-9][a-zA-Z0-9_.-]" are allowed
edit: so the above problem is solved by removing the ~/ in front of devo_builds.
Now when I compile there's nothing in devo_builds.
Dockers shell has vim preinstalled. Using that to edit files
P.S.
I really like this docker thing. Thanks mwm
P.P.S getting errors :/
Building devo module
+ Compiling 'protocol/dsm2_cyrf6936.c' as module
+ Building 'objs/devo7e/dsm2_cyrf6936.bin'
arm-none-eabi-ld: objs/devo7e/dsm2_cyrf6936.elf section `.text' will not fit in region `ram'
make[1]: *** [objs/devo7e/dsm2_cyrf6936.bin] Error 1
make: *** [zip_devo7e] Error 2
PS C:\Users\Hamza>
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.
- LumpyLouis
- Offline
- Posts: 11
@petesmith: Do you use a non-ultimate 7e? If so, is there a way you can share the custom build you got working?
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.
- petsmith
- Offline
- Posts: 63
LumpyLouis wrote: Bummer. Looks like its time for Plan B. Please update if there are any changes and thanks again.
@petesmith: Do you use a non-ultimate 7e? If so, is there a way you can share the custom build you got working?
I'm using an Ultimate 7e. When you remove standard GUI, you will gain around 5KB space in flash ROM. However, the extended telemetry code are part of the protocol module which resides in RAM (4KB RAM on the Devo 7e is dedicated for loading protocol modules dynamically). It's possible to move the Frksy extended telemetry code (and/or part of its protocol code) to ROM space and allowing it to fit on the 7e. However, this will require code changes and will become very messy to maintain. I don't think any Deviation developer will want to go this route. Sorry to get your hopes up as I didn't realise this until I checked out the source code.
Please Log in or Create an account to join the conversation.
- Nitro_123
- Offline
- Posts: 95
I understand that the 7e is restrictive but i hope there are workarounds
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.
- sfersystem
- Offline
- Posts: 124
Please Log in or Create an account to join the conversation.
- petsmith
- Offline
- Posts: 63
- Standard GUI is removed
- FrskyX with Extended Telemetry
- DSM2 without Extended Telemetry (I suppose we can also support it if needed. We seem to still have enough ROM space for it.)
- it's based on the latest nightly
I don't have a standard Devo 7e to test. Let me know how it works out.
PS. The zip file is too big to be attached in the forum. I uploaded it to some free hosting site.
www.sendspace.com/file/9wwq9z
Please Log in or Create an account to join the conversation.
- petsmith
- Offline
- Posts: 63
sfersystem wrote: on my Devo10, is it now possible to have the battery voltage with the XSR ?
Yes, extended telemetry is supported on Devo 10. That is, you can see your model's battery on your Devo 10, provided your FC can supply the battery info to XSR via s.port.
Please Log in or Create an account to join the conversation.
- Home
- Forum
- Development
- Protocol Development
- New FrSkyX protocol