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?
谢谢你。
设备:
Hi Gandhi,
Thanks, 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.
Hi Gandhi,
Thanks, 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.
Hi Gandhi,
#define CFG_UART_HW_FLOW_CTRL
#undef cfg_uart_sw_flow_ctrl.
Thanks, 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.
流量控制也是如此的原因。谢谢你。
Hi Gandhi,
Thanks, 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).
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.
Hi Gandhi,
你有没有看过DSP用户手册?最初,您应该将PAN的UART引脚连接到FTDI的引脚,以便在PAN和PC之间建立连接。之后,您应该决定您将使用哪种流量控制。请查看DSPS用户手册。然后,将固件下载到Sys-RAM中并热连接调试器,然后尝试与DSP移动应用程序连接。说实话,我并不完全明白你所做的事情,这是你正在使用的连接。我强烈建议您阅读DSP用户手册。
Thanks, 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.
我在串行通信时陷入困境。我也附着截图。请找到它。谢谢你。
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
Hi Gandhi,
我有点困惑,所以你可以用你的问题创建新的论坛线程吗?您能否告诉我您目前正在使用哪个项目,这是您的问题?您还在是否正在研究DSP参考应用程序代码?
#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
Thanks, 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项目进行上述过程,我可以看到序列数据吗?谢谢你。
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