Hi,
I'm struggling to use ble_app_att_mtu_throughput and spi. Some help?
When I merge the two codes the main code (ble_app_att_mtu_throughput) doesn't work.
Thanks for your help
Hi,
I'm struggling to use ble_app_att_mtu_throughput and spi. Some help?
When I merge the two codes the main code (ble_app_att_mtu_throughput) doesn't work.
Thanks for your help
Hi,
Does the merged code build without any errors?
regards
Jared
Sorry if I wasn't so clear. I'll try to clarify now.
My purpose is to assest a system with a communication by BLE with two nRF52832. I modified the example code ble_app_att_mtu_throughput to send 244 bytes packets. Now my object is to maintain the BLE communication but the data, instead to be create by a function in main (which create numbers from 0 to 243), are created and sent via SPI. This is the code I created with Python for my SPI Driver:
from spidriver import SPIDriver def main(): # Initialize the SPI Driver on the right COM try: sd = SPIDriver('COM5') print("SPI Driver correctly initialized") except Exception as e: print(f"ERROR") return # Creating data packet data_packet = bytearray(range(244)) # Creating a packet from 0 to 243 print("Packet created:", data_packet) # Sending the packet via SPI try: sd.sel() # Select your SPI device (CS down) sd.write(data_packet) # Sending data packet sd.unsel() # Deselect SPI device (CS up) print("Data packet sent correctly") except Exception as e: print(f"ERROR") if __name__ == "__main__": main()
Thanks
Hi there,
Ste_ said:My purpose is to assest a system with a communication by BLE with two nRF52832. I modified the example code ble_app_att_mtu_throughput to send 244 bytes packets. Now my object is to maintain the BLE communication but the data, instead to be create by a function in main (which create numbers from 0 to 243), are created and sent via SPI. This is the code I created with Python for my SPI Driver:
Where are you running this python code? On what device?
regards
Jared
On my SPI Driver
Yes, but on what device are you trying to run this code on?
regards
Jared
Sorry, I tought I mentioned it. I run the code on nRF52832
Sorry, I tought I mentioned it. I run the code on nRF52832