⚠️ 嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//www.wsdof.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
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.
谢谢你。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 ?.
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.
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.
您能澄清这个问题吗:“有什么教程可以将设备\u 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.
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?.
外围运行需求方的项目。这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 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.
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?.
one BEL设备将运行sps设备应用程序,它将是外围设备。外围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”.
嗨甘地,
您能澄清哪个是您的要求?如果我能够正确理解,你想完成它将DA14585直接连接到PC的蓝牙?
Thanks, PM_Dialog
你好,
对。我想把我的DA14580连接到PC,然后我应该能够发送一些数据从BLE到PC应用程序。是否有从对话框侧完成的PC应用程序?。
有代码示例吗?。
我可以将BLE与BLE应用程序\u安全项目连接/配对。此外,我需要一些数据传输到PC。请分享一些信息,我如何才能达到这一点。
嗨甘地,
您可以使用无附加方案应用程序设计和从/您的PC的命令发送。但是,您需要双DA14580S。请阅读用户手册:
http://lpccs-docs.dialog-semicondiondumon/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.
我有蓝牙Le Lab软件安装在我的Windows10 PC中。在此应用程序中,我能够看到BLE信息。请看图片。
嗨甘地,
据我所知,此功能没有任何PC应用程序。
Thanks, PM_Dialog
你好,
好的。我正在使用从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?.
另外一个不清楚的问题是,无代码只用于对话框工具包,或者我可以在我的自定义板中使用?。
谢谢你。
嗨甘地,
无代码可用于任何基于DA1458x的项目。
玩具可以请求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
你好,
玩具可以请求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?.
嗨甘地,
请看一下以下文件:
AN-B-029:教程 - 在DA1458x上开发自定义配置文件
教程2:添加特征 - 自定义PROFLLE创建
Thanks, 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 ?.
嗨甘地,
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串行引脚连接到MSP控制器。BLE接收数据。我应该把这些数据发送给客户。这里的Clint是一台PC。PC中的蓝牙将打开,它将与我们的BLE连接。
我想在PC上看到这些数据。
嗨甘地,
抱歉,我误解了你的问题。是的,您可以接收数据并通过空中传输,但我们没有任何应用程序从PC端。我们有一个例子,通过一个BEL连接发送数据,但是中心是一个手机。请检查SDK的ble_UAPP_U外围示例。本示例使用通知将数据发送到手机上。
Thanks, PM_Dialog
你好,
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代码。
或者是否有其他方法。
这里我使用我的自定义板,它有MSP控制器,它是串行连接到DA14580。非常感谢。
嗨甘地,
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.
您能澄清这个问题吗:“有什么教程可以将设备\u 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
你好,
你提到“其中一个将连接到您的电脑”。怎样?你能解释一下吗?。
嗨甘地,
您将有两个DA14580板。其中一个将通过USB电缆与您联系。在PC侧,您可以拥有串行监视器,以便打印接收的数据。另一个板将与PC一起将数据传输到连接的电路板。其中一个应该是主人和另一个外围设备。但是,我们在PC侧没有任何应用。
Thanks, PM_Dialog
嗨,下午对话,
好 啊。听起来不错。你能告诉我一个例子项目,它有主程序和外围程序的代码。在SDK中,我在ble-examples文件夹中看到了所有不同的项目。
例如,我的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?.
嗨甘地,
SDK不支持将设备配置为中央的项目。您应该通过自我配置它,或者我可以为您提供指导方针来实现它。我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。此外,您可以使用它DSPS项目。
Thanks, PM_Dialog
嗨,下午对话,
谢谢你。I have tried it.
我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。
我使用的无附件和配置了中央设备。我能够将外围设备与中央设备连接。我刚刚在无附加例子中提到的步骤。
外围运行需求方的项目。这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?.
我没有看到串行终端上的数据。通常它正在使用Android应用程序。我在串行端子上配置中央设备时看到了波特丽的讨论是57600,虽然DSPS项目的波特拉特是115200.这是好吗?
What shall I do to print the data from peripheral to serial terminal through AT Commands?.
嗨甘地,
我的假设是正确的吗?您是如何发送数据的?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.
中央设备上的应用程序自动启动扫描并连接到支持串行端口服务的第一个发现的外围设备。
您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?如果是,则应将数据Throght通知从外设发送到中央,中央将它们打印到串行监视器中。
另外,你用的是哪一块木板?我们的开发板中有没有,还是有定制的板?
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.
您是否可以通过USB电缆连接外围设备和中心,是否应与PC连接?或者只连接中央?
Only central is connected with PC via USB. Basically my central device is PAN1740 board.
如果我在中央运行sps主机,那么无代码就不再是了。正确的?。我将尝试按照上述步骤进行操作。非常感谢。
你好,
我确实喜欢你上面提到的。
Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.
您应该将数据通过通知从外围设备发送到中央,中央将它们打印到串行监视器中。
你能解释一下我如何通过从外围到中心的通知发送数据?这里只有中央设备通过USB连接到PC而不是外围设备。
嗨甘地,
关于您上次发布和SPS_HOST配置:
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
你好,
您使用的是哪个UART引脚?
P0.4 TXD和P0.5 RXD。
哪个是串行监视器配置(波特率等)
Im using Teraterm and the baudrate is 1152000,data: 8 bit,Parity : none, Stop bits : 1 bit.
你在使用流量控制吗?如果是,RTS/CTS在哪个引脚中?
我正在使用MSP控制器的软件流控制。在SPS_DEVICE中,我看到软件流控制默认。我没有改变它。但是,我已将RTS和CTS引脚连接到MSP控制器。我正在将数据从控制器获取到BLE。但不是从ble到ble。
您能否请使用嗅探器o确保数据从空气中从外围传输?
我会用的。通常外围设备成功地发送数据。因为从外围设备的相同代码中,我可以看到android应用程序中的数据。因此外围方面没有问题。
而不是Android IM更改为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?.
你好,
它正在工作。我忘记在主机代码中更改软件流控制。
现在我能够将数据从我的自定义板(外设)发送到中央设备,然后在串行终端中发送。谢谢你。
嗨甘地,
one BEL设备将运行sps设备应用程序,它将是外围设备。外围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_state_ut app\u default_usleep\u mode=ARCH_sleep_uoff;
现在我把数据发送到中央设备,一切都很好。我想知道如何把外围设备送到睡觉。我的目标是发送数据几分钟,并发送外围设备到睡眠模式,以节省电源。
Can you please tell me how to do that. Thank you.
嗨甘地,
DSP仅支持扩展睡眠模式和HW流量控制(RTS / CTS)。不支持深度睡眠模式
您可以将其设置为扩展睡眠模式,如下所示:
const static sleep_state_ut app\u default_usleep\u mode=ARCH\u EXT_usleep_uon;
系统将在广告或连接间隔之间进入延长睡眠模式,
Thanks, PM_Dialog