Smart network design of bluetooth module portable bluetooth speakers
Smart network design of bluetooth module portable bluetooth speakers
In the Bluetooth data transmission system, the PC side and the single-chip microcomputer side can be used as master or slave devices respectively. Here, the PC is used as the master device to initiate a query, the single-chip microcomputer is used as the slave device, and the PC sends control commands to the single-chip microcomputer. bjbjaudio.com
The operation of the program is carried out in the order of turning on the bluetooth device, initializing the bluetooth, querying the nearby bluetooth, establishing a connection, sending data/files, disconnecting the connection, and turning off the bluetooth, which is triggered by the buttons in the operation area. After the Bluetooth initialization is completed, the local Bluetooth address will be displayed in the information area. After the query is completed, the queried remote Bluetooth address will be displayed in the information area, and then the connection can be initiated. Different ACL grouping types, such as DMI, DM3, etc., can be set by parameters in the connection establishment instruction. Different ACL packet types correspond to different time slots, and different transmission rates and maximum transmission distances can be obtained. After the connection is established successfully, the information area "Bluetooth Status" will show that the connection has been established before sending data and files. During data transmission and reception, the information area will also display the sending count, the receiving count, and the number of ACL packets that can be sent currently. bjbjaudio.com
<a style="opacity:0.0;color:#ffffff"> portable bluetooth speakers</a> <a style="opacity:0.0;color:#ffffff"> portable bluetooth speakers</a>
In this system, the PC side uses a Bluetooth USB adapter, the specification is Bluetooth 1.1 version, the default transmission rate is 57600bps, and the maximum supported transmission rate is 1Mbps; the microcontroller side uses the Bluetooth module ROK101008, the specification is Bluetooth 10b version, The default transmission rate is 57600bps, and the maximum supported transmission rate is 720Kbps; while the microcontroller side uses serial port 0 to communicate with the Bluetooth module, and the maximum transmission rate of serial port 0 is 115200bps. It can be seen that the communication bottleneck of the system is the serial port 0 of the single-chip microcomputer, and the processing capability of the single-chip microcomputer also largely determines the final data transmission rate of the system. For the sake of convenience, the Bluetooth HCI default baud rate of 57600bps is used between the microcontroller and the Bluetooth module in the system. In specific applications, the baud rate can be reset through a specific HCI command. In the process of data transmission, the flow control method adopted is the flow control mechanism of HCI. The underlying implementation of the specific flow control is completed by the HCI firmware inside the Bluetooth chip, and only needs to be controlled by a specific HCI command in the program. bjbjaudio.com
<a style="opacity:0.0;color:#ffffff"> portable bluetooth speakers</a> <a style="opacity:0.0;color:#ffffff"> portable bluetooth speakers</a>