DSPS Android version not showing the device number

⚠️
嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//www.wsdof.com/support. 我们将在未来几天内修复bug/优化搜索和标记。
16 posts / 0 new
最后一篇文章
Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
DSPS Android version not showing the device number

你好,

我使用的是PAN1740 USB加密狗板。我已将sps\u设备代码闪存到PAN1740。

(1)我可以在iOS DSPS应用中看到设备序列号。Howervr我看不到Android应用程序中的序列号。这个设施是Android的ot吗?

(2)我可以在使用BreakOut板时将数据从串行终端发送到应用程序。但是,当我使用我的自定义板时,我无法发送数据。我有TI的调试器,我在SWD接口(SWCLK和SWDIO)引脚中连接了PAN1740。可能是什么原因?。

(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?.

非常感谢。

Device:
PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. 使用iOS DSP移动应用程序时,您是否能够连接到平移?DSP移动应用程序可用于Android设备,因此您无法看到设备几乎奇怪。另外,你的意思是什么意思是“序列号”?您是否先阅读了DSP用户手册?
  2. If I am able to understand correctly from what you mentioned, when using our DK, you can connect from the DSPS application and you can send successfully data from a serial monitor. Did you use the iOS or the Android DSPS mobile application? In your custom board, I suppose that you are using the PAN, don’t you? Could you please let me know if in the DSPS device source code, you are using the extended sleep mode? If yes, you should use UART flow control (either software or hardware flow control), because you will not be able to wake up. When the device is configured in extended sleep mode, it will go into sleep between advertising or connection intervals. So, if you don’t have flow control, you will not be able to wake up. Regarding the debugger form TI, we are only be able to provide support only for our products. Be aware that in all our DKs and out products, the J-Link Lite is used.
  3. 我不完全确定我明白你的意思,但蓝牙LE堆栈是在ROM代码中实现的。如果你的问题是关于BLE堆栈。否则,请澄清。

谢谢,下午好

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
嗨,PM\U对话,

嗨,PM\U对话,

1.使用iOS DSP移动应用程序时是否能够连接到平移?

是的。我能够连接设备。此外,我也可以通过这个应用程序发送一些数据。喜欢一些字母数字。我可以在串行终端上看到它们。

The DSPS mobile application is available for Android devices, so it is little bit weird that you cannot see your device

No. I can see the device in Android also.

另外,你的意思是什么意思是“序列号”?

我的意思是设备的序列号祝福。在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.?.

2Did you use the iOS or the Android DSPS mobile application? In your custom board, I suppose that you are using the PAN, don’t you?

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.

是的,我正在用我的定制板潘。

Could you please let me know if in the DSPS device source code, you are using the extended sleep mode?

Yes it is in extended sleep mode.

const static sleep\u state\u t app\u default\u sleep\u mode=ARCH\u EXT\u sleep\u ON;

三. If your question is regarding the BLE stack. Otherwise, please clarify it.

我会在某个时候澄清它。我应该从我的经理获得澄清。非常感谢。

PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. 你能给我发一份快照,表达DSPS Android应用程序吗?如果设备正确地广告,您应该看到BD地址和设备名称。我无法在Android应用程序中看到任何序列号。
  2. 您在串行监视器中使用的波特率是什么?此外,如果您使用UART流控制,请您能告诉我吗?

谢谢,下午好。

附件:
Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
嗨,PM\U对话,

嗨,PM\U对话,

1. Here Im attaching the screenshot. I can see the device name and some other information(subscript) which i did not understnad. It is showing the name DIALOG-SPS. My requirement is to display some number like CL820-xxxx so that we can identify the product. Previously we have some devices with serial number CL820-xxxx. So this project will be the next version to them. We can easily understand. Sorry for my wrong communication. I was also thought to display the serial number of BLE. But our manager intension is to display our product number instead of DIALOG-SPS.

2我用的是115200。我也尝试过其他波特率。PAN1740 USB加密狗仅显示部分数据。

当我使用我的客户端,没有数据正在传输。在代码中,我改变了延长的睡眠才能睡觉。仍然没有变化。

I did not use any UART flow control. I have just read that document. I will use UART flow control.

如果我使用UART软件流控制,我可以有代码片段请?。

If I use UART Hardware flow control, I should only connect the hardware like Rx,Tx,CTS and RTS or should I do any other things?.

三. 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流量控制也是解决这个问题的方法?。非常感谢。

附件:
PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. “DIALOG-SPS”是设备名称,你可以哈ve your own device name by changing the USER_DEVICE_NAME macro in user_config.h file.
  2. Since you are using extended sleep mode, you need to have hardware flow control and the CTS/RTS/TX/RX pins should be connected. You could find the UART configuration in user_periph_setup.h file. If you are using sleep mode with software flow control or without flow control, you will not be able to wake up, because the device goes into sleep between advertising or connection intervals. The appropriate macros for enabling each one flow control are locates in user_periph_setup.h. The hardware follow control is by default enabled.

#定义CFG\u UART\u HW\u FLOW\u CTRL

#undef CFG_UART_SW_FLOW_CTRL

  1. 您能在调试模式下运行代码并尝试从DSPS移动应用程序连接吗?代码在什么地方?

谢谢,下午好

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
嗨,PM\U对话,

嗨,PM\U对话,

1非常感谢。

2Since you are using extended sleep mode, you need to have hardware flow control and the CTS/RTS/TX/RX pins should be connected.

如果我用ARCHïu SLEEPïu OFF。然后我还应该使用硬件/软件流控制。

I have some interface / connection doubts.

For example>

我想实现floe控制软件。

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.

当我尝试刷新sps_device代码时,它会说RDDI-DAP错误。如何将DA14850引脚的RXD和TXD引脚连接到MCU?或调试器部分?

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
#定义GPIO\U UART1\U RX\U引脚GPIO\U引脚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

三。当我尝试在调试模式下运行设备时,它正在尝试恢复调试连接。并且还写到设备可能进入dep睡眠模式,应用程序无法退出。现在的设备是ARCH\u EXT\u SLEEP\u ON。

当我将其更改为arch_deep_sleep_on时。我甚至不在蓝牙列表中看到设备。

When I used ARCH_SLEEP_OFF then I can see the device like ARCH_EXT_SLEEP_ON. In these both cases I am unable to pair device. Please help me out this situation.

Flow control is the reason for this also. Thank you.

PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. Glad that you are able to change the device name. If you found the answer useful, please mark it as “accepted”
  2. In case you are not using sleep mode, the flow control is not necessary. However, the usage of flow control is recommended in order to have the correct reception of the data over UART. If you don’t have any GPIO available for the CTS/RTC (hardware flow control) and you are not using extended sleep mode, you could use software flow control (XON/XOF) by undefining CFG_UART_HW_FLOW_CTRL and defining CFG_UART_SW_FLOW_CTRL macros in user_periph_setup.h. The software flow control is already implemented in DSPS reference application code. In case of extended sleep mode, the hardware flow control is necessary. Regarding the connection with MSP432, this is up to you, since you provide support only for our products. Normally, you should have the flowing connections:
  • 泛TXà MSP接收
  • Pan Rxàmsptx
  • PanRTSàMSPCTS
  • 平移CTSà MSP RTS系统
  1. 深度睡眠模式不支持在需求方参考ence application code. Only active and extended sleep mode are supported. Generally, if the DA14580 is configured in deep sleep mode, the device must boot from OTP, so the OTP must be burnt with the binary image. OTP stands for One Time Programmable, thus you can’t erase and re-write the OTP multiple times, but you can only flip the bits that are still set to 0 and turn them to 1. Could you please clarify this question: “When I try to run the device in debug mode, it is trying to recover the debug connection”?

谢谢,下午好

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
嗨,PM\U对话,

嗨,PM\U对话,

这里我不使用MCU。我正在使用developemnt板的调试器部分。

1. I just wanted to pair the BLE to my PC. I am not using the sleep mode.

我改变了这条线

const static sleep\u state\u t app\u default\u sleep\u mode=ARCH\u sleep\u OFF;

我也没有使用UART。我刚刚将Pan1740的SWD引脚连接到调试器的SWD引脚。在我开始和停止在Keil调试后,我试图在PC上连接BLE。它正试图连接和推动一段时间它说尝试连接您的设备。

问题是什么。为什么它不配对。该设备不在睡眠模式下。

2另一方面我尝试了软件流控制,在调试器部分我有SWD和RXD,TXD的引脚。我已经将PAN1740的RXD和TXD引脚分别连接到调试器部分的TXD和RXD引脚。

Then the code is not running. The keil shows RDDI-DAP error.

我无法配对设备。如果我这样做,那么我会尝试进行通信(软件调试)。

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
你好,

你好,

Software Flow control:

我已经关闭了睡眠模式

const static sleep\u state\u t app\u default\u sleep\u mode=ARCH\u sleep\u OFF;

然后我改变了宏:

#define CFG_UART_SW_FLOW_CTRL
#undef cfg_uart_hw_flow_ctrl.

稍后我已将BLE的引脚RXD连接到调试器的TXD和TXD的BLE到调试器的RXD。

接下来我试图打开和关闭杜巴。我无法做到。

它显示了Keil的RDDI-DAP错误。如果我断开RXD和TXD引脚,那么我能够打开和关闭调试并能够看到设备。

我无法配对设备。当我连接RXD和TXD时,我不明白为什么它会显示错误RDDI-DAP。

PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. “I am using the Debugger part of the development board.” : The SWD is been using for debug purposes. You could download firmware into the Syst-RAM as well. Could you please clarify what do you mean with that? Also, when downloading firmware into the System-Ram, after any kind of reset the, It will not be retained, so you need to re-download it. Did you run you code with hot attached the debugger? Could you please check if the coed gets stuck somewhere?
  2. “我只是想把BLE和我的电脑配对。”我需要一些澄清。你使用的是个人电脑应用程序吗?
  3. “Also I am not using the UART. I have just connected the SWD pins of PAN1740 to SWD pins of debugger” : This is wrong, because the DSPS is using UART
  4. “Other side I tried the software flow control , On the debugger section I have pins for SWD and RXD,TXD. I have connected RXD and TXD pins of PAN1740 to TXD and RXD pins of debugger part respectively.” ; This is not software flow control! The SW flow control is a software implementation of HW flow control and instead of CTS/RTS you will have XOF/XON.
  5. “那么代码没有运行。keil显示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.

谢谢,下午好

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
嗨,PM\U对话,

嗨,PM\U对话,

1. “I am using the Debugger part of the development board.” : The SWD is been using for debug purposes. You could download firmware into the Syst-RAM as well. Could you please clarify what do you mean with that?

对。我正在通过SWD将固件下载到Sys RAM。我想说我只使用调试器部分是因为我没有使用开发板(MSP-EXP432P401R)的MCU部分。在这里我的疑问是,我应该使用MCU部分下载固件到BLE\还是只能使用调试器部分下载固件?。

I have got the answer. I no need to use the MCU on development board.

2“我只是想把BLE和我的电脑配对。”我需要一些澄清。你使用的是个人电脑应用程序吗?

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.

在阅读我们的论坛后,我也几乎得到了答案。我应该使用ble_app_security项目与PC配对。我已经做了。在这里,我的努力是在我的PC和BLE之间进行串行通信。首先,我们需要将设备配对,然后我们应该进行串行通信。

“我也没有使用UART。我刚刚将Pan1740的SWD引脚连接到调试器的SWD引脚“:这是错误的,因为DSP正在使用UART

这也是我的错误。我从我们应该使用BLE_APP_Security项目的论坛中了解,然后必须在项目中实现UART功能,以在Teraterm串行Termianl上进行串行通信。在这里,我问你是对的吗?我们有没有BLE的项目可以进行串行通信吗?

4.“Other side I tried the software flow control , On the debugger section I have pins for SWD and RXD,TXD. I have connected RXD and TXD pins of PAN1740 to TXD and RXD pins of debugger part respectively.” ; This is not software flow control! The SW flow control is a software implementation of HW flow control and instead of CTS/RTS you will have XOF/XON.

带UART的ble\ U app\ U安全还需要硬件流控制?的软件实现?。我在user\u peripheral.h文件中没有看到这些宏。还有一个疑问,您之前提到,对于软件流控制,我们只需要有RXD和TXD连接,并且设备不能是n睡眠模式,我们还必须在user\u peripheral.h文件中将宏从HW更改为SW。然后在硬件流程控制的软件实现中自动进行通信。我说得对吗?。

5.“那么代码没有运行。keil显示RDDI-DAP错误“:你能给我一个截图吗?

I still see this error. When I connect only SWD pins I can able download the firmware to Sys-Ram . Additionally when I connect RXD and TXD pins to have serial communication then I see this RDDI DAP error in the keil. I have also asked in some other forums. One guy asked me to use level shifter if the logic level of MCU and BLE or different. Does it make any sens?. Do you think the logic level of BLE is different?. When i measured the logic level at RXD pin of debugger(without connecting the ble), I see 3.3V.

Im stuck here at serial communication. Im also attaching the screenshot. Please find it. Thank you.

附件:
Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
你好,

你好,

Here I have connected RX and TX pins to the P0.5 and P0.4 respectively.

#define GPIO_UART1_TX_PIN GPIO_PIN_4
#define GPIO_UART1_RX_PORT GPIO_PORT_0
#定义GPIO\U UART1\U RX\U引脚GPIO\U引脚5

PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

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?

  1. No need to use the MCU on development board. Generally, I our design we are using the J-Link Lite.
  2. Do you want to print the information you want to a serial monitor? If yes, you could user arch_printf() and printing you data to a serial monitor via UART2.

  • #在da1458x\u config\u basic.h中定义CFG\u PRINTF
  • 更改fw的uart端口,并将uart\ U TX端口/引脚分配给P04,将uart\ U RX端口/引脚分配给P05(确保您更改的配置位于HW\ U CONFIG\ U PRO\ U DK下,并且该板在HW\ U CONFIG定义中声明)。

#elif硬件配置\u专业\u 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.

#定义UART2\U RX\U GPIO\U引脚GPIO\U引脚5

  • 如果您有我们的另一个DK,或者您正在使用自定义板,请使用适当的GPIO修改上述定义

  • 将arch\u console.h文件包含到应用程序中
  • Invoke Arch_Printf()
  • Change the baud rate of the terminal into 115200.

  1. 您可以在SDK的ble\u app\u安全示例中使用arch\u printf()函数。如果您想在您的项目中添加任何安全功能,这是SDK的适当示例。
  2. In ble_app_security there is not need of UART flow control. As I mentioned before, you can use the arch_printf(). Please follow CFG_PRINTF macro.
  3. In our designs we are using the J-Link Lite, so the “options for target” should be like the attached screenshots. Do you have the J-Link lite in your design?

谢谢,下午好

Gandhi
离线
最后一次见到:1 year 5 months ago
已加入:2019-05-02 13:00
Dear PM_Dialog,

Dear PM_Dialog,

先前我以前用于SPS_DEVICE项目。当我发现这个项目时,我们只能与DSPS应用程序通信,然后我切换到BLE_APP_SECURY。我当前的任务是测试BLE和PC(TERATERM终端)之间的串行通信。

我们可以在sps\u设备项目上测试串行通信吗?。你说我应该实现流量控制来进行串行通信。你还说对于ble\u app\u安全项目,我不需要流量控制。

因此,我正在使用ble_app_security项目。我在最近一天说过所有修改。

like

#在da1458x\u config\u basic.h中定义CFG\u PRINTF

更改fw的uart端口,并将uart\ U TX端口/引脚分配给P04,将uart\ U RX端口/引脚分配给P05(确保您更改的配置位于HW\ U CONFIG\ U PRO\ U DK下,并且该板在HW\ U CONFIG定义中声明)。

调用ARCH_PRINTF()函数以打印例如设备启动广告时。

包括arch\u 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.

附件:
PM\U对话框
离线
最后一次见到:2天17小时前
工作人员
已加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

尝试将SDK解压到一个新的路径文件夹中,然后重新安装Keil工具和JLink。之后,尝试构建项目。你能把它们建对吗?请注意,我无法复制你的问题,所以请尝试这个,让我知道。

c:\myWorkshop\DA1458x\u SDK\5.0.4版本

Also please try to disable all the break points you have set inside your code.

谢谢,下午好