CYRF6936 - setting register in the firmware

More
13 Aug 2015 12:26 - 13 Aug 2015 13:15 #36848 by jhegedus
Hi,

I am trying to find where the firmware configures the CYRF6936 chip for the DEVOF12E controller.

I was looking through this repository : bitbucket.org/deviationtx/deviation/src/...910d/src/?at=default .
but I could really find the part of the source code that configures the radio chip in the DEVOF12E, is it in there somewhere ?

Could someone please point me to the right direction ?

EDIT : My guess is that this is the right file : bitbucket.org/deviationtx/deviation/src/...yrf6936.c?at=default

What do you think ?

Is that the file where the registers for the Radio chip are set for the DEVO F12 E ?


I would be particularly interested how the PN for the DSSS is set up.

I know that the Controller has to be paired up with the UAV by setting up a unique "Connection ID".

How does the seed for the PN depends on this "Connection ID"? Which part of the firmware describes this dependence ?

Regards,
Jozsef
Last edit: 13 Aug 2015 13:15 by jhegedus.

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

More
14 Aug 2015 04:06 #36863 by mwm
I'm not really positive, but you might try this:
bitbucket.org/deviationtx/deviation/src/...yrf6936.c?at=default

The F12E specific code is all here: bitbucket.org/deviationtx/deviation/src/...devof12e/?at=default , but I don't believe there is any CYRF code specific to the F12E.

Do not ask me questions via PM. Ask in the forums, where I'll answer if I can.

My remotely piloted vehicle ("drone") is a yacht.

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

More
14 Aug 2015 12:05 #36876 by jhegedus
Replied by jhegedus on topic CYRF6936 - setting register in the firmware
Hi

Thanks,

That looks helpful.

Any idea what is the underlying modulation of DSSS ? Is it always BSK ?

Jozsef

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

More
27 Aug 2015 18:55 #37246 by btoschi
Replied by btoschi on topic CYRF6936 - setting register in the firmware
Hi,

You need to check the CYRF datasheet and also check the code in cyrf_init()
(found in file bitbucket.org/deviationtx/deviation/src/...yrf6936.c?at=default )

I'm sorry but I'm not an expert with CYRF, I've mostly worked on NRF protocols yet, so I cannot tell you from reading values in init code.

And there is no F12E specific CYRF code anywhere. Its (mostly?) all about Input (switches, analog inputs) and output (Trainer port, Display, ...) what's device dependent.

@mwm: Code in src/protocol/spi is always the radio-specific code (functions to write bytes, read bytes, ...) but nothing protocol specific.
Even if there were a specific code to set the modulation via enum, it would be called from code in src/protocol/devo_cyrf6936.c for DEVO Protocol.

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

Time to create page: 0.046 seconds
Powered by Kunena Forum