DSPS Android版本未显示设备编号

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.wsdof.com/support。We’ll be fixing bugs / optimising the searching and tagging over the coming days.
16个帖子/ 0新
Last post
Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
DSPS Android版本未显示设备编号

Hi,

I am using PAN1740 USB Dongle board. I have flashed sps_device code in to 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)我有一个来自我的经理的消息,即“我看到这个模块没有命令,而是改为实施的东西。但是,如果更改模块的闪光灯,堆栈认证过程如何保留?和无线电认证?”

在这里,我只需刻录系统RAM。我们是否需要进行上述认证,以刻录系统RAM或SPI Flash或OTP?

谢谢你。

设备:
PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. Are you able to connect to the PAN when using the iOS DSP mobile application? The DSPS mobile application is available for Android devices, so it is little bit weird that you cannot see your device. In addition, what do you mean with the “serial number”? Have you read the DSPS user manual first?
  2. 如果我能够从您所提到的正确理解,使用我们的DK时,可以从DSPS应用程序连接,您可以从串行监视器发送成功数据。您是否使用iOS或Android DSPS移动应用程序?在您的定制板中,我想你正在使用锅,不是吗?如果您在DSP设备源代码中,请您能告诉我,您可以使用扩展的睡眠模式吗?如果是,则应使用UART流量控制(软件或硬件控制),因为您将无法唤醒。当设备配置为扩展睡眠模式时,它将在广告或连接间隔之间进行睡眠。所以,如果你没有流量控制,你将无法醒来。关于调试器表格TI,我们只能为我们的产品提供支持。雷电竞官网登录请注意,在所有DKS和Out产品中,使用J-Link Lite。雷电竞官网登录
  3. I am not completely sure I get what you mean, but Bluetooth LE stack is implemented in the ROM code. If your question is regarding the BLE stack. Otherwise, please clarify it.

Thanks, PM_Dialog

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

1. Are you able to connect to the PAN when using the iOS DSP mobile application?

Yes. 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.

DSPS移动应用程序可用于Android设备,因此您无法看到您的设备有点奇怪

No. I can see the device in Android also.

In addition, what do you mean with the “serial number”?

我的意思是设备BLE的序列号。在iOS应用程序中,我可以看到类似A92B3191-3A43-F4ED-ADFC-67等的东西。我认为这是BLE设备的序列号。此信息我在Android中没有看到。如果这是别的,是否有任何方法可以看到Android应用程序中设备的序列号。?。

2.您是否使用iOS或Android DSPS移动应用程序?在您的定制板中,我想你正在使用锅,不是吗?

我有aps ios和Android。在iOS中,如果我在应用程序中输入100个字母,我可以在串行终端中看到最多50个。在Android中,它更少。

yes I am using PAN in my custom board.

如果您在DSP设备源代码中,请您能告诉我,您可以使用扩展的睡眠模式吗?

Yes it is in extended sleep mode.

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
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. Could you please send me a snapshot form the DSPS Android application? If the device is advertising correctly, you should see the BD address and the device name. I am not able to see any serial number in the Android application.
  2. What baud rate are you using in the serial monitor? Also, could you please let me know if you are using UART flow control?

Thanks, PM_Dialog.

Attachment:
Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

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. I am using 115200. Also I have tried with other Baudrates. Only partial data is displaying with PAN1740 USB dongle.

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.

我没有使用任何UART流控制。我刚读过该文件。我将使用UART流量控制。

If I use UART Software flow control, can i have the code snippet pls?.

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

今天我试图将PC与我的定制董事会配对。我能够在PC上看到设备(Dialog-SP)。当我尝试配对/连接它们时,它说连接一段时间,然后尝试再次连接。我附上了图片。

How can I do this?. UART flow control is the solution also for this?. Thank you.

Attachment:
PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. “Dialog-SPS”是设备名称,您可以通过更改user_config.h文件中的user_device_name宏来拥有自己的设备名称。
  2. 由于您使用的是扩展睡眠模式,您需要具有硬件流控制,并且应连接CTS / RTS / TX / RX引脚。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.

#define CFG_UART_HW_FLOW_CTRL

#undef cfg_uart_sw_flow_ctrl.

  1. Could you please run the code in debug mode and try to connect from the DSPS mobile application? Does the code get stack somewhere?

Thanks, PM_Dialog

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

1. Thank you.

2.由于您使用的是扩展睡眠模式,您需要具有硬件流控制,并且应连接CTS / RTS / TX / RX引脚。

If I use ARCH_SLEEP_OFF. Then also I should use Hardware/Software flow controls.

我有一些接口/连接疑问。

例如>

I would like to implement the Software floe control.

我已将DA14850设备连接到MSP432 EXP突破板。MSP断路板有两个部分是调试器部分,另一个部分是微控制器部分。我已将SWDIO,DA14850的SWDCLK引脚连接到SWDIO,调试器的SWDCLK引脚,也是DA14850的RXD A,TXD引脚到RXD,TXD PIZ的调试器部分。

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

如果我想拥有硬件流量控制:

Can I connect the pins like below:

#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.当我试着运行中的设备调试ode, it is trying to recover the debug connection. And also written there that the device might went in to dep sleep mode and application could not come out of it. The device at this moment is ARCH_EXT_SLEEP_ON.

When I changed that to ARCH_DEEP_SLEEP_ON. I dont even see the device in the bluetooth list.

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.

流量控制也是如此的原因。谢谢你。

PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入: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. 如果您不使用睡眠模式,则不需要流量控制。但是,建议使用流控制的使用,以便在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:
  • PAN TX à MSP RX
  • PAN RX à MSP TX
  • PAN RTS à MSP CTS
  • PAN 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”?

Thanks, PM_Dialog

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

Here I am not using the MCU. I am using the Debugger part of the developemnt board.

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

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

然后代码未运行。Keil显示RDDI-DAP错误。

Im unable to pair the device. If i do that then I will try to make communication (software debug).

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi,

Hi,

软件流量控制:

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.

im unable to pair the device. Im not able figure out why it is showing the error RDDI-DAP when I connect RXD and TXD.

PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. “我正在使用开发板的调试器部分。”:SWD用于调试目的。您也可以将固件下载到SYST-RAM中。你能澄清你的意思吗?此外,在将固件下载到系统RAM时,在任何类型的重置后,它将不会保留,因此您需要重新下载它。您是否使用Hot附加调试器运行您的代码?您能否检查衣服是否卡住了?
  2. “I just wanted to pair the BLE to my PC.” I need some clarifications on that. Are you using a PC application?
  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. “Then the code is not running. The keil shows RDDI-DAP error.” : Could you please send me a screenshot?

你有没有看过DSP用户手册?最初,您应该将PAN的UART引脚连接到FTDI的引脚,以便在PAN和PC之间建立连接。之后,您应该决定您将使用哪种流量控制。请查看DSPS用户手册。然后,将固件下载到Sys-RAM中并热连接调试器,然后尝试与DSP移动应用程序连接。说实话,我并不完全明白你所做的事情,这是你正在使用的连接。我强烈建议您阅读DSP用户手册。

Thanks, PM_Dialog

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

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?

Yes. I am downloading the firmware to Sys-RAM via SWD. My intension to say Im using only debugger part is that Im not using the MCU part of the development board (MSP-EXP432P401R). Here my doubt was, Should I use MCU part to download the firmware to BLE_ or can I use only debugger part to download the firmware?.

我得到了答案。我无需在开发板上使用MCU。

“我只是想把ble搭配给我的电脑。”我需要一些澄清。您在使用PC应用程序吗?

这里我没有使用任何PC应用程序。在PC上。如果我想通过蓝牙使用我的手机,首先我们需要通过输入一些密码配对设备。然后它们将配对并可用于文件或数据共享。这是我的问题。

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.“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

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.“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.

ble_app_security with UART also need software implementation of hardware flow control?. I dont see those macros in user_peripheral.h file. Also one doubt that earlier you mentioned that for software flow control we just need to have RXD and TXD connections and device must not be n sleep mode also we must change the macros from HW to SW in user_peripheral.h file. Then it automatically makes the communication in software implementation of HW flow control. Am i right?.

5.“Then the code is not running. The keil shows RDDI-DAP error.” : Could you please send me a screenshot?

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.

我在串行通信时陷入困境。我也附着截图。请找到它。谢谢你。

Attachment:
Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Hi,

Hi,

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
#define GPIO_UART1_RX_PIN GPIO_PIN_5

PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

我有点困惑,所以你可以用你的问题创建新的论坛线程吗?您能否告诉我您目前正在使用哪个项目,这是您的问题?您还在是否正在研究DSP参考应用程序代码?

  1. 无需在开发板上使用MCU。通常,我们我们的设计我们正在使用J-Link Lite。
  2. 您是否想打印要串行监视器的信息?如果是,则可以使用ARCH_PRINTF()并通过UART2将数据打印到串行监视器。

  • #define CFG_PRINTF in the da1458x_config_basic.h
  • Change the uart ports of the fw and assign the UART_TX port/pin to P04 and UART_RX port/pin to P05 (make sure that the configuration that you have changed is under the HW_CONFIG_PRO_DK and that this the board declared in the HW_CONFIG definition).

#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

  • If you have one other of our DKs or if you are working on a custom board, please modify the definitions above with the appropriate GPIOs

  • Include the arch_console.h file into your application
  • Invoke arch_printf()
  • 将终端的波特率更改为115200。

  1. You could use the arch_printf() function in ble_app_security example of the SDK. If you would like to add any security functionality in you project, this is the appropriate example of the 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. 在我们的设计中,我们正在使用J-Link Lite,因此“目标选项”应该像附加的屏幕截图。您的设计中有J-Link Lite吗?

Thanks, PM_Dialog

Gandhi
Offline
Last seen:1年5个月前
加入:2019-05-02 13:00
Dear PM_Dialog,

Dear 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 ).

Can we test serial communication on sps_device project?. You said I should implement flow control to have serial communication. You also said for ble_app_security project I dont need flow control.

Hence I was using ble_app_security project. I have made all modification you said on other day.

like

#define CFG_PRINTF in the da1458x_config_basic.h

Change the uart ports of the fw and assign the UART_TX port/pin to P04 and UART_RX port/pin to P05 (make sure that the configuration that you have changed is under the HW_CONFIG_PRO_DK and that this the board declared in the HW_CONFIG definition).

Invoke the arch_printf() function in order to print for example when the device starts advertising.

Include the arch_console.h file.

但是,我在串行终端上没有看到消息。当我在keil调试时,我有一个错误。那个错误是

*** error 122, line 17: AGDI: memory read failed (0x000000C6)

我还附上了截图。你能告诉我这个错误的索特顿吗?

我没有看到SPS_DEVICE项目的错误。如果我对SPS_DEVICE项目进行上述过程,我可以看到序列数据吗?谢谢你。

Attachment:
PM_Dialog
Offline
Last seen:1 day 6 hours ago
Staff
加入:2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

Try to unzip the SDK in a new deduced path folder and then re-install the Keil tool and the JLink. After that, try to build the projects. Are you able to build them correct? Be aware that I am not able to replicate your issue, so please try this and let me know.

c:\myWorkshop\DA1458x_SDK\5.0.4

另外请尝试禁用您在代码中设置的所有断点。

Thanks, PM_Dialog