Demo entry 6138289

Test

   

Submitted by anonymous on Oct 02, 2016 at 00:08
Language: Arduino. Code size: 977 Bytes.

  enterATMode();                          //enter HC-05 AT mode
  delay(500);
  sendATCommand("RESET");                  //send to HC-05 RESET
  delay(1000);
  sendATCommand("RMAAD");                  //remove previous pairs
  sendATCommand("ORGL");                   //send ORGL, reset to original properties
  sendATCommand("ROLE=1");                 //send ROLE=1, set role to master
  sendATCommand("CMODE=0");                //send CMODE=0, set connection mode to specific address
  sendATCommand("BIND=000D,18,3A6789");    //send BIND=??, bind HC-05 to OBD bluetooth address
  sendATCommand("INIT");                   //send INIT, cant connect without this cmd 
  delay(1000); 
  sendATCommand("PAIR=000D,18,3A6789,20"); //send PAIR, pair with OBD address
  delay(1000);
  sendATCommand("LINK=000D,18,3A6789");    //send LINK, link with OBD address
  delay(1000); 
  enterComMode();                          //enter HC-05 comunication mode
  delay(500);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).