⚠️ 嗨,...感谢您来论坛。令人兴奋的消息!我们现在正在迁至我们的新论坛平台,将提供更好的功能,并包含在主对话框网站中。所有帖子和帐户都已迁移。我们现在只接受新论坛上的流量 - 请发布任何新线程//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.
您是否知道任何应用程序,我可以在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.
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?.
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.
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_app_security项目连接/配对ble。此外,我需要对PC进行一些数据传输。请分享一些信息如何才能实现这一目标。
嗨甘地,
您可以使用无附加方案应用程序设计和从/您的PC的命令发送。但是,您需要双DA14580S。请阅读用户手册:
http://lpccs-docs.dialog-semicondiondumon/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.
我有蓝牙Le Lab软件安装在我的Windows10 PC中。在此应用程序中,我能够看到BLE信息。请看图片。
嗨甘地,
据我所知,此功能没有任何PC应用程序。
Thanks, PM_Dialog
你好,
好的。我正在使用从Windows中使用蓝牙Le Lab应用程序来测试BLE。在此应用程序中,我可以看到所使用的服务。
当我运行ble_app_peripheral项目时,我可以连接到relint(PC)。而且我也可以看到设备信息服务和一个不舒服的服务。我能够阅读所有字符。请参阅上面的附加屏幕截图以查看该应用程序。
现在,我希望开发一种新的自定义服务,它应该连续地从串行引脚(Rx,Tx)读取数据。
Is there any tutorial or example how can we create a new custome service which reads the serial data?.
对于我来说,问题也不清楚是,无附件仅适用于对话套件或我可以在我的自定义板上使用吗?
谢谢你。
嗨甘地,
无附带可以与任何基于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?.
嗨甘地,
请查看以下文件:
AN-B-029:教程 - 在DA1458x上开发自定义配置文件
教程2:添加特征 - 自定义PROFLLE创建
Thanks, PM_Dialog
嗨pm_dialog,
谢谢你。我有一个连接到串行引脚的第三方控制器。第三方Condler将一些序列数据发送到BLE。我可以使用自定义配置文件发送该序列数据吗?
嗨甘地,
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上的数据。
嗨甘地,
抱歉混乱 - 我误解了你的问题。是的,您可以接收数据并在空中传输它们,但我们没有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?.
你能否建议一步一步一步一步。
我的想法是:
1.找到一些Windows应用程序。
2.修改device_sps或ble_app_peripheral代码。
或者是否有其他方法。
在这里我使用我的自定义板,它具有MSP控制器,它是连接到DA14580的串行栏。谢谢你。
嗨甘地,
您是否知道任何应用程序,我可以在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连接”。如何?你能解释一下吗?
嗨甘地,
您将有两个DA14580板。其中一个将通过USB电缆与您联系。在PC侧,您可以拥有串行监视器,以便打印接收的数据。另一个板将与PC一起将数据传输到连接的电路板。其中一个应该是主人和另一个外围设备。但是,我们在PC侧没有任何应用。
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?.
嗨甘地,
SDK不支持将设备配置为中央的项目。您应该通过自我配置它,或者我可以为您提供指导方针来实现它。我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。此外,您可以使用它DSPS项目。
Thanks, PM_Dialog
嗨pm_dialog,
谢谢你。我试过它。
我建议您从无附加方案参考应用程序项目开始并发送命令以将其配置为中央设备。
我使用的无附件和配置了中央设备。我能够将外围设备与中央设备连接。我刚刚在无附加例子中提到的步骤。
外围设备正在运行DSPS项目。该外围串行引脚(P0.4和P0.5)并与控制器连接。可以在串行端子上打印来自外围串行引脚的数据?
我没有看到串行终端上的数据。通常它正在使用Android应用程序。我在串行端子上配置中央设备时看到了波特丽的讨论是57600,虽然DSPS项目的波特拉特是115200.这是好吗?
我该怎么办将数据从外围到串行终端打印到命令?
嗨甘地,
我的假设是否正确?你是如何发送数据的?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.
如果我在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通知从外设发送到中央,中央将它们打印到串行监视器中。
你能解释一下我如何通过从外围到中心的通知发送数据?这里只有中央设备通过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.
我知道他们两个都已连接,因为当我运行主机代码时,我没有看到其他设备上的广告。这意味着SPS_DEVICE和主机连接。你能指导我如何从两个ble送数据?正如你之前提到的,我应该如何发送通知?
你好,
这是工作。我忘记在主机代码中更改SW流量控制。
现在我能够将数据从我的自定义板(外设)发送到中央设备,然后在串行终端中发送。谢谢你。
嗨甘地,
一个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.
嗨甘地,
DSP仅支持扩展睡眠模式和HW流量控制(RTS / CTS)。不支持深度睡眠模式
您可以在扩展睡眠模式下将其设置为如下:
const static sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;
系统将在广告或连接间隔之间进行扩展睡眠模式,
Thanks, PM_Dialog