Yes. I would like to connect my DA14580 to PC and then I should able to send some data from BLE to PC application. Is there any PC application done from Dialog side?.
Is there any code example?.
I can connect / pair the BLE with ble_app_security project. Further I need to have some data transfer to PC. Please share some information how can I acheive this.
It seems I should have Po-kit or basic kit from dialog to use the codeless. That is not possible for my project.
I have BLE mounted on my custom board. The serial pins of BLE are connected to MSP controller of my custom board. The serial data input is given from my MSP controller to BLE.
BLE should send the data to PC. This is my requirement.
I use only one BLE. This BLE serial pins are connected to a MSP controller. BLE receives the data. I should send that data to a client. Here cleint is a PC. The bluetooth in PC will be switched on and its get connected with our BLE.
Sorry for the confusion - I misunderstood your question. Yes, you can receive data and transmit them over the air, but we don’t have any application from the PC side. We have an example for sending data over a BLE connection, but the central is a mobile phone. Please check the ble_app_peripheral example of the SDK. This example uses the notifications for sending data onto a mobile phone.
Ok. This sounds good. Can you tell me a example project which has code for Master and Peripheral. In the SDK I see in ble_exampls folder I see all different projects.
For example my BLE which is connected in my hardware is consider as peripheral and the BLE which is connected to PC is central device.
如果外设是runnibg a ble_app_peripheral项目,并且哪个项目应该在中央设备运行?或者哪个项目适用于我的申请?
I will use. Normally peripheral sends the data succesfully. Because from the same code from peripheral I can see the data in android app. Hence the peripheral side no issues.
而不是Android IM更改为PC。
If you are using the DSP mobile application, are you able to see the data that are you sending?
The one BLE device will run the sps_device application, and it will be the Peripheral. The peripheral DA14580, will be connected with the MSP. This setup is working correctly as you can send data tot the DSPS Mobile application.
Now Im sending data to central device and everything is fine. I would like to know how to send the peripheral to sleep. My aim is to send data for few minutes and send peripheral to sleep mode to save the power.
嗨甘地,
您能澄清哪个是您的要求?如果我能够正确理解,你想完成它将DA14585直接连接到PC的蓝牙?
谢谢,PM_DIALOG.
你好,
Yes. I would like to connect my DA14580 to PC and then I should able to send some data from BLE to PC application. Is there any PC application done from Dialog side?.
Is there any code example?.
I can connect / pair the BLE with ble_app_security project. Further I need to have some data transfer to PC. Please share some information how can I acheive this.
嗨甘地,
您可以使用无附加方案应用程序设计和从/您的PC的命令发送。但是,您需要双DA14580S。请阅读用户手册:
http://lpccs-docs.dialog-semicondiondumon/da1458x_codeless/index.html.
谢谢,PM_DIALOG.
你好,
It seems I should have Po-kit or basic kit from dialog to use the codeless. That is not possible for my project.
I have BLE mounted on my custom board. The serial pins of BLE are connected to MSP controller of my custom board. The serial data input is given from my MSP controller to BLE.
BLE should send the data to PC. This is my requirement.
我能使用PC与Project Ble_App_Security连接BLE。
我有蓝牙Le Lab软件安装在我的Windows10 PC中。在此应用程序中,我能够看到BLE信息。请看图片。
嗨甘地,
据我所知,此功能没有任何PC应用程序。
谢谢,PM_DIALOG.
你好,
好的。我正在使用从Windows中使用蓝牙Le Lab应用程序来测试BLE。在此应用程序中,我可以看到所使用的服务。
当我运行ble_app_peripheral项目时,我可以连接到relint(PC)。而且我也可以看到设备信息服务和一个不舒服的服务。我能够阅读所有字符。请参阅上面的附加屏幕截图以查看此应用程序。
现在,我希望开发一种新的自定义服务,它应该连续地从串行引脚(Rx,Tx)读取数据。
是否有任何教程或示例,我们如何创建读取序列数据的新的客户服务?
Also a question unclear for me is that the Codeless is only for dialog kits or can I use in my custom board?.
谢谢你。
嗨甘地,
CodeLess can be used with any DA1458x based projects.
玩玩具请澄清这个问题吗?
“有没有教程或示例,我们如何创建一个读取序列数据的新的客户服务?”
谢谢,PM_DIALOG.
你好,
玩玩具请澄清这个问题吗?
“有没有教程或示例,我们如何创建一个读取序列数据的新的客户服务?”
我可以说
是否有任何教程或示例,我们如何创建新的客户服务?
嗨甘地,
Please take a look at the following documents:
AN-B-029:教程 - 在DA1458x上开发自定义配置文件
教程2:添加特征 - 自定义PROFLLE创建
谢谢,PM_DIALOG.
Hi PM_Dialog,
谢谢你。我有一个连接到串行引脚的第三方控制器。第三方Condler将一些序列数据发送到BLE。我可以使用自定义配置文件发送该序列数据吗?
嗨甘地,
是的,您可以使用通知/指示收到数据并将其发送到对等BLE设备。
谢谢,PM_DIALOG.
can you please provide with a example code or user guide or something .
我不知道你是否普及。
I use only one BLE. This BLE serial pins are connected to a MSP controller. BLE receives the data. I should send that data to a client. Here cleint is a PC. The bluetooth in PC will be switched on and its get connected with our BLE.
I want to see that data on PC.
嗨甘地,
Sorry for the confusion - I misunderstood your question. Yes, you can receive data and transmit them over the air, but we don’t have any application from the PC side. We have an example for sending data over a BLE connection, but the central is a mobile phone. Please check the ble_app_peripheral example of the SDK. This example uses the notifications for sending data onto a mobile phone.
谢谢,PM_DIALOG.
你好,
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?我只能说DSP的Windows对手?可能来自别人提供者?
我初学到了发展。我能够从外部控制器中获取数据,并提供给BLE和BLE可以发送到Android应用程序。现在我希望通过Windows应用程序替换Android应用程序。
首先,我应该找到一些Windows应用程序,然后修改BLE_APP_PERITELAL代码或DEVICE_SPS代码以进行通信。
是否有任何教程如何将Device_SPS代码更改为其他应用程序?
你能否建议一步一步一步一步。
我的想法是:
1.找到一些Windows应用程序。
2.修改device_sps或ble_app_peripheral代码。
或者是否有其他方法。
Here Im using my custom board which has MSP controller and it is seriallay connected to DA14580. Thank you.
嗨甘地,
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?
没有任何PC应用程序,如移动DSP应用程序。我们没有尝试将DSP与PC连接。对话框提供了DSP移动应用程序。有关更多信息,请参阅用户手册。
Can you please clarify this question: “Is there any tutorial how to change device_sps code to other application?.”
一种可能的方法是具有运行DSP的两个DA14580或无附件。其中一个将与您的PC连接。
谢谢,PM_DIALOG.
你好,
You mentioned "The one of them will be connected with your PC". How? can you explain this?.
嗨甘地,
您将有两个DA14580板。其中一个将通过USB电缆与您联系。在PC侧,您可以拥有串行监视器,以便打印接收的数据。另一个板将与PC一起将数据传输到连接的电路板。其中一个应该是主人和另一个外围设备。但是,我们在PC侧没有任何应用。
谢谢,PM_DIALOG.
Hi PM_Dialog,
Ok. This sounds good. Can you tell me a example project which has code for Master and Peripheral. In the SDK I see in ble_exampls folder I see all different projects.
For example my BLE which is connected in my hardware is consider as peripheral and the BLE which is connected to PC is central device.
如果外设是runnibg a ble_app_peripheral项目,并且哪个项目应该在中央设备运行?或者哪个项目适用于我的申请?
是我的概念是对的吗?
嗨甘地,
SDK不支持将设备配置为中央的项目。您应该通过自我配置它,或者我可以为您提供指导方针来实现它。我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。此外,您可以使用它DSPS项目。
谢谢,PM_DIALOG.
Hi PM_Dialog,
谢谢你。我试过它。
我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。
我使用的无附件和配置了中央设备。我能够将外围设备与中央设备连接。我刚刚在无附加例子中提到的步骤。
外围设备正在运行DSPS项目。该外围串行引脚(P0.4和P0.5)并与控制器连接。可以在串行端子上打印来自外围串行引脚的数据?
我没有看到串行终端上的数据。通常它正在使用Android应用程序。我在串行端子上配置中央设备时看到了波特丽的讨论是57600,虽然DSPS项目的波特拉特是115200.这是好吗?
我该怎么办将数据从外围到串行终端打印到命令?
嗨甘地,
我的假设是否正确?你是如何发送数据的?在中央方面,您可以使用中央DSP配置的SPS_HOST项目。
请尝试仅运行如下的DSPS应用程序。
中央设备上的应用程序自动启动扫描并连接到支持串行端口服务的第一个发现的外围设备。
您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?如果是,则应将数据Throght通知从外设发送到中央,中央将它们打印到串行监视器中。
Also, which board are you using? Any of our development boards or you have a custom board?
谢谢,PM_DIALOG.
你好,
我的假设是否正确?
Yes.
你是如何发送数据的?
我有一个带有MSP控制器的自定义板。此定制板还安装了DA14580。DA14580的串行引脚连接到MSP控制器。最初我已经为MSP控制器写了一个简单的代码。此代码将数据打印到串行监视器。并且那些串行引脚连接到DA14580串行引脚。当我执行DSPS应用程序时。我可以从Android应用程序中看到MSP控制器的数据。现在我想将相同的数据放入串行监视器。
您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?
只有中心通过USB与PC连接。基本上我的中央设备是Pan1740板。
If I run sps_host on central then CodeLess is no more. right?. I will try to follow the above mentioned steps. Thank you.
你好,
I did like you mentioned above.
外设正在使用sps_device和central运行,使用sps_host运行。我没有看到串行终端上的数据。
you should send data throght notification from the Peripheral to the Central and the Central will print them into the Serial Monitor.
你能解释一下我如何通过从外围到中心的通知发送数据?这里只有中央设备通过USB连接到PC而不是外围设备。
嗨甘地,
关于您上次发布和SPS_HOST配置:
关于您如何发送数据,我将使用连接在外设的UART引脚上的MSP控制器。
谢谢,PM_DIALOG.
你好,
您使用的是哪个UART引脚?
P0.4 TXD和P0.5 RXD。
Which is the Serial Monitor Configuration? (baud rate etc)
我使用Teraterm和Baudrate是1152000,数据:8位,奇偶校验:无,停止位:1位。
Are you using Flow Control? If yes, in which pins are the RTS/CTS ?
我正在使用MSP控制器的软件流控制。在SPS_DEVICE中,我看到软件流控制默认。我没有改变它。但是,我已将RTS和CTS引脚连接到MSP控制器。我正在将数据从控制器获取到BLE。但不是从ble到ble。
您能否请使用嗅探器o确保数据从空气中从外围传输?
I will use. Normally peripheral sends the data succesfully. Because from the same code from peripheral I can see the data in android app. Hence the peripheral side no issues.
而不是Android IM更改为PC。
If you are using the DSP mobile application, are you able to see the data that are you sending?
DSP移动泛乐画?是同一个sps_device吗?尽管如此,我可以看到Android应用程序中的数据。
我也做了另一个测试。我已经拍了两个Pan1740设备。他们都有USB。我已将它们连接到PC。我将SPS_DEVICE代码放到一个PAN1740并向另一个PAN1740中的主机代码。我跑了他们。我已经打开了两个统计段,各自的COM端口。Teraterm属于SPS_DEVICE,我在那里键入一些数据,但是我没有看到其他TERATERM上的任何数据。
我知道他们两个都已连接,因为当我运行主机代码时,我没有看到其他设备上的广告。这意味着SPS_DEVICE和主机连接。你能指导我如何从两个ble送数据?正如你之前提到的,我应该如何发送通知?
你好,
It is working. I forgot change the SW flow control in host code.
现在我能够将数据从我的自定义板(外设)发送到中央设备,然后在串行终端中发送。谢谢你。
嗨甘地,
The one BLE device will run the sps_device application, and it will be the Peripheral. The peripheral DA14580, will be connected with the MSP. This setup is working correctly as you can send data tot the DSPS Mobile application.
其他DA14580将运行SPS_HOST应用程序,它将是中央。让我们试着确保你有正确的设置。当两个设备都相应地运行SPS应用程序时,中央将自动连接到外围设备。因此,中央可以将数据发送到空气上的外围,反之亦然。那是工作吗?当中央接收数据时,DSP将把它们推入UART,因此如果您有正确的UART设置,则应在串行监视器中看到它们。默认情况下,SPS_HOST正在使用硬件流UART控件。
刚看到你的最后一篇文章。很高兴工作正常。默认情况下,DSP延长了睡眠配置,因此需要HW流量控制。如果您想拥有SW流量控制,您应该去激活睡眠模式。如果您发现上述任何答案有用,请将其中一个标记为“已接受”。
谢谢,PM_DIALOG.
你好,
Initially I set
const静态sleep_state_t app_default_sleep_mode= ARCH_SLEEP_OFF;
Now Im sending data to central device and everything is fine. I would like to know how to send the peripheral to sleep. My aim is to send data for few minutes and send peripheral to sleep mode to save the power.
你能告诉我如何做到这一点。谢谢你。
嗨甘地,
DSP仅支持扩展睡眠模式和HW流量控制(RTS / CTS)。不支持深度睡眠模式
You could set it in extended sleep mode like follow:
const静态sleep_state_t app_default_sleep_mode= ARCH_EXT_SLEEP_ON;
The system will go into extended sleep mode between advertising or connection intervals,
谢谢,PM_DIALOG.