// Simple serial port terminal for testing the BT_Emitter board
// Arduino UNO
#include <SoftwareSerial.h>
#define RxD 2
#define TxD 3
#define BoardSpeed 9600
#define UNOSpeed 9600
SoftwareSerial SSerial(RxD,TxD);
void setup()
{
pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);
pinMode(8,OUTPUT);
SSerial.begin(BoardSpeed);
Serial.begin(UNOSpeed);
tone(8,1000);
}
void loop()
{
if(Serial.available())
{
SSerial.print((char)Serial.read());
}
if(SSerial.available())
{
Serial.print((char)SSerial.read());
}
}
MacAddr=0x05850001611,Name=S10
New Devices:2,MacAdd:0x05850001611,Name:S10
New Devices:3,MacAdd:0x18454ddb22ed,Name:ProHT 88133
ALL Devices=3
MacAddr=0x05850001611,Name=S10
MacAddr=0x18454ddb22ed,Name=ProHT 88133
New Devices:1,MacAdd:0x18454ddb22ed,Name:ProHT 88133
New Devices:2,MacAdd:0x05850001611,Name:S10
OK+
OK+REST
POWER ON
New Devices:1,MacAdd:0x05850001611,Name:S10
OK+DISCON
ALL Devices=1
MacAddr=0x05850001611,Name=S10
Delete_Vmlink
OK+VMLINK
BT_ADD_NUM=0
BT_NAME_NUM=0
Last_Add=0x00000000000
OK+
CON:05850001611
CONNECTED
Thank you very much to share this information . It's very useful for me because I've just received such a board from "aliexpress" and now I'll try to use it ...
Time to breadboard a circuit. I basically used the schematic shown in post #2, but instead of a USB/Serial board, I used an Arduino UNO.
View attachment 122397
The UNO provides the +5V.
I also used a resistor divider (15K/2.2K) from GPIO 8 to ground with the midpoint going to Audio in (IN_L or IN_R, it doesn't matter) and the AGND to the UNO (and board) GND. I was not concerned with high fidelity, but instead, I want to conveniently present a signal to transmit. The Arduino can do this with a simple statement, e.g., tone(8,1000);
I used software serial and this simple terminal program.
Code:// Simple serial port terminal for testing the BT_Emitter board // Arduino UNO #include <SoftwareSerial.h> #define RxD 2 #define TxD 3 #define BoardSpeed 9600 #define UNOSpeed 9600 SoftwareSerial SSerial(RxD,TxD); void setup() { pinMode(RxD, INPUT); pinMode(TxD, OUTPUT); pinMode(8,OUTPUT); SSerial.begin(BoardSpeed); Serial.begin(UNOSpeed); tone(8,1000); } void loop() { if(Serial.available()) { SSerial.print((char)Serial.read()); } if(SSerial.available()) { Serial.print((char)SSerial.read()); } }
Now, I could start playing with AT commands - typing them into the serial monitor and observing the response and so on. I tried 9600 first and that (and no other speed) worked.
But where are the AT commands? Am I supposed to guess (I would have). Instead, I searched deep and found a few descriptions in Chinese and ONE place where it was mostly Chinese, but the commands and response were in English. It was as a .jpg so no online translator would help. I am attaching the file - see for yourself.
If anyone wants to provide a full translation, that would be great.
For the record:
1. I found that the Arduino terminal works only if you set it so that there is no end of line character.
2. I couldn't get the module to pair with Apple Air Pods but it worked with everything else I tried, e.g. Bluetooth speakers and headphones.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?