What are the applications used to test Blueooth on Desktop?

Learn MoreFAQsTutorials

31 posts / 0 new
Last post
甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
What are the applications used to test Blueooth on Desktop?

Hi,

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.

Device:
PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

您能澄清哪个是您的要求?如果我能够正确理解,你想完成它将DA14585直接连接到PC的蓝牙?

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

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.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

您可以使用无附加方案应用程序设计和从/您的PC的命令发送。但是,您需要双DA14580S。请阅读用户手册:

http://lpccs-docs.dialog-semicondiondumon/da1458x_codeless/index.html.

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

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.

Im able to connect the BLE with PC with the project ble_app_security.

我有蓝牙Le Lab软件安装在我的Windows10 PC中。在此应用程序中,我能够看到BLE信息。请看图片。

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

据我所知,此功能没有任何PC应用程序。

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

好的。我正在使用从Windows中使用蓝牙Le Lab应用程序来测试BLE。在此应用程序中,我可以看到所使用的服务。

当我运行ble_app_peripheral项目时,我可以连接到relint(PC)。而且我也可以看到设备信息服务和一个不舒服的服务。我能够阅读所有字符。请参阅上面的附加屏幕截图以查看该应用程序。

Now, I am looking to develop a new custom service which should read data from serial pins(Rx,Tx) continously.

Is there any tutorial or example how can we create a new custome service which reads the serial data?.

Also a question unclear for me is that the Codeless is only for dialog kits or can I use in my custom board?.

谢谢你。

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

CodeLess can be used with any DA1458x based projects.

玩具可以请求e clarify this question?

“Is there any tutorial or example how can we create a new custome service which reads the serial data?.”

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

玩具可以请求e clarify this question?

“Is there any tutorial or example how can we create a new custome service which reads the serial data?.”

simply i can say

Is there any tutorial or example how can we create a new custome service?.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

Please take a look at the following documents:

AN-B-029:教程 - 在DA1458x上开发自定义配置文件

Tutorial 2 : Adding Characteristics - Custom Proflle Creation

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi PM_Dialog,

Hi 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 ?.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

Yes you can receive the data and send them to a peer BLE device using the notifications/indications.

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
can you please provide with a

can you please provide with a example code or user guide or something .

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
I dont know whether you

I dont know whether you understnad or not.

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.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

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.

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

Do you know any application where I can make communication with BLE like DSPS on windows?. 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.

First I should find some windows application and then modify the ble_app_peripheral code or device_sps code to have communication.

Is there any tutorial how to change device_sps code to other application?.

Could you please suggest how can I go ahead step by step.

我的想法是:

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.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

Do you know any application where I can make communication with BLE like DSPS on windows?

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.

Can you please clarify this question: “Is there any tutorial how to change device_sps code to other application?.”

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

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

You mentioned "The one of them will be connected with your PC". How? can you explain this?.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

您将有两个DA14580板。其中一个将通过USB电缆与您联系。在PC侧,您可以拥有串行监视器,以便打印接收的数据。另一个板将与PC一起将数据传输到连接的电路板。其中一个应该是主人和另一个外围设备。但是,我们在PC侧没有任何应用。

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi 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.

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?.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

SDK不支持将设备配置为中央的项目。您应该通过自我配置它,或者我可以为您提供指导方针来实现它。我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。此外,您可以使用它DSPS项目。

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi PM_Dialog,

Hi PM_Dialog,

谢谢你。I have tried it.

我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。

I have used CodeLess and configured the central device. And I am able to connect the peripheral with central device. I have just follwed the steps mentioned at CodeLess examples.

外围设备正在运行DSPS项目。该外围串行引脚(P0.4和P0.5)并与控制器连接。可以在串行端子上打印来自外围串行引脚的数据?

我没有看到串行终端上的数据。通常它正在使用Android应用程序。我在串行端子上配置中央设备时看到了波特丽的讨论是57600,虽然DSPS项目的波特拉特是115200.这是好吗?

我该怎么办将数据从外围到串行终端打印到命令?

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

  • Peripheral is running the sps_device project
  • Central is connected with the PC and it’s running the CodeLess project.

Is my assumption correct? How you are sending data? 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
  • 与PC连接的中央将运行SPS_HOST项目。
  • The DA14580 SPS application supports both GAP central and peripheral roles.

中央设备上的应用程序自动启动扫描并连接到支持串行端口服务的第一个发现的外围设备。

您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?如果是,则应将数据Throght通知从外设发送到中央,中央将它们打印到串行监视器中。

Also, which board are you using? Any of our development boards or you have a custom board?

Thanks, PM_Dialog

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

  • Peripheral is running the sps_device project
  • Central is connected with the PC and it’s running the CodeLess project.

Is my assumption correct?

Yes.

How you are sending data?

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.

您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?

Only central is connected with PC via USB. Basically my central device is PAN1740 board.

If I run sps_host on central then CodeLess is no more. right?. I will try to follow the above mentioned steps. Thank you.

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

I did like you mentioned above.

Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.

你应该于通知的发送数据Peripheral to the Central and the Central will print them into the Serial Monitor.

你能解释一下我如何通过从外围到中心的通知发送数据?这里只有中央设备通过USB连接到PC而不是外围设备。

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

关于您上次发布和SPS_HOST配置:

  1. 您使用的是哪个UART引脚?
  2. Which are the UART configurations?
  3. Which is the Serial Monitor Configuration? (baud rate etc)
  4. Are you using Flow Control? If yes, in which pins are the RTS/CTS ?
  5. 您能否请使用嗅探器o确保数据从空气中从外围传输?
  6. If you are using the DSP mobile application, are you able to see the data that are you sending?

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

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

您使用的是哪个UART引脚?

P0.4 TXD和P0.5 RXD。

Which is the Serial Monitor Configuration? (baud rate etc)

Im using Teraterm and the baudrate is 1152000,data: 8 bit,Parity : none, Stop bits : 1 bit.

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 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.

我知道他们两个都已连接,因为当我运行主机代码时,我没有看到其他设备上的广告。这意味着SPS_DEVICE和主机连接。你能指导我如何从两个ble送数据?正如你之前提到的,我应该如何发送通知?

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

It is working. I forgot change the SW flow control in host code.

现在我能够将数据从我的自定义板(外设)发送到中央设备,然后在串行终端中发送。谢谢你。

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

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.

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

甘地
Offline
Last seen:1 year 3 months ago
Joined:2019-05-02 13:00
Hi,

Hi,

Initially I set

const static 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.

Can you please tell me how to do that. Thank you.

PM_Dialog
Offline
Last seen:3小时56分钟前
Staff
Joined:2018-02-08 11:03
嗨甘地,

嗨甘地,

DSP仅支持扩展睡眠模式和HW流量控制(RTS / CTS)。不支持深度睡眠模式

You could set it in extended sleep mode like follow:

const static sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;

The system will go into extended sleep mode between advertising or connection intervals,

Thanks, PM_Dialog