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.
你能澄清这个问题吗?“有没有关于如何将Device_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.
我的假设是否正确?
是的。
你是如何发送数据的?
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.
您应该将数据Throght通知从外设发送到中央,中央将它们打印到串行监视器中。
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_app_security项目连接/配对ble。此外,我需要对PC进行一些数据传输。请分享一些信息如何才能实现这一目标。
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-kit或基本套件来使用无附件。我的项目是不可能的。
我的定制董事会上安装了BLE。BLE的串行引脚连接到我的定制板的MSP控制器。串行数据输入从My 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_dialog,
谢谢你。我有一个连接到串行引脚的第三方控制器。第三方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.
我只使用一个ble。该BLE串行引脚连接到MSP控制器。BLE收到数据。我应该将该数据发送给客户端。这里聪明是一个pc。PC中的蓝牙将打开,并与我们的电板连接。
我想看到PC上的数据。
Hi Gandhi,
抱歉混乱 - 我误解了你的问题。是的,您可以接收数据并在空中传输它们,但我们没有PC侧的任何应用程序。我们有一个例子,可以通过BLE连接发送数据,但中央是手机。请检查SDK的BLE_APP_PERITELAL示例。此示例使用将数据发送到移动电话的通知。
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.
你能澄清这个问题吗?“有没有关于如何将Device_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
你好,
您提到的“其中一个将与您的PC连接”。如何?你能解释一下吗?
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_dialog,
好的。这听起来不错。你能告诉我一个有用于主站和外设代码的示例项目。在SDK中,我在ble_exampls文件夹中看到我看到所有不同的项目。
例如,我的硬件连接的BLE是视为外围设备的,并且连接到PC的BLE是中央设备。
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_dialog,
谢谢你。我试过它。
我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。
我使用的无附件和配置了中央设备。我能够将外围设备与中央设备连接。我刚刚在无附加例子中提到的步骤。
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
你好,
我的假设是否正确?
是的。
你是如何发送数据的?
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_HOST,那么无附件不再是。正确的?。我会尽力遵循上述步骤。谢谢你。
你好,
我确实喜欢上面提到的。
Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.
您应该将数据Throght通知从外设发送到中央,中央将它们打印到串行监视器中。
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?.
你好,
这是工作。我忘记在主机代码中更改SW流量控制。
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_DEVICE应用程序,并且它将是外设。外围设备DA14580将与MSP连接。此设置正好正常工作,因为您可以发送DSP移动应用程序。
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_state_t app_default_sleep_mode = arch_sleep_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