Oke langsung saja, pertama yang perlu disiapkan adalah
- Bluetooth HC05/HC06
- FTDI
- Software
- bluesite 2.6.6
- Ftdi module driver (csr-spi-ftdi-0.5.1)
- Zadig
- RN-42 Firmware
- install bluesite
- copy dan replace file usbisp.dll (dari csr-spi-ftdi-0.5.1\csr-spi-ftdi-0.5.1\lib-win32) ke dalam instalan bluesite, di folder (Program Files (x86)\CSR\BlueSuite 2.6.6)
- buka file zadig-2.4.exe dan sambungkan kabel downloader ke ftdi yang sudah di siapkan
- replace driver dengan libusbK
- Jalankan blueflash
- klik stop processor
- klik dump untuk mendapatkan firmware aslinya bluetooth yang akan dirubah, kemudian simpan file dump.xpv di hardisk
- Start prosesor kembali
- Jalankan PSTOOL
- pilih seperti di bawah ini
- klik ok
- Klik file -> dump dan simpan file dump.psr di folder yang sudah di tentukan.
- buka file dump.psr yang sudah di create sebelumnya,
- bikin new file update.psr. kemudian copykan file berikut ini dari dump ke update (tiap-tiap bluetooth mempunyai alamat yang berbeda-beda)
- // PSKEY_BDADDR
- // PSKEY_ANA_FTRIM
- // PSKEY_ANA_FREQ
- Buka kembali blueflash, kemudian klik stop prosesor, dan klik choose file, pilih rn-42.xpv dan klik download
- Setelah complete, silahkan klik start prosesor kembali, kemudian buka pstool.
- pada tahap ini adalah merubah adress bluetooth bawaannya software rn-42 dengan address sebelumnya yang sudah di amankan terlebih dahulu.
- klik file -> merge dan pilih update.psr, klik open.
- klik entry-read entry
- Alamat bluetooth akan berubah seperti sebelumnya
- selamat anda berhasil merubah bluetooth biasa menjadi bluetooth HID
dengan konfigurasi
tx bluetooth ke pin 8
rx bluetooth ke pin 9
vcc ke 5v
gnd ke gnd
dan program berikut ini
/*nolineending
* $$$
* newline
* SF,1
* S~,6
* SN,nama bluetooth
* SH,0230
* R,1 -->reboot
*/
#include <SoftwareSerial.h>
//#define RX_PIN 10
//#define TX_PIN 9
#define RX_PIN 8
#define TX_PIN 9
SoftwareSerial swSer(RX_PIN,TX_PIN);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
swSer.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
while(swSer.available()>0)
{
Serial.write(swSer.read());
}
while(Serial.available()>0)
{
swSer.write(Serial.read());
}
}
buka serial monior dan ketikkan berikut ini* $$$
* newline
* SF,1
* S~,6
* SN,nama bluetooth
* SH,0230
* R,1 -->reboot
*/
#include <SoftwareSerial.h>
//#define RX_PIN 10
//#define TX_PIN 9
#define RX_PIN 8
#define TX_PIN 9
SoftwareSerial swSer(RX_PIN,TX_PIN);
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
swSer.begin(115200);
}
void loop() {
// put your main code here, to run repeatedly:
while(swSer.available()>0)
{
Serial.write(swSer.read());
}
while(Serial.available()>0)
{
swSer.write(Serial.read());
}
}
$$$ --> cmd
SF,1 -->AOK
S~,6 -->AOK
SN,nama bluetooth-->AOK
SH,0230-->AOK
R,1 -->reboot
coment untuk ngasih paswir gimana min ?
BalasHapuswiring antara BT dan FTDInya guru?
BalasHapuskalau sebaliknya bagaimana? dari hid ke hci
BalasHapusrn-42.xpv dapat dri mna?
BalasHapusPlease Send rn-42.xpv file link
BalasHapus