Replies: 9 comments 45 replies
-
You are saying that you are using serial mode to control module. Then just set the bind flag in the serial frame sent to the module. |
Beta Was this translation helpful? Give feedback.
-
The 2nd byte of the control frame you send to the multi contains the bind bit, if that's 1 the module will go in bind mode. If you still haven't figured that out you send that whole 27-36 byte control frame to the module continuously. |
Beta Was this translation helpful? Give feedback.
-
The module doesn't do anything if it is not receiving a serial stream. Anyway what are you trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
Does this mean I have to send the command in correct format? There is no rotary switch and no binding button on my 4 in 1 module, so I tried with serial mode first. Yes, Mr. Pascal. If I misunderstand anything, please let me know. |
Beta Was this translation helpful? Give feedback.
-
@goebish you've done something similar for one of your friend. Is there a possibility to share your work? If I remember in your modified version you are sending the commands by USB and have put a work around in place for the bootloader. |
Beta Was this translation helpful? Give feedback.
-
If I understand well it's a school project and figuring it out/writing the associated code or at least finding it themselves is kind of the point of the assignment... |
Beta Was this translation helpful? Give feedback.
-
Hello, Mr. @goebish I have read your tx_example.py and tried to add some codes for my situation. These are the codes I added
and there are the outputs I got
The outputs said "Multi-Module is running" when I run the program right after I just plug in my 4 in 1 module. Could you please share some experiences about how to deal with this issue? |
Beta Was this translation helpful? Give feedback.
-
Hello, Mr. @goebish Thank you for helping me, and I am sorry for replying you til today. I have modified the multiprotocol.ino file and pins.h file.
I am trying to fix these errors now, and the good news is that the Red LED flashed after using the statements as you said.
But the mode of Red LED is the "Slow blink" mode not the "Fast blink" mode which the mode showed up when I pressed the bind button on my transmitter.
I am testing with different commands and will update if I find anything new. |
Beta Was this translation helpful? Give feedback.
-
Thank you Mr. @goebish and Mr. @pascallanger After I comment out the __irq_usart1 function in usart_f1.c file at
There are no error when compiling. Then, I modified the protocol number of E016HV2 in multiprotocol.h file as 31
, and I modified the header as below
After that, the 4 in 1 board can turn to the binding process successfully (the Red LED is in "Fast blink" mode), and LEDs of my E016H will stop blinking. I thought that means the binding process completed. According to above problem, I modified the header as
Because E016HV2 protocol needs Freq. fine tuning. After set a suitable value of Freq. fine tuning, the Red LED of 4 in 1 module will keep turn on stably as well as LEDs of my E016H. I am trying to solve that and will update if I find any solution. Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to modify the _config.h file to let my 4 in 1 board start auto binding while I plug it in my laptop or after I upload the code with Arduino IDE.
But I couldn't find a correct place and I am not sure how many file I need to modify to implement the function.
I have added statement, "AUTOBIND_FLAG_on", in the line 1800 in Multiprotocol.ino file and comment the statement, "#define WAIT_FOR_BIND", in the line 66 in _config.h file, but these didn't work.
The 4 in 1 board was tested to work well before I modified the files. I can use it to fly my drone and it will also start auto binding once I use the "bind on channel" function.
Can anyone give me some suggest about how to modify the _config.h file?
If there are anything unclear, please let me know.
Beta Was this translation helpful? Give feedback.
All reactions