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.
Now, I am looking to develop a new custom service which should read data from serial pins(Rx,Tx) continously.
谢谢你!I have a third party controller connected to serial pins of BLE. That third party contoller send some seial data to BLE. Can I send that serial data using a custom profile ?.
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.
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.
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?.
我没有看到串行终端上的数据。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 which is connected with the PC will run the sps_host project.
DA14580 SPS应用程序支持间隙中央和外围角色。
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.
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.
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?
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?.
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?
谢谢,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
谢谢,PM_DIALOG.
你好,
似乎我应该从对话框中拥有Po-kit或基本套件来使用无附件。我的项目是不可能的。
我的定制董事会上安装了BLE。BLE的串行引脚连接到我的定制板的MSP控制器。串行数据输入从My MSP控制器提供给BLE。
BLE应将数据发送到PC。这是我的要求。
我能使用PC与Project Ble_App_Security连接BLE。
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.
谢谢,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.
Now, I am looking to develop a new custom service which should read data from serial pins(Rx,Tx) continously.
是否有任何教程或示例,我们如何创建读取序列数据的新的客户服务?
对于我来说,问题也不清楚是,无附件仅适用于对话套件或我可以在我的自定义板上使用吗?
谢谢你!
Hi Gandhi,
无附带可以与任何基于DA1458x的项目一起使用。
玩玩具请澄清这个问题吗?
“Is there any tutorial or example how can we create a new custome service which reads the serial data?.”
谢谢,PM_DIALOG.
你好,
玩玩具请澄清这个问题吗?
“Is there any tutorial or example how can we create a new custome service which reads the serial data?.”
我可以说
是否有任何教程或示例,我们如何创建新的客户服务?
Hi Gandhi,
请查看以下文件:
AN-B-029 : Tutorial - Developing a custom profile on DA1458x
教程2:添加特征 - 自定义PROFLLE创建
谢谢,PM_DIALOG.
嗨pm_dialog,
谢谢你!I have a third party controller connected to serial pins of BLE. That third party contoller send some seial data to BLE. Can I send that serial data using a custom profile ?.
Hi Gandhi,
是的,您可以使用通知/指示收到数据并将其发送到对等BLE设备。
谢谢,PM_DIALOG.
请您提供示例代码或用户指南或其他内容。
我不知道你是否普及。
我只使用一个ble。该BLE串行引脚连接到MSP控制器。BLE收到数据。我应该将该数据发送给客户端。这里聪明是一个pc。PC中的蓝牙将打开,并与我们的电板连接。
我想看到PC上的数据。
Hi Gandhi,
抱歉混乱 - 我误解了你的问题。是的,您可以接收数据并在空中传输它们,但我们没有PC侧的任何应用程序。我们有一个例子,可以通过BLE连接发送数据,但中央是手机。请检查SDK的BLE_APP_PERITELAL示例。此示例使用将数据发送到移动电话的通知。
谢谢,PM_DIALOG.
你好,
您是否知道任何应用程序,我可以在Windows上使用像DSP等DSP的沟通?我只能说DSP的Windows对手?可能来自别人提供者?
我初学到了发展。我能够从外部控制器中获取数据,并提供给BLE和BLE可以发送到Android应用程序。现在我希望通过Windows应用程序替换Android应用程序。
首先我应该找到me windows application and then modify the ble_app_peripheral code or device_sps code to have communication.
是否有任何教程如何将Device_SPS代码更改为其他应用程序?
Could you please suggest how can I go ahead step by step.
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,
Do you know any application where I can make communication with BLE like DSPS on windows?
没有任何PC应用程序,如移动DSP应用程序。我们没有尝试将DSP与PC连接。对话框提供了DSP移动应用程序。有关更多信息,请参阅用户手册。
你能澄清这个问题吗?“有没有关于如何将Device_SPS代码更改为其他应用程序的教程?”
一种可能的方法是具有运行DSP的两个DA14580或无附件。其中一个将与您的PC连接。
谢谢,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.
谢谢,PM_DIALOG.
嗨pm_dialog,
好的。这听起来不错。你能告诉我一个有用于主站和外设代码的示例项目。在SDK中,我在ble_exampls文件夹中看到我看到所有不同的项目。
例如,我的硬件连接的BLE是视为外围设备的,并且连接到PC的BLE是中央设备。
如果外设是runnibg a ble_app_peripheral项目,并且哪个项目应该在中央设备运行?或者哪个项目适用于我的申请?
是我的概念是对的吗?
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.
谢谢,PM_DIALOG.
嗨pm_dialog,
谢谢你!我已经尝试过。
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?.
我没有看到串行终端上的数据。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,
我的假设是否正确?你是如何发送数据的?在中央方面,您可以使用中央DSP配置的SPS_HOST项目。
请尝试仅运行如下的DSPS应用程序。
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.
另外,您使用的是哪个板?我们的任何开发委员会或您有定制董事会?
谢谢,PM_DIALOG.
你好,
我的假设是否正确?
是的。
你是如何发送数据的?
我有一个带有MSP控制器的自定义板。此定制板还安装了DA14580。DA14580的串行引脚连接到MSP控制器。最初我已经为MSP控制器写了一个简单的代码。此代码将数据打印到串行监视器。并且那些串行引脚连接到DA14580串行引脚。当我执行DSPS应用程序时。我可以从Android应用程序中看到MSP控制器的数据。现在我想将相同的数据放入串行监视器。
你能请注明如果外围和吗central should be connected with PC via a USB cable? Or only the Central should be connected?
只有中心通过USB与PC连接。基本上我的中央设备是Pan1740板。
如果我在Central上运行SPS_HOST,那么无附件不再是。正确的?。我会尽力遵循上述步骤。谢谢你。
你好,
我确实喜欢上面提到的。
外设正在使用sps_device和central运行,使用sps_host运行。我没有看到串行终端上的数据。
您应该将数据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:
关于您如何发送数据,我将使用连接在外设的UART引脚上的MSP控制器。
谢谢,PM_DIALOG.
你好,
Which UART pins are you using?
P0.4 TxD and P0.5 RxD.
哪个是串行监视器配置?(波特率等)
我使用Teraterm和Baudrate是1152000,数据:8位,奇偶校验:无,停止位:1位。
你在使用流量控制吗?如果是,其中销是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移动泛乐画?是同一个sps_device吗?尽管如此,我可以看到Android应用程序中的数据。
我也做了另一个测试。我已经拍了两个Pan1740设备。他们都有USB。我已将它们连接到PC。我将SPS_DEVICE代码放到一个PAN1740并向另一个PAN1740中的主机代码。我跑了他们。我已经打开了两个统计段,各自的COM端口。Teraterm属于SPS_DEVICE,我在那里键入一些数据,但是我没有看到其他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移动应用程序。
其他DA14580将运行SPS_HOST应用程序,它将是中央。让我们试着确保你有正确的设置。当两个设备都相应地运行SPS应用程序时,中央将自动连接到外围设备。因此,中央可以将数据发送到空气上的外围,反之亦然。那是工作吗?当中央接收数据时,DSP将把它们推入UART,因此如果您有正确的UART设置,则应在串行监视器中看到它们。默认情况下,SPS_HOST正在使用硬件流UART控件。
刚看到你的最后一篇文章。很高兴工作正常。默认情况下,DSP延长了睡眠配置,因此需要HW流量控制。如果您想拥有SW流量控制,您应该去激活睡眠模式。如果您发现上述任何答案有用,请将其中一个标记为“已接受”。
谢谢,PM_DIALOG.
你好,
最初我已经设置了
const static sleep_state_t app_default_sleep_mode = arch_sleep_off;
现在我向中央设备发送数据,一切都很好。我想知道如何将外围送到睡眠状态。我的目标是发送数据几分钟,并将外围发送到睡眠模式以节省电量。
你能告诉我如何做到这一点。谢谢你。
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;
系统将在广告或连接间隔之间进行扩展睡眠模式,
谢谢,PM_DIALOG.