RfidResearchGroup / proxmark3

Iceman Fork - Proxmark3
http://www.icedev.se
GNU General Public License v3.0
3.72k stars 998 forks source link

fix usart btfactory for HC series module #2210

Closed unknown10777 closed 7 months ago

github-actions[bot] commented 8 months ago

You are welcome to add an entry to the CHANGELOG.md as well

iceman1001 commented 8 months ago

Before this worked on the blue shark. If you change all command structure, you will break that.

unknown10777 commented 8 months ago

I'll find a way try not to break that, but is blueshark not HC-05?

iceman1001 commented 7 months ago

Cool, the only thing right now is the = that has introduced. I fear it breaks old functionality

iceman1001 commented 7 months ago

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 -->
iceman1001 commented 7 months ago

This blog might be useful https://www.martyncurrey.com/hc-06-hc01-comv2-0/

iceman1001 commented 7 months ago

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
unknown10777 commented 7 months ago

Thank you for reviewing my code!

unknown10777 commented 7 months ago

I'm currently working on how to keep old code and making new modules working

iceman1001 commented 7 months ago

You closed?

unknown10777 commented 7 months ago

I wish to clean my work tree so I git reset and pushed, I don't know why it closed:(

unknown10777 commented 7 months ago

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 --> 
unknown10777 commented 7 months ago

Can you try sending AT+PIN=1234 to Blueshark see if it works using AT+PSWD?

iceman1001 commented 7 months ago

bild bild bild

Testing with a blueshark.

iceman1001 commented 7 months ago

bild bild

iceman1001 commented 7 months ago

I have not tested with the PM3 SE

iceman1001 commented 7 months ago

I wonder if there is a HC firmware to upgrade to yours 2.5?

unknown10777 commented 7 months ago

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.

unknown10777 commented 7 months ago

Testing with a blueshark.

Thanks for testing results, will improve detections