logo elektroda
logo elektroda
X
logo elektroda

SP1ML different operation of the same modules, uploading the same code.

Tannis 669 1
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 16885150
    Tannis
    Level 8  
    Welcome,

    I have been trying for many weeks to write code to support correct communication between SP1ML radio modules. I am editing a finished project I found on github Link , whose code is created in SW4STM32. I got to the point where I uploaded identical code on two radio modules. Which to my surprise results in them working differently.
    The communication algorithm was devised like this: each module is in receive mode, transmit mode can be forced manually, and this is what I do by sending a high state to a specific CPU pin. Once I get into transmit mode then information is sent to all the radio modules and I return to receive mode, waiting for the feedback I get. The problem occurs when I do an analogous action on the second module. Again, all modules are set to receive mode, I manually force transmit mode, send the information I receive to all radio modules, switch to receive mode and nothing further happens.

    Quite a lot of time is wasted on this so I decided to present my problem on the forum....

    Greetings,
    Tannis
  • ADVERTISEMENT
  • #2 16885885
    sawitar
    Level 18  
    Since you see different behaviours, it means that there is a difference between these systems.
    Magic does not exist.

    I would start by swapping the radio modules. This will allow you to determine whether the module or the circuit controlling it is to blame.
ADVERTISEMENT