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那样与BLE进行通信吗?. 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.
你能澄清一下这个问题吗:“有没有关于如何将设备的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?.
Central is connected with the PC and it’s running the CodeLess project.
我的假设正确吗?
Yes.
如何发送数据?
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与BLE\u app\u安全项目连接/配对。此外,我需要有一些数据传输到电脑。请分享一些信息,我如何才能做到这一点。
甘地,
您可以使用无代码参考应用程序设计并从/您的PC发送AT命令。但是,您需要双DA14580。请阅读用户手册:
http://lpccs-docs.dialog-semiconductor.com/da1458x\u无代码/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.
我有蓝牙乐实验室软件安装在我的windows10电脑。在这个应用程序中,我可以看到乐的信息。请看照片。
甘地,
据我所知,没有任何PC应用程序具有此功能。
Thanks, PM_Dialog
你好,
好 啊。我使用蓝牙LE实验室应用程序从windows测试的BLE。在这个应用程序中,我可以看到所使用的服务。
当我运行ble\u app\u外设项目时,我可以连接到cleint(PC)。我还可以看到设备信息服务和未知服务。我能看懂所有的字。请参阅以上附加的屏幕截图,以查看应用程序。
现在,我正在寻找开发一个新的定制服务,应该读取数据从串行引脚(Rx,Tx)不断。
Is there any tutorial or example how can we create a new custome service which reads the serial data?.
还有一个问题我不清楚的是,无代码的只是对话框套件或我可以在我的自定义板使用?。
Thank you.
甘地,
无代码可用于任何基于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\U对话,
非常感谢。我有一个第三方控制器连接到BLE的串行引脚。第三方控制者向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.
我只用了一个词。此串行引脚连接到MSP控制器。BLE接收数据。我应该把数据发给客户。这里的cleint是一台PC。PC中的蓝牙将被打开,它将与我们的BLE连接。
我想在电脑上看到这些数据。
甘地,
很抱歉搞混了-我误解了你的问题。是的,您可以接收数据并通过空中传输,但我们没有任何来自PC端的应用程序。我们有一个通过BLE连接发送数据的例子,但是中心是移动电话。请查看SDK的ble\u app\u外围示例。本例使用通知将数据发送到移动电话。
Thanks, PM_Dialog
你好,
你知道有什么应用程序可以像windows上的dsp那样与BLE进行通信吗?. 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\u app\u外围代码或device\u sps代码以进行通信。
Is there any tutorial how to change device_sps code to other application?.
你能建议我怎样一步一步走下去吗。
我的想法是:
1查找一些windows应用程序。
2修改设备\u sps或ble\u app\u外围代码。
或者有没有别的办法。
这里我使用我的自定义板有MSP控制器,它是串行连接到DA14580。非常感谢。
甘地,
你知道有什么应用程序可以像windows上的dsp那样与BLE进行通信吗?
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.
你能澄清一下这个问题吗:“有没有关于如何将设备的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
嗨,PM\U对话,
好 啊。听起来不错。你能告诉我一个例子项目,其中有代码为主和外围设备。在ble\u exampls文件夹中看到的SDK中,我看到了所有不同的项目。
例如,我的BLE连接在我的硬件被认为是外围设备和BLE连接到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?.
Is my concept is right?.
甘地,
SDK不支持将设备配置为中心设备的项目。您应该自行配置,否则我可以为您提供实现它的指南。我建议您从无代码参考应用程序项目开始,并发送AT命令将其配置为中心设备。此外,您还可以将其用于DSPS项目。
Thanks, PM_Dialog
嗨,PM\U对话,
非常感谢。我试过了。
我建议您从无代码参考应用程序项目开始,并发送AT命令将其配置为中心设备。
我使用了无代码和配置的中央设备。我可以把外设和中央设备连接起来。我刚刚完成了无代码示例中提到的步骤。
外围设备正在其上运行DSPS项目。此外设串行引脚(P0.4和P0.5)与控制器相连。可在串行终端?上打印来自外围串行引脚的数据?。
我没有看到串行终端上的数据。正常情况下,它是在android应用程序上工作的。我看到在串行终端上配置中央设备时的波特率是57600,虽然DSPS项目中的波特率是115200。这样可以吗?。
如何通过AT命令将数据从外设打印到串行终端?。
甘地,
我的假设正确吗?如何发送数据?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连接吗?还是只连接中央?如果是的话,你应该从外设向中央发送数据传送通知,中央将把它们打印到串行监视器上。
另外,你用的是哪块板?我们的开发板或你有定制板?
Thanks, PM_Dialog
你好,
我的假设正确吗?
Yes.
如何发送数据?
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\u host,那么就不再是无代码的了。正确的?。我将努力遵循上述步骤。非常感谢。
你好,
我确实喜欢你上面提到的。
Peripheral is running with sps_device and central is running with sps_host. I do not see the data on serial terminal.
你应该把数据从外设发送到中央,中央会把它们打印到串行监视器上。
你能给我解释一下如何通过通知把数据从外设发送到中心吗?。这里只有中央设备通过USB连接到PC,而不是外设。
甘地,
关于上一次post和sps\U主机配置:
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.4txd和P0.5rxd。
哪个是串行监视器配置?(波特率等)
Im using Teraterm and the baudrate is 1152000,data: 8 bit,Parity : none, Stop bits : 1 bit.
你在用流量控制吗?如果是,RTS/CTS在哪些引脚中?
我使用软件流控制与MSP控制器。在sps\u设备中,我看到软件流控制默认值。我没有改变它。不过,我已连接的RTS和CTS引脚的MSP控制器。我正在从控制器获取数据到BLE。但不是一个接一个。
你能用一个嗅探器来确认数据是从外设通过空中传送的吗?
我会用的。通常外设发送数据成功。因为从外设的相同代码中,我可以看到android应用程序中的数据。因此外围没有问题。
而不是安卓我改为个人电脑。
如果您使用的是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\u设备和主机已连接。你能告诉我如何从两个ble发送数据吗?。正如你之前提到的,我应该如何发送通知?。
你好,
它正在工作。我忘了在主机代码中更改软件流控制。
现在我可以发送数据从我的自定义板(外设)到中央设备,然后在串行终端。非常感谢。
甘地,
一个BLE设备将运行sps\U设备应用程序,它将是外围设备。外围设备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\u state\u t app\u default\u sleep\u mode=ARCH\u sleep\u OFF;
现在我正在向中央设备发送数据,一切正常。我想知道如何让外设进入睡眠状态。我的目标是发送几分钟的数据和发送外设到睡眠模式,以节省电力。
Can you please tell me how to do that. Thank you.
甘地,
DSP只支持扩展睡眠模式和硬件流量控制(RTS/CTS)。不支持深度睡眠模式
您可以将其设置为延长睡眠模式,如下所示:
const static sleep_state_t app_default_sleep_mode = ARCH_EXT_SLEEP_ON;
系统将在广告或连接间隔之间进入延长睡眠模式,
Thanks, PM_Dialog