2435 views|1 replies

35

Posts

0

Resources
The OP
 

[N32WB031-STB Development Board Review] 2-Bluetooth Transmission Test [Copy link]

[N32WB031-STB Development Board Review] 2-Bluetooth Transmission Test

  • Test items

N32WB031-STB V1.0 Bluetooth transparent transmission

  • Test environment

Development board: N32WB031-STB V1.0

Development environment: MDK

Mobile Bluetooth APP

MDK version: 5.36

Peripheral resources: The chip has built-in Bluetooth function

  • N32WB031 Bluetooth Introduction

N32WB031 adopts 32-bit ARM Cortex-M0 core, with the highest working frequency of 64MHz, supports BLE 5.1, transmit current 4.2mA, receive current 3.8mA, maximum transmit power +6dBm, receive sensitivity -96dBm 1Mbps, supports SIG Mesh, and can be both a master device and a slave device.

  • Test software environment construction

Bluetooth low-level development is somewhat difficult for beginners, especially stack operations. Here we directly use the N32WB031 routines, download the N32WB031 development environment integrated package N32WB03x_V1.3.0.zip and unzip it.

Download address: ftp://download.nationstech.com

1. Open the Bluetooth software RDTSS

Open the process file in the ..\Software Development Kit\N32WB03x_SDK_V1.3\projects\n32wb03x_EVAL\ble\rdtss\MDK-ARM directory, compile, download, and run. At this time, the LED2 of the N32WB031-STB development board is off, indicating that it is not connected to the mobile phone APP, as shown in Figure 1.

Figure 1 Bluetooth disconnected state

2. Open the Bluetooth test software on your phone

Select a mobile Bluetooth test software APP, download and install it, open the installed APP, scan and connect the Bluetooth named NS_RDTSS, then the LED2 of the N32WB031-STB development board is on, see Figure 2

Figure 2 Bluetooth connection successful

  • Transparent transmission test
  1. Serial port sends data to mobile phone

First, click NS_RDTSS in the APP to connect to the development board Bluetooth. Then click 0e8ac72e002 under Unknown Server's characteristics. Follow steps 1 and 2, as shown in Figure 3. Open the serial port software, connect to UART, and enter the information. In this case, it is "Welcome to National Technology N32WB031-STB". Click Send, as shown in Figure 4. The mobile phone receives the information, as shown in 3 in Figure 3.

Figure 3 APP settings

Figure 4 Serial communication software settings

  1. The mobile phone sends data to the serial port

First, click NS_RDTSS in the APP to connect to the Bluetooth of the development board. Then click 0e8ac72e001 under Unknown Server's characteristics. Follow steps 1 and 2 to enter the information. In this case, it is "N32WB031". Click Send, as shown in Figure 5. The serial port software receives the information, as shown in Figure 6.

Figure 5 APP segment operation steps

Figure 4 Information received by the serial communication software

  • Summarize

From the above examples, we can see that the National Technology's "N32WB031-STB Development Board" can easily realize Bluetooth data transparent transmission. On this basis, the sending and receiving data modules can be modified, and low-code writing can be applied to user programs, with high development efficiency.

This post is from RF/Wirelessly

Latest reply

Directly using the N32WB031 routine is indeed simple and fast   Details Published on 2023-6-22 08:26
 

6593

Posts

0

Resources
2
 

Directly using the N32WB031 routine is indeed simple and fast

This post is from RF/Wirelessly
 
 

Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

快速回复 返回顶部 Return list