Closed unknown10777 closed 7 months ago
Before this worked on the blue shark. If you change all command structure, you will break that.
I'll find a way try not to break that, but is blueshark not HC-05?
Cool,
the only thing right now is the =
that has introduced. I fear it breaks old functionality
For the blueshark \r\n
at the end doesn't work.
[+] TX ( 10):AT+VERSION
[usb] pm3 --> usart txrx -t 2000 -d "AT+VERSION"
[+] TX ( 10):AT+VERSION
[+] RX ( 12):hc01.comV2.0
[usb] pm3 --> usart txrx -t 2000 -d "AT+VERSION\r\n"
[+] TX ( 12):AT+VERSION
[usb] pm3 -->
This blog might be useful https://www.martyncurrey.com/hc-06-hc01-comv2-0/
Ok, for NAME it works both.
[usb] pm3 --> usart txrx -t 2000 -d "AT+NAME=PM3_RDV4.01"
[+] TX ( 19):AT+NAME=PM3_RDV4.01
[+] RX ( 9):OKsetname
[usb] pm3 --> usart txrx -t 2000 -d "AT+NAMEPM3_RDV4.01"
[+] TX ( 18):AT+NAMEPM3_RDV4.01
[+] RX ( 9):OKsetname
Thank you for reviewing my code!
I'm currently working on how to keep old code and making new modules working
You closed?
I wish to clean my work tree so I git reset and pushed, I don't know why it closed:(
It worked for mine HC-04 and I added detect in case anyone using old to avoid breaking changes. Woohoo!
[usb] pm3 --> usa btf
[!] ⚠️ WARNING: process only if strictly needed!
[!] ⚠️ This requires BT turned ON and NOT connected!
[!] ⚠️ Is the add-on blue light blinking? (Say 'n' if you want to abort) [y/n]
y
[=] Trying to detect current settings... Please be patient.
[+] TX ( 10):AT+VERSION at 115200 8N1
[+] RX ( 31):www.hc01.com V2.5, 2022-04-26
[+] Add-on found!
[=] Bluetooth module identified as HC-04.
[=] Reconfiguring add-on to default settings.
[+] TX ( 18):AT+NAME=PM3_RDV4.0
[+] RX ( 11):OKsetNAME
[+] Name set to PM3_RDV4.0
[+] TX ( 9):AT+ROLE=S
[+] RX ( 15):OK+ROLE=Slave
[+] Role set to Slave
[+] TX ( 11):AT+PIN=1234
[+] RX ( 10):OKsetPIN
[+] PIN set to 1234
[+] TX ( 16):AT+BAUD=115200,N
[+] RX ( 21):OK+BAUD=115200,NONE
[+] Parity set to Noneand Baudrate set to 115200
[+] Add-on successfully reset
[usb] pm3 -->
Can you try sending AT+PIN=1234
to Blueshark see if it works using AT+PSWD
?
Testing with a blueshark.
I have not tested with the PM3 SE
I wonder if there is a HC firmware to upgrade to yours 2.5?
I wonder if there is a HC firmware to upgrade to yours 2.5?
Seems nope, they don't have upgrade pins or firmware, only way is replace module physically. And HC05 official price is about 9 dollar.
Testing with a blueshark.
Thanks for testing results, will improve detections
You are welcome to add an entry to the CHANGELOG.md as well