你会发现在user_peri UART的配置ph_setup.h. So, you have to connect he STM32F4 to that GPIOs. If you would like to have other UART pins, you have to modify the user_periph_setup.h. The DSPS provides both software (XON/XOFF) and hardware (RTS/CTS) flow control schemes, respectively selected by the CFG_UART_SW_FLOW_CTRL and CFG_UART_HW_FLOW_CTRL definitions in the user_periph_setup.h configuration file. The selection of the UART baud rate is done by the setting the value of UART_SPS_BAUDRATE definition in the uart_sps.h header file to the required baud rate. The available baud rates 115200, 57600, 38400, 19200, 9600. Both central and peripheral devices can operate either in Active mode or Extended sleep, please check app_default_sleep_mode in user_config.h. If you are using extended sleep mode, you have to use wither hardware or software flow control. Otherwise the device will not wake up. Since you have correctly established UART connection between DA1458p and STM32F4, you could send data through UART and the DSPS will transmit them over the air. Regarding the android application, you should download the DSPS android application. The Android application can be found in Google’s ‘Play Store’ and easily installed from there as any other android application. To find the application, user can search for ‘DSPS Dialog’. For more information, I would suggest you to read theUM-B-038:对话框串行端口配置文件的用户手册用户手册。
嗨对话框。 1.我检查了STM32 = 115200的Baurate,就像所提供的对话框的DSP示例一样。但不传输接收数据。 2. I do not change the code, and keep the configuration of DSPS example (dsps sps_divice keil5) 并在STM32F4上设置PIN引脚。 我需要STM32F4的代码流CTROL(CTS / RTS)软件,而不是使用HARD_FLOW_CTROL代码。 3. PC <--- USB - > STM32F4 <--- UART - > DA14580 < - DSPS - > Android 我需要将DA14580连接到PC吗? 或者只连接上面的图表?
You should use the sps_device project. Could you please share the UART connection between DA14580 and STM32F4? Can you please clarify if it is the following?
嗨Phanquocuong1520022,
感谢您在蓝牙界面论坛上发布您的问题。如果您使用的是我们的任何开发板,或者您正在使用基于DA14580设备的自定义板,请澄清您吗?首先,您应该正确连接DA14580和STM32F4之间的UART。默认情况下,DSP参考应用程序代码使用以下GPIO用于UART配置:
你会发现在user_peri UART的配置ph_setup.h. So, you have to connect he STM32F4 to that GPIOs. If you would like to have other UART pins, you have to modify the user_periph_setup.h. The DSPS provides both software (XON/XOFF) and hardware (RTS/CTS) flow control schemes, respectively selected by the CFG_UART_SW_FLOW_CTRL and CFG_UART_HW_FLOW_CTRL definitions in the user_periph_setup.h configuration file. The selection of the UART baud rate is done by the setting the value of UART_SPS_BAUDRATE definition in the uart_sps.h header file to the required baud rate. The available baud rates 115200, 57600, 38400, 19200, 9600. Both central and peripheral devices can operate either in Active mode or Extended sleep, please check app_default_sleep_mode in user_config.h. If you are using extended sleep mode, you have to use wither hardware or software flow control. Otherwise the device will not wake up. Since you have correctly established UART connection between DA1458p and STM32F4, you could send data through UART and the DSPS will transmit them over the air. Regarding the android application, you should download the DSPS android application. The Android application can be found in Google’s ‘Play Store’ and easily installed from there as any other android application. To find the application, user can search for ‘DSPS Dialog’. For more information, I would suggest you to read theUM-B-038:对话框串行端口配置文件的用户手册用户手册。
谢谢,PM_DIALOG.
感谢您的帮助。
let me ask how can i check the data transmission between STM32 with ongoing DA, and the data from STM32F4 sent to the phone?
我的联系:
PC <---USB---> STM32F4 <--- uart--> DA <--DSPS--> Android
连接我的UART:
Tx:P0_4 <---> Rx:PA3(STM32)
RX:P0_5 <---> TX:PA2(STM32)
RTS:P0_3<---> CTS: PA1 (STM32)
CTS:P0_2 <---> RTS:PA0(STM32)
我用工具发送它:赫拉克勒斯
但不显示STM32和Android之间的数据传输。
与我已成功连接的内容:DA与Android
谢谢,请帮帮我!
你好,
我认为参考设计名为无附庸者将满足您的要求。您所要做的就是将无附加固件刻录到580中,并通过UART命令将您的数据发送到IT。有关更多信息,请单击以下链接:
https://www.dialog-seminile.com/produ雷电竞官网登录cts/smartbondtm-codeless-commands.
布尔
cyibin.
你能帮助我吗?section ctrol Flow?
由于CTS / RTS,我无法在DA和STM32F4之间发送数据。
嗨Phanquocuong1520022,
您使用的是DSP参考设计,不是吗?或者你正在使用无附庸如为,因为Cyibin建议你?这是您对流量控制的问题吗?你能探讨UART线吗?如果您没有使用DA14580连接STM32F4,是否可以发送/接收数据?我建议您连接串行监视器而不是STM32F4以及THY发送/接收数据到DSP移动应用程序。
谢谢,PM_DIALOG.
连接。
PC <---> DA14580 < - DSPS-> Android
我成功通过DSP应用程序在Android和Hercules(PC)之间传输数据。
谢谢,古红
嗨Phanquocuong1520022,
那挺好的!所以,当你用DA14580连接STM32F4时,可以探讨UART线吗?您能否确保您使用双方的正确波特率?
谢谢,PM_DIALOG.
嗨对话框。
1.我检查了STM32 = 115200的Baurate,就像所提供的对话框的DSP示例一样。但不传输接收数据。
2. I do not change the code, and keep the configuration of DSPS example (dsps sps_divice keil5)
并在STM32F4上设置PIN引脚。
我需要STM32F4的代码流CTROL(CTS / RTS)软件,而不是使用HARD_FLOW_CTROL代码。
3. PC <--- USB - > STM32F4 <--- UART - > DA14580 < - DSPS - > Android
我需要将DA14580连接到PC吗?
或者只连接上面的图表?
嗨对话框,
连接DA14580和STM32F4时
在DSP示例中有2个选择
1. SPS_DEVICE.
2. SPS_HOST.
我应该使用1或2的选项?
谢谢,古红
嗨Phanquocuong1520022,
You should use the sps_device project. Could you please share the UART connection between DA14580 and STM32F4? Can you please clarify if it is the following?
[STM] RX: PA2 < ---- > [580] TX: P0_4
[STM]τx:PA3 <----> [580] RX:P0_5
[STM] CTS:PA1 <----> [580] RTS:P0_3
[STM] RTS:PA0 <----> [580] CTS:P0_2
您是否探讨了UART行以检查STM是否已成功将数据传输到DA14580?
谢谢,PM_DIALOG.