This string is 65 bytes long and has a space after the CC.
Is that correct?
Ioannis
This string is 65 bytes long and has a space after the CC.
Is that correct?
Ioannis
I sent these 65 bytes every 100 mS. The data rate of the HC-05 seems to be high,
https://www.geeksforgeeks.org/all-ab...7600%2C%20etc.It uses the 2.45GHz frequency band. The transfer rate of the data can vary up to 1Mbps and is in range of 10 meters.
The HC-05 module can be operated within 4-6V of power supply. It supports baud rate of 9600, 19200, 38400, 57600, etc.
I think that the lost packages issue has to do with the way I'm sending the data,
Do you see anything wrong with this code?Code:FOR I = 0 TO 31 SEROUT2 PORTC.1,84,[HEX2 SquaresArray[I]] NEXT I SEROUT2 PORTC.1,84,[","]
"No one is completely worthless. They can always serve as a bad example."
Anonymous
No, I don't see anything wrong with that code. Have you tried increasing the delay between packages?
I would also check with a terminal on a PC what the serial port of the PIC sends out.
Maybe there is an electrical problem with the port.
I suppose you are using without an RS232 driver since the 84 implies a true TTL level.
For a PC sniffing you need a driver though.
Ioannis
Thanks, I will try both of your suggestions.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks