DSPS Android version not showing the device number

9 posts / 0 new
Last post
Gandhi
Offline
Last seen: 1 day 19 hours ago
Joined: 2019-05-02 13:00
DSPS Android version not showing the device number

Hi,

I am using PAN1740 USB Dongle board. I have flashed sps_device code in to PAN1740. 

(1)  I can see the device serial number in IOS DSPS 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?.

Thank you.

Device: 
PM_Dialog
Online
Last seen: 4 min 6 sec ago
Staff
Joined: 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. 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. 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 day 19 hours ago
Joined: 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.

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. 

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

I mean serial number of the device BLE. In iOS app 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. 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? 

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. 

yes I am using PAN in my custom board.

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_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;

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

I will clarify it after sometime. I should get the clarification from my manager. Thank you.

 

PM_Dialog
Online
Last seen: 4 min 6 sec ago
Staff
Joined: 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 day 19 hours ago
Joined: 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. 

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

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

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. 

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

 

Attachment: 
PM_Dialog
Online
Last seen: 4 min 6 sec ago
Staff
Joined: 2018-02-08 11:03
Hi Gandhi,

Hi Gandhi,

  1. The "DIALOG-SPS" is the device name and you can have 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.

 

#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 day 19 hours ago
Joined: 2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

1. Thank you.

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.

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

   I have some interface / connection doubts.

   For example>

I would like to implement the Software floe control. 

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:

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. When I try to run the device in debug mode, 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.

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

 

 

PM_Dialog
Online
Last seen: 4 min 6 sec ago
Staff
Joined: 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:
  • PAN TX   à  MSP RX
  • PAN RX   à  MSP TX
  • PAN RTS à  MSP CTS
  • PAN CTS à  MSP RTS
  1. The deep sleep mode is not supported in DSPS reference 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 day 19 hours ago
Joined: 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.

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