I have a PAN1740. I would like to send data from my bluetooth to some applicaion on PC. Are there any applications that detect and collects the data from my Bluetooth?. Thank you.
Can you please clarify which is your requirement? If I am able to understand correctly, that you want to accomplish it to connect directly the DA14585 directly to the Bluetooth of your PC?
You could use the CodeLess reference application design and sending AT commands from / your PC. However, you will need double DA14580s. Please read the user manual:
OK. I am using Bluetooth LE Lab application from windows to test the BLE. In this application I could see the Services used.
When I run the ble_app_peripheral project, I could able to connect to the cleint( PC). And also I could see device information service and an unkown service. Im able to read all characters. Please see above attached screenshots to see the app.
现在,我希望开发一种新的自定义服务,它应该连续地从串行引脚(Rx,Tx)读取数据。
Is there any tutorial or example how can we create a new custome service which reads the serial data?.
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?. Simply I can say windows counterpart of DSPS? Could be from others providers?.
I am beginner to BLE development. I am able to take data from external controller and give to BLE and BLE could send to android app. Now Im looking to replace android app by windows application.
There isn’t any PC application like the Mobile DSPS application. We haven’t tried to connect the DSPS with the PC. Dialog provided a DSPS mobile application. Please refer to the user manual for more information.
你能澄清一下这个问题吗:“有没有关于如何将设备的sps代码更改为其他应用程序的教程?”?。”
A possible approach would be to have two DA14580s running the DSPS or the CodeLess. The one of them will be connected with your PC.
You will have two DA14580 boards. One of them will be connected with you PC via an USB cable. In your PC side you could have a serial monitor in order to print the received data. The other boards will be transmitting data to the connected boards with you PC. One of them should be the master and the other the peripheral. But again, we don’t have any application in the PC side.
if the peripheral is runnibg a ble_app_peripheral project and which project should run at central device?. Or which project is suiable for my application?.
The SDK doesn’t support a project configuring the device as a Central. You should configure it by your self or I can provide you guidelines to achieve it. I would suggest you to start with CodeLess reference application project and sending AT commands to configure it as a Central device. Also, you can use it the DSPS project.
The peripheral is running DSPS project on it. This peripheral serial pins (P0.4 and P0.5) and connected with a controller. The data from the peripheral serial pins can be printed on serial terminal?.
I do not see the data on serial terminal. Normally it is working on android app. I see the baudrate while configuring the central device on serial terminal is 57600 although the baudrate in DSPS project is 115200. Is this OK?.
What shall I do to print the data from peripheral to serial terminal through AT Commands?.
Central is connected with the PC and it’s running the CodeLess project.
我的假设正确吗?如何发送数据?In the Central side, you could use the sps_host project which is the Central DSPS configuration.
Please try to run only the DSPS application like follow.
Peripheral will run the sps_device project
Central which is connected with the PC will run the sps_host project.
The DA14580 SPS application supports both GAP central and peripheral roles.
The application on the central device automatically starts scanning and connects to the first discovered peripheral device supporting the serial port service.
你能请注明如果外围和吗central should be connected with PC via a USB cable? Or only the Central should be connected? If yes, you should send data throght notification from the Peripheral to the Central and the Central will print them into the Serial Monitor.
Central is connected with the PC and it’s running the CodeLess project.
我的假设正确吗?
Yes.
如何发送数据?
I have a custom board with MSP controller. This custom board also has DA14580 mounted. The serial pins of DA14580 are connected to MSP controller. Initially I have written a simple code for MSP controller. This code prints data to serial monitor. and those serial pins are connected to DA14580 serial pins. When I execute DSPS application. I could see data from MSP controller in android app. Now I want to put that same data to serial monitor.
你能请注明如果外围和吗central should be connected with PC via a USB cable? Or only the Central should be connected?
Only central is connected with PC via USB. Basically my central device is PAN1740 board.
Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.
你应该把数据从外设发送到中央,中央会把它们打印到串行监视器上。
Can you explain me how to send data through notifications from peripheral to central?. Here only central device is connected to PC via USB not the peripheral.
Im using Teraterm and the baudrate is 1152000,data: 8 bit,Parity : none, Stop bits : 1 bit.
你在用流量控制吗?如果是,RTS/CTS在哪些引脚中?
I am using Software flow control with MSP controller. In the sps_device I see software flow control default. I did not changed it. However I have connected the RTS and CTS pins to the MSP controller. I am getting data from the controller to BLE. But not from BLE to BLE.
Can you please use a sniffer in order o make sure that the data are transmitted from the peripheral over the air?
DSP mobile applcation?. Is ot same sps_device?. Nevertheless I can see the data in android app.
I have also made another test. I have taken two PAN1740 devices. They both are having USB. I have connected them to PC. I put sps_device code to one PAN1740 and host code to another PAN1740. I run them. I have opened two teraterms with respective of theire COM ports. The teraterm belongs to sps_device , there I was typing some data however I did not see any data on other teraterm.
I know both of them are connected,because i do not see the advertisement on other devices when I run host code. That means sps_device and host are connected. Can you pls guide me how to send data from two ble's?. As you mentioned earlier how should I send notifications?.
The other DA14580 will run the sps_host application, and it will be the Central. Let’s try to make sure that you have the correct setup. When both of the devices are running the SPS application accordingly, the Central will automatically connect to the Peripheral. So the Central can send data to the Peripheral over the air and vice versa. Is that working ? When the Central receives data, the DSPS will push them into UART, so if you have the correct UART setup, you should see them in the Serial Monitor. The sps_host by default is using Hardware Flow UART control.
Just seen your last post. Glad that is working fine. The DSPS has extended sleep configuration by default so HW flow control is need. If you want to have SW flow control you should de-activate the sleep mode. If you find any of the above answers useful, please mark one of them as “accepted”.
Hi Gandhi,
Can you please clarify which is your requirement? If I am able to understand correctly, that you want to accomplish it to connect directly the DA14585 directly to the Bluetooth of your PC?
Thanks, PM_Dialog
你好,
对。我想连接我的DA14580到PC,然后我应该能够发送一些数据从BLE到PC应用程序。是否有任何PC应用程序从对话框端完成?。
有代码示例吗?。
我可以将BLE与BLE\u app\u安全项目连接/配对。此外,我需要有一些数据传输到电脑。请分享一些信息,我如何才能做到这一点。
Hi Gandhi,
You could use the CodeLess reference application design and sending AT commands from / your PC. However, you will need double DA14580s. Please read the user manual:
http://lpccs-docs.dialog-semiconductor.com/da1458x_codeless/index.html
Thanks, PM_Dialog
你好,
似乎我应该从对话框Po工具包或基本工具包使用无代码。这对我的项目是不可能的。
我已经在我的定制板上安装了一个可折叠的。BLE的串行引脚连接到我的定制板的MSP控制器。串行数据输入是从我的MSP控制器给BLE的。
BLE应该发送数据到PC机。这是我的要求。
Im able to connect the BLE with PC with the project ble_app_security.
I have Bluetooth LE LAB software installed in my windows10 PC. In this application Im able to see the BLE information. Please see the pictures.
Hi Gandhi,
As far as I know there isn’t any PC application for this functionality.
Thanks, PM_Dialog
你好,
OK. I am using Bluetooth LE Lab application from windows to test the BLE. In this application I could see the Services used.
When I run the ble_app_peripheral project, I could able to connect to the cleint( PC). And also I could see device information service and an unkown service. Im able to read all characters. Please see above attached screenshots to see the app.
现在,我希望开发一种新的自定义服务,它应该连续地从串行引脚(Rx,Tx)读取数据。
Is there any tutorial or example how can we create a new custome service which reads the serial data?.
还有一个问题我不清楚的是,无代码的只是对话框套件或我可以在我的自定义板使用?。
谢谢。
Hi Gandhi,
无代码可用于任何基于DA1458x的项目。
玩具可以请求e clarify this question?
“有没有教程或示例,我们如何创建一个读取序列数据的新的客户服务?”
Thanks, PM_Dialog
你好,
玩具可以请求e clarify this question?
“有没有教程或示例,我们如何创建一个读取序列数据的新的客户服务?”
simply i can say
Is there any tutorial or example how can we create a new custome service?.
Hi Gandhi,
请看以下文件:
AN-B-029 : Tutorial - Developing a custom profile on DA1458x
教程2:添加特征-自定义Proflle创建
Thanks, PM_Dialog
嗨,PM\U对话,
谢谢。我有一个连接到串行引脚的第三方控制器。第三方Condler将一些序列数据发送到BLE。我可以使用自定义配置文件发送该序列数据吗?
Hi Gandhi,
Yes you can receive the data and send them to a peer BLE device using the notifications/indications.
Thanks, PM_Dialog
你能提供一个例子代码或用户指南或什么的。
我不知道你是否understnad or not.
我只用了一个词。此串行引脚连接到MSP控制器。BLE接收数据。我应该把数据发给客户。这里的cleint是一台PC。PC中的蓝牙将被打开,它将与我们的BLE连接。
我想在电脑上看到这些数据。
Hi Gandhi,
很抱歉搞混了-我误解了你的问题。是的,您可以接收数据并通过空中传输,但我们没有任何来自PC端的应用程序。我们有一个通过BLE连接发送数据的例子,但是中心是移动电话。请查看SDK的ble\u app\u外围示例。本例使用通知将数据发送到移动电话。
Thanks, PM_Dialog
你好,
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?. Simply I can say windows counterpart of DSPS? Could be from others providers?.
I am beginner to BLE development. I am able to take data from external controller and give to BLE and BLE could send to android app. Now Im looking to replace android app by windows application.
首先,我应该找到一些Windows应用程序,然后修改BLE_APP_PERITELAL代码或DEVICE_SPS代码以进行通信。
Is there any tutorial how to change device_sps code to other application?.
你能否建议一步一步一步一步。
My ideas is:
1. To find some windows app.
2. Modify the device_sps or ble_app_peripheral code.
or is there any other approach.
这里我使用我的自定义板有MSP控制器,它是串行连接到DA14580。非常感谢。
Hi Gandhi,
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?
There isn’t any PC application like the Mobile DSPS application. We haven’t tried to connect the DSPS with the PC. Dialog provided a DSPS mobile application. Please refer to the user manual for more information.
你能澄清一下这个问题吗:“有没有关于如何将设备的sps代码更改为其他应用程序的教程?”?。”
A possible approach would be to have two DA14580s running the DSPS or the CodeLess. The one of them will be connected with your PC.
Thanks, PM_Dialog
你好,
您提到“其中一个将连接到您的电脑”。怎样?你能解释一下吗?。
Hi Gandhi,
You will have two DA14580 boards. One of them will be connected with you PC via an USB cable. In your PC side you could have a serial monitor in order to print the received data. The other boards will be transmitting data to the connected boards with you PC. One of them should be the master and the other the peripheral. But again, we don’t have any application in the PC side.
Thanks, PM_Dialog
嗨,PM\U对话,
好 啊。听起来不错。你能告诉我一个例子项目,其中有代码为主和外围设备。在ble\u exampls文件夹中看到的SDK中,我看到了所有不同的项目。
例如,我的BLE连接在我的硬件被认为是外围设备和BLE连接到PC机是中央设备。
if the peripheral is runnibg a ble_app_peripheral project and which project should run at central device?. Or which project is suiable for my application?.
Is my concept is right?.
Hi Gandhi,
The SDK doesn’t support a project configuring the device as a Central. You should configure it by your self or I can provide you guidelines to achieve it. I would suggest you to start with CodeLess reference application project and sending AT commands to configure it as a Central device. Also, you can use it the DSPS project.
Thanks, PM_Dialog
嗨,PM\U对话,
谢谢。我试过它。
I would suggest you to start with CodeLess reference application project and sending AT commands to configure it as a Central device.
我使用了无代码和配置的中央设备。我可以把外设和中央设备连接起来。我刚刚完成了无代码示例中提到的步骤。
The peripheral is running DSPS project on it. This peripheral serial pins (P0.4 and P0.5) and connected with a controller. The data from the peripheral serial pins can be printed on serial terminal?.
I do not see the data on serial terminal. Normally it is working on android app. I see the baudrate while configuring the central device on serial terminal is 57600 although the baudrate in DSPS project is 115200. Is this OK?.
What shall I do to print the data from peripheral to serial terminal through AT Commands?.
Hi Gandhi,
我的假设正确吗?如何发送数据?In the Central side, you could use the sps_host project which is the Central DSPS configuration.
Please try to run only the DSPS application like follow.
The application on the central device automatically starts scanning and connects to the first discovered peripheral device supporting the serial port service.
你能请注明如果外围和吗central should be connected with PC via a USB cable? Or only the Central should be connected? If yes, you should send data throght notification from the Peripheral to the Central and the Central will print them into the Serial Monitor.
另外,你用的是哪块板?我们的开发板或你有定制板?
Thanks, PM_Dialog
你好,
我的假设正确吗?
Yes.
如何发送数据?
I have a custom board with MSP controller. This custom board also has DA14580 mounted. The serial pins of DA14580 are connected to MSP controller. Initially I have written a simple code for MSP controller. This code prints data to serial monitor. and those serial pins are connected to DA14580 serial pins. When I execute DSPS application. I could see data from MSP controller in android app. Now I want to put that same data to serial monitor.
你能请注明如果外围和吗central should be connected with PC via a USB cable? Or only the Central should be connected?
Only central is connected with PC via USB. Basically my central device is PAN1740 board.
如果我在central上运行sps\u host,那么就不再是无代码的了。正确的?。我将努力遵循上述步骤。非常感谢。
你好,
我确实喜欢你上面提到的。
Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.
你应该把数据从外设发送到中央,中央会把它们打印到串行监视器上。
Can you explain me how to send data through notifications from peripheral to central?. Here only central device is connected to PC via USB not the peripheral.
Hi Gandhi,
Regarding you last post and sps_host configuration:
Regarding how you are sending the data, I messed that you are using a MSP controller connected on the UART pins of the peripheral.
Thanks, PM_Dialog
你好,
Which UART pins are you using?
P0.4 TxD and P0.5 RxD.
哪个是串行监视器配置?(波特率等)
Im using Teraterm and the baudrate is 1152000,data: 8 bit,Parity : none, Stop bits : 1 bit.
你在用流量控制吗?如果是,RTS/CTS在哪些引脚中?
I am using Software flow control with MSP controller. In the sps_device I see software flow control default. I did not changed it. However I have connected the RTS and CTS pins to the MSP controller. I am getting data from the controller to BLE. But not from BLE to BLE.
Can you please use a sniffer in order o make sure that the data are transmitted from the peripheral over the air?
我会用的。通常外设发送数据成功。因为从外设的相同代码中,我可以看到android应用程序中的数据。因此外围没有问题。
Instead of android Im changing to PC.
如果您使用的是DSP移动应用程序,您能看到您发送的数据吗?
DSP mobile applcation?. Is ot same sps_device?. Nevertheless I can see the data in android app.
I have also made another test. I have taken two PAN1740 devices. They both are having USB. I have connected them to PC. I put sps_device code to one PAN1740 and host code to another PAN1740. I run them. I have opened two teraterms with respective of theire COM ports. The teraterm belongs to sps_device , there I was typing some data however I did not see any data on other teraterm.
I know both of them are connected,because i do not see the advertisement on other devices when I run host code. That means sps_device and host are connected. Can you pls guide me how to send data from two ble's?. As you mentioned earlier how should I send notifications?.
你好,
它正在工作。我忘了在主机代码中更改软件流控制。
Now Im able to send data from my custom board (peripheral) to central device and then in serial terminal. Thank you.
Hi Gandhi,
一个BLE设备将运行sps\U设备应用程序,它将是外围设备。外围设备DA14580将与MSP连接。此设置工作正常,因为您可以将数据发送到DSPS移动应用程序。
The other DA14580 will run the sps_host application, and it will be the Central. Let’s try to make sure that you have the correct setup. When both of the devices are running the SPS application accordingly, the Central will automatically connect to the Peripheral. So the Central can send data to the Peripheral over the air and vice versa. Is that working ? When the Central receives data, the DSPS will push them into UART, so if you have the correct UART setup, you should see them in the Serial Monitor. The sps_host by default is using Hardware Flow UART control.
Just seen your last post. Glad that is working fine. The DSPS has extended sleep configuration by default so HW flow control is need. If you want to have SW flow control you should de-activate the sleep mode. If you find any of the above answers useful, please mark one of them as “accepted”.
Thanks, PM_Dialog
你好,
最初我设定
const static sleep\u state\u t app\u default\u sleep\u mode=ARCH\u sleep\u OFF;
现在我正在向中央设备发送数据,一切正常。我想知道如何让外设进入睡眠状态。我的目标是发送几分钟的数据和发送外设到睡眠模式,以节省电力。
Can you please tell me how to do that. Thank you.
Hi Gandhi,
DSPS supports only extended sleep mode and HW Flow Control (RTS/CTS) . Deep sleep mode is not supported
您可以将其设置为延长睡眠模式,如下所示:
const static sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;
系统将在广告或连接间隔之间进入延长睡眠模式,
Thanks, PM_Dialog