Hi,
我正在使用Pan1740 USB加密狗板。我将SPS_DEVICE代码闪烁到PAN1740。
(1)我能看到在IOS设备序列号需求方app. Howervr I can not see the serial number in android app. Is this facility is ot available in android?.
(2) I can able to send data from serial terminal to app when I am using the breakout board. However I am not able to send the data when i use my custom board. I have debugger from TI and I have connected PAN1740 in SWD interface (SWCLK and SWDIO) pins. What could be the reason?.
(3) I have a message from my manager that is " I see that this module has no commands and something implemented instead. However if you change the flash of the module how is the stack certification process kept? And the radio certifications?"
Here I just burn the System RAM. Do we need to make the above certifications in order to burn System RAm or SPI Flash or OTP?.
谢谢你。
嗨甘地,
谢谢,PM_DIALOG.
嗨pm_dialog,
1. Are you able to connect to the PAN when using the iOS DSP mobile application?
是的。I am able connect the device. Also i can send some data through this app. Like some alphabets numbers. I can see them on serial terminal.
The DSPS mobile application is available for Android devices, so it is little bit weird that you cannot see your device
不,我还可以在Android中看到设备。
In addition, what do you mean with the “serial number”?
我的意思是设备的序列号祝福。在iOS应用程序I can see something like A92B3191-3A43-F4ED-ADFC-67 and so on. I thought this is the serial number of the BLE device. This information I dont see in Android. If this is something else, Is there any way to see the serial number of the device in the android app.?.
2。您是否使用iOS或Android DSPS移动应用程序?在您的定制板中,我想你正在使用锅,不是吗?
I have both apps iOS and android. In iOS if i enter 100 alphabets in the app, I can see up to 50 in the serial terminal. In Android it is even less.
是的,我在我的定制板中使用平底锅。
如果您在DSP设备源代码中,请您能告诉我,您可以使用扩展的睡眠模式吗?
是的,它处于扩展睡眠模式。
const static sleep_state_t app_default_sleep_mode = arch_ext_sleep_on;
3.。如果您的问题对BLE堆栈。否则,请澄清它。
I will clarify it after sometime. I should get the clarification from my manager. Thank you.
嗨甘地,
谢谢,PM_Dialog。
嗨pm_dialog,
在这里我附上屏幕截图。我可以看到我不忽视的设备名称和一些其他信息(下标)。它显示名称对话框-SP。我的要求是显示像CL820-XXXX这样的数量,以便我们可以识别产品。以前我们有一些带有序列号CL820-XXXX的设备。所以这个项目将是他们的下一个版本。我们很容易理解。抱歉我的错误沟通。我也被认为是展示序列号。但我们的经理内涵是展示我们的产品编号而不是Dialog-SP。
2.我使用了115200.我也试过其他讨厌。仅使用Pan1740 USB加密狗显示部分数据。
No data is transferring when I use my custome board. In the code I have changed the extended sleep to sleep off. Still no change.
I did not use any UART flow control. I have just read that document. I will use UART flow control.
如果我使用UART软件流控制,我可以有代码段pls吗?
如果我使用UART硬件流量控制,我应该只连接RX,TX,CTS和RT等硬件,或者我应该做任何其他东西吗?
3.。Today I was trying to pair the PC to my custom board. I am able to see the device on PC(DIALOG-SPS). When ever I try to pair /connect them, It says connecting for some time and then try to connect again. I have attached the image.
我怎样才能做到这一点?。UART流量控制也是解决方案?谢谢你。
嗨甘地,
#define cfg_uart_hw_flow_ctrl.
#undef CFG_UART_SW_FLOW_CTRL
谢谢,PM_DIALOG.
嗨pm_dialog,
1.谢谢。
2。由于您使用的是扩展睡眠模式,您需要具有硬件流控制,并且应连接CTS / RTS / TX / RX引脚。
如果我使用ARCH_SLEEP_OFF。然后我也应该使用硬件/软件流控制。
I have some interface / connection doubts.
For example>
我想实现软件浮子控制。
I have connected my DA14850 device to the MSP432 EXP Breakout board. The MSP breakout board has two parts one is debugger part and another is Microcontroller part. I have connected SWDIO ,SWDCLK pins of DA14850 to the SWDIO ,SWDCLK pins of Debugger and also RXD a,TXD pins of DA14850 to the RXD ,TXD pins of Debugger part.
When I try to flash the sps_device code it is saying RDDI-DAP error. How can I connect the RXD and TXD pins of DA14850 pins to the MCU? or Debugger part?.
If I want to have Hardware Flow Control:
我可以将像下面的引脚连接起来吗?
#define GPIO_UART1_TX_PORT GPIO_PORT_0
#define GPIO_UART1_TX_PIN GPIO_PIN_4
#define gpio_uart1_rx_port gpio_port_0.
#define gpio_uart1_rx_pin gpio_pin_5.
#define gpio_uart1_rts_port gpio_port_0.
#define GPIO_UART1_RTS_PIN GPIO_PIN_3
#define gpio_uart1_cts_port gpio_port_0.
#define GPIO_UART1_CTS_PIN GPIO_PIN_2
3.当我尝试在调试模式下运行设备时,它正在尝试恢复调试连接。并且还写在那里,设备可能进入DEP睡眠模式,应用程序无法从中出来。此刻的设备是ARCH_EXT_SLEEP_ON。
When I changed that to ARCH_DEEP_SLEEP_ON. I dont even see the device in the bluetooth list.
当我使用Arch_sleep_off时,我可以看到arch_ext_sleep_on等设备。在这两种情况下,我无法配对设备。请帮助我解决这种情况。
Flow control is the reason for this also. Thank you.
嗨甘地,
谢谢,PM_DIALOG.
嗨pm_dialog,
在这里,我没有使用MCU。我正在使用Developicht Loard的调试器部分。
我只是想把ble搭配给我的电脑。我不使用睡眠模式。
I have changed the line
const static sleep_state_t app_default_sleep_mode = arch_sleep_off;
Also I am not using the UART. I have just connected the SWD pins of PAN1740 to SWD pins of debugger. After I start and stop the debugging in keil, I tried to connect the BLE on PC. It is trying to connect and afer some time it says try connecting your device.
What is the problem. Why it is not pairing. The device is not in sleep mode.
2.另一边我尝试了软件流控制,调试器部分我有用于SWD和RXD,TXD的引脚。我分别将PAN1740的RXD和TXD引脚连接到TXD和RXD PIZ的调试器部分。
Then the code is not running. The keil shows RDDI-DAP error.
Im unable to pair the device. If i do that then I will try to make communication (software debug).
Hi,
Software Flow control:
I have turned off the sleep mode by
const static sleep_state_t app_default_sleep_mode = arch_sleep_off;
then I have changed the macros:
#define CFG_UART_SW_FLOW_CTRL
#undef CFG_UART_HW_FLOW_CTRL
Later I have connected the pins RXD of BLE to the TXD of Debugger and TXD of BLE to RXD of debugger.
next I have tried to made dubug on and off. I could not make it.
It is showing RDDI-DAP error by keil. If I disconnect the RXD and TXD pins then Im able to make debug on and off and able to see the device.
我无法配对设备。我无法弄清楚为什么它在连接RXD和TXD时显示错误RDDI-DAP。
嗨甘地,
Did you have a look at DSPS user manual? Initially, you should connect the UART pins of the PAN to the FTDI’s pins in order to establish the connection between the PAN and the PC. After that you should decide which flow control you will use. Please have a look at the DSPS user manual. Then, download firmware into the Sys-RAM and hot attach the debugger and try to connect with the DSPS mobile application. To be honest, I not completely understand what you have done and which are the connections that you are using. I would strongly recommend you to read the DSPS user manual.
谢谢,PM_DIALOG.
嗨pm_dialog,
1.“我正在使用开发板的调试器部分。”:SWD用于调试目的。您也可以将固件下载到SYST-RAM中。你能澄清你的意思吗?
是的。我正在通过SWD将固件下载到SYS-RAM。我的内容只要使用调试器部分即可,我不使用开发板的MCU部分(MSP-EXP432P401R)。在这里我的怀疑是,如果我使用MCU部分将固件下载到BLE_或我只能使用调试器部件下载固件?
I have got the answer. I no need to use the MCU on development board.
2。“我只是想把BLE与我的电脑配对。”我需要一些澄清。您在使用PC应用程序吗?
Here Im not using any PC application. On the PC for example. If I want to use my phone via bluetooth, first we need to pair the device by entering some password. Then they will be paired and available for file or data sharing. This is waht my question was.
I have also almost got an answer after reading our forum. I should use ble_app_security project to pair with the PC. I have done it. Here My inension is to have a serial communication between my PC and BLE. For that first we need to pair the devices and then we should make serial ommunication.
3.。“我也没有使用UART。我刚刚将Pan1740的SWD引脚连接到调试器的SWD引脚“:这是错误的,因为DSP正在使用UART
This is also my mistake. I came to know from our forums that I should use ble_app_security project and then must implement the UART functionality in the project to make serial communication on teraterm serial termianl. Here I ask you that is it right?. Do we have any project with ble which can make serial communication?.
4.“另一边我尝试了软件流控制,在调试器部分上我有用于SWD和RXD,TXD的引脚。我将Pan1740的RXD和TXD引脚连接到调试器部分的TXD和RXD引脚。“;这不是软件流量控制!SW流量控制是HW流控制的软件实现,而不是CTS / RTS,您将拥有XOF / XON。
BLE_APP_SECURY与UART还需要软件实现硬件流控制?我没有看到user_peripheral.h文件中的宏。另外一个疑问,你提到的是,对于软件流控制,我们只需要拥有rxd和txd连接和设备不得是n睡眠模式,我们必须将宏从hw中的ust_peripheral.h文件中的sw更改为sw。然后它自动进行HW流量控制的软件实现中的通信。我对吗?。
“然后代码未运行。Keil显示RDDI-DAP错误。“:你能寄给我一个截图吗?
我仍然看到这个错误。当我只连接SWD引脚时,我可以将固件下载到SYS-RAM。此外,当我连接rxd和txd引脚时具有串行通信,那么我会在keil中看到此RDDI DAP错误。我还在其他论坛上询问。如果MCU和BLE或不同的逻辑级别,有一个人要求我使用级别移位器。它是否有任何感觉?你认为ble的逻辑水平是否有所不同?当我在调试器的RXD引脚处测量逻辑电平(无需连接BLE)时,我会看到3.3V。
Im stuck here at serial communication. Im also attaching the screenshot. Please find it. Thank you.
Hi,
这里我将Rx和Tx引脚连接到P0.5和P0.4。
#define GPIO_UART1_TX_PIN GPIO_PIN_4
#define gpio_uart1_rx_port gpio_port_0.
#define gpio_uart1_rx_pin gpio_pin_5.
嗨甘地,
I am little bit confused, so can you kindly create new forum threads with your issues? Could you please let me know which project are you currently using, and which is your issue? Are you still working on DSPS reference application code?
#elif hw_config_pro_dk.
#define UART2_TX_GPIO_PORT GPIO_PORT_0
#define UART2_TX_GPIO_PIN GPIO_PIN_4
#define UART2_RX_GPIO_PORT GPIO_PORT_0
#define uart2_rx_gpio_pin gpio_pin_5.
谢谢,PM_DIALOG.
亲爱的pm_dialog,
Acually previously I used to work on sps_device project. When I found with this project we can only able to communicate with DSPS app then I switched to ble_app_security. My current task is to test the serial communication between BLE and PC ( teraterm terminal ).
我们可以在SPS_DEVICE项目上测试串行通信吗?你说我应该实现流量控制来具有串行通信。您还向BLE_APP_Security项目表示,我不需要流量控制。
Hence I was using ble_app_security project. I have made all modification you said on other day.
喜欢
#define cfg_printf在da1458x_config_basic.h中
更改FW的UART端口,并将UART_TX端口/引脚分配给P04和UART_RX端口/引脚到P05(确保已更改的配置在HW_CONFIG_PRO_DK下,这是在HW_CONFIG定义中声明的电路板)。
Invoke the arch_printf() function in order to print for example when the device starts advertising.
包含ARCH_CONSOLE.H文件。
However I do not see message on serial terminal. I have an error when I made debug on keil. that error is
***错误122,第17行:AGDI:内存读取失败(0x000000C6)
I have also attached the screenshot. Can you say me the soluton for this error.
I dont see that error for sps_device project. If I make above mentioned procedure for sps_device project, Can i see the serial data?. Thank you.
嗨甘地,
尝试将SDK解压缩在新推断的路径文件夹中,然后重新安装Keil工具和jlink。之后,尝试构建项目。你能否建立正确的?请注意,我无法复制您的问题,所以请尝试这并让我知道。
C:\ MyWorkshop \ da1458x_sdk \ 5.0.4
Also please try to disable all the break points you have set inside your code.
谢谢,PM_DIALOG.