Page 1 of 1

Adding new UART Control packets (starting with magic packet)

Posted: Wed Jun 26, 2024 4:31 am
by tsoundi
Hi,

I am currently working with the bladeRF-micro A4, which is equipped with an Intel Cyclone V FPGA and an AD9361 RF chip.

I'm interested in extending the functionality of the bladeRF-cli interface by adding new command sets. These commands would be transmitted via UART from the USB interface to the FPGA. For example, I'd like to introduce a parameter such as a threshold, similar to the existing "set frequency" command.

I believe this is done by using the "UART"-connection between the FX3 and the FPGA, to make the packets, but I've been unable to locate the corresponding source code or determine the packet formats.

Is there a manual explaining how to make new UART packets:
-for the host side
-for the NIOS II counterpart

Any guidance on where I might find this information or how to proceed would be greatly appreciated.

Kind regards,
Daoud

Re: Adding new UART Control packets (starting with magic packet)

Posted: Mon Jul 01, 2024 7:56 pm
by beenpillager
You are correct in your understanding that the UART connection between the FX3 and the FPGA is the key interfacegeometry dash online for sending custom commands from the host side to the FPGA. The bladeRF firmware uses this UART link to facilitate communication between the host software and the FPGA.

Re: Adding new UART Control packets (starting with magic packet)

Posted: Wed Jul 03, 2024 12:35 am
by tsoundi
beenpillager wrote: Mon Jul 01, 2024 7:56 pm You are correct in your understanding that the UART connection between the FX3 and the FPGA is the key interfacegeometry dash online for sending custom commands from the host side to the FPGA. The bladeRF firmware uses this UART link to facilitate communication between the host software and the FPGA.
Yes I was right, it was a whole labyrinth but I managed to add new sets of commands. Now I try to use them on the FPGA side and I am looking to modify the command_uart.vhd file to accept my new set of commands and be able to use them.

Thanks for your answer by the way.

Re: Adding new UART Control packets (starting with magic packet)

Posted: Tue Jul 16, 2024 2:41 am
by seanybooboo
Hey tsoundi,

Would you mind sharing extra details on your implementation of custom messages from the host machine to the FPGA?

Any chance you’ve got a Git repo you could share? I have gotten a simple DRFM transponder to work on the blade by putting a dual clock fifo between the sample read and sample write chains, but now I am looking into how I can change some of transponders parameters using custom packets.

Re: Adding new UART Control packets (starting with magic packet)

Posted: Tue Aug 06, 2024 6:56 pm
by flannelskiss
Other approaches such as threading or multiprocessing in Python may be more suitable for your needs. To accomplish this, we first create two distinct threads for sending and receiving data using the threading module in Python.

Re: Adding new UART Control packets (starting with magic packet)

Posted: Tue Dec 17, 2024 11:23 pm
by Chinmayi
You need to learn UART architecture and packet formatSnow Road.