2022-03-17 (Th) RemoteFinishLine Bluetooth is easier than I thought

I didn't understand why my BT receiving module wasn't working correctly, so I connected both radios to USB ↔ serial adapters. To my surprise, they paired automatically and went into transparent mode and took four seconds compared to the fifteen that it took to program them each time. The HC-05 must store the address when I issued the AT+LINK<addr> command, making them even more helpful for future projects. The automatic connection also means that I don't need to differentiate between initiating and receiving units because they can use the same sketch.

When I retrofitted one prototyping board for the HC-05 module, I used a removable jumper, so I didn't need to desolder anything. I changed my baud rate back to 9600, although I could have changed both units for speed's sake. My handshake will be both units spamming the connection with "READY" until they perceive each other. I modified my address verifying function to check for the phrase and confirmed that it could change the mode after a connection. I kept one module attached to a computer for the test and typed "READY" in a terminal.

I jotted down pseudo-code for the dual-unit mode based on the single-point sketch I already wrote. I want to give the boxes the option to act independently and use their old code, which should be possible if I press the button before Bluetooth connects.
Two computers and one BT connection

The rest of the posts for this project have been arranged by date.
First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6
Completed projects from year 7
Completed projects from year 8

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information on this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property, or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.