Need Help in Making UART connection

28 posts / 0 new
最后一篇
Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Need Help in Making UART connection

Hello ,
I Have a PAN1740 and a DA14580DEVKT-B modules. i need to set this both modules acting like a UART bridge.in the sense connect PAN1740 to one PC and DEVK to another PC. and exchange data from both. I know,SPP is not supported in BLE. however my data is <=20 bytes per TX or RX. i dont know where to start. Please help me configure like Uart bridge. Thank u

Ingo
Offline
最后一次露面:4个月2天前
Guru Panasonic
加入:2014-01-16 11:19
Hello,

Hello,

do you want to use these two devices for evaluation or in the final application?
For the PAN1740 is it the USB dongle you have or just the module and you want to place the module into your application?
The design guide is the best way to start with the module:
http://pideu.panasonic.de/files/Documents/WM%20Documents/PAN1740/PAN1740...

Regards,
Ingo

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Hello,

Hello,
非常感谢您的回复。现在我有pan1740 usb dongle.first我需要尝试使用易于使用的USB模块和对话框Devk,最后我将稍后替换模块.help我在哪里开始实现UART样式20bytes ascii tx和rx之间的2个设备.thank你

Ingo
Offline
最后一次露面:4个月2天前
Guru Panasonic
加入:2014-01-16 11:19
我们将有一个串行港口

我们将在几周内为DA14580提供串行端口服务,如DA14580。
直到然后请从设计指南中从示例开始。

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Hi sir,Thank u very much. we

Hi sir,Thank u very much. we are running with time ,and we need to finish this in on or before end of this week.so kindly provide us some help.we are completely going out of patience with this, is there any thing simple like Bluegiga scripts for dialog..the projects are very confusing and contains so many files..i dont understand where to start. i checked the throughput and proximity examples, i dont understand where to edit to customise it..,...i need to just add the profile (service,characteristics) to be added and need to call the Uart send and receive ..i dont understand where to start.please kindly guide me.Thank u

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Hi sir,Thank u very much. we

Hi sir,Thank u very much. we are running with time ,and we need to finish this in on or before end of this week.so kindly provide us some help.we are completely going out of patience with this, is there any thing simple like Bluegiga scripts for dialog..the projects are very confusing and contains so many files..i dont understand where to start. i checked the throughput and proximity examples, i dont understand where to edit to customise it..,...i need to just add the profile (service,characteristics) to be added and need to call the Uart send and receive ..i dont understand where to start.please kindly guide me.Thank u

Ingo
Offline
最后一次露面:4个月2天前
Guru Panasonic
加入:2014-01-16 11:19
Which profile do you want to

Which profile do you want to use? They are all ready build and you can find them in the SDK e.g. - DA14580_SDK_3.0.2.1\dk_apps\src\ip\ble\hl\src\profiles
Maybe the streamdata profile would be the profile you need?
There is no scripting available, you have to use the already build in Keil projects. Scripting is not an option if you want to achive good performance in terms of power consumption.
如所说,请从设计指南开始,让我知道您有任何问题。不要指望一周内有一个正在运行的项目。如果您需要AT命令样式模块,则必须选择另一个选项。DA14580可在许多方面可配置,这意味着您将无法与您在Keil中的项目和示例一起使用。

You may also email towireless@eu.panasonic.com.如果有任何问题

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
非常感谢你您的回复。先生我能听懂ood that, nothing can be done overnight. Due to so many files per project, getting confused about where to start and what to do. i gon ethrough the design guide and software architechture guide,..but still confused about where to start. as per my undertanding, BLE requires one profile editing, custom application code to deal with the pheripherals, and need to update the values on the profile structures. but i need help about where to add the custom code.

1.what are the files needed for any type of BLE application, which dont need any config or changes..i mean generic code part...
2.我需要自定义的文件是什么
like that kindly provide some help.with some example.kindly share your mail ID.Thank u

je_dialog.
Offline
最后一次露面:3 hours 38 min ago
职员
加入:2013-12-05 14:02
Hello Chandra2sekhar2000, I

你好Chandra2sekhar2000,我问了其中一个团队来看看你的问题。与此同时,您可能会发现以下线程可从非常相似的问题中了解。

http://support.dialog-semicondiondiondiondum/sdk-program-datastructure.

BR JE_DIALOG.

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
Thank u for reply.i gone through the abouve link.but now my problem is, what are the files which needs to be common for a basic BLE application,which does not require any alteration, and what files need to be altered. for example ..my requirement is to implement a device which can act as central or pheripheral depending on a input switch position or a command from UART. and it needs to connect to another module .simple 20 bytes Ascii has to be exchanged in between both the connected devices, with notification.for achiving this application, where should i start ,with which project i should take as base, what files needs modification ,which profile should i use etc things , i need help.if possible kindly give us the mail ID of an technical developer, who can assist me through out the process...Thank u

py_dialog.
Offline
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
嗨chandra2sekhar2000,

嗨chandra2sekhar2000,

Fully understand your urgency. Since you are looking for some low data rate app like function, I would like to suggest you refer to our sample128 reference. It's inside our sdk and there is an application note on that which you can download from our website.
In general the sample128 profile have two very simple characters which allow write and a notification character. You can reuse those two writable characters to transmit data. As I remember, Each character only have one writable byte but obviously you can change it. Then you will have a most simple spp in BLE layer. The application note is about our software architecture, you can search this key words to find it. There is very detailed steps tell you which file need to change and how. However, you still need to build two application level files app_sample128.c and app_sample128_task.c. Those files handle BLE profile messages like database build, write indication and notification etc. above application note mentioned how to create these two files. If you feel hard to create these files from scratch, you can also refer to some simple profile application code like App_diss.c and app_diss_task.c.
最后,您需要处理UART。您可以使用DA14580将Prod_Test项目引用到托架和RX下。
Hope this helps you! Good luck and hope you can made!

Regards!
PY

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
Thank u very much for giving a nice explanation..i will go though the steps as u mentioned...in between for any doubts and clarification i get back to u.Thank u..

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
i have been trying get the application note for sample128...but i was not able to find it....today..we have changed some specs..kindly guide me what needs to be done to achive the following and where to start
1.带外部主机控制器的击球设备
2.通过每1秒发送40个字节的数据...(我需要澄清关于实现这个机制的数据包......我是否应该使用来自中央设备的通知或SHAR。。在我尝试读取句柄时,它应该回复内容),它应该转到低功耗模式
3.the data should be sent via UART ...
4.on external Host controller ..what are the HCI commands and prtotocol formats to be followed?

for pheripheral where should i start to achive the above application.

5.一个PC侧,我打算使用任何USB BLE Con​​gles。从编程PC侧应用程序,在哪里可以获得标准协议数据或在VB.NET中使用的任何示例

感谢你..

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
i have been trying get the application note for sample128...but i was not able to find it....today..we have changed some specs..kindly guide me what needs to be done to achive the following and where to start
1.带外部主机控制器的击球设备
2.通过每1秒发送40个字节的数据...(我需要澄清关于实现这个机制的数据包......我是否应该使用来自中央设备的通知或SHAR。。在我尝试读取句柄时,它应该回复内容),它应该转到低功耗模式
3.the data should be sent via UART ...
4.on external Host controller ..what are the HCI commands and prtotocol formats to be followed?

for pheripheral where should i start to achive the above application.

5.一个PC侧,我打算使用任何USB BLE Con​​gles。从编程PC侧应用程序,在哪里可以获得标准协议数据或在VB.NET中使用的任何示例

感谢你..

py_dialog.
Offline
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
Hi chandra2sekhar2000,

Hi chandra2sekhar2000,

应用笔记UM-B-015_DA14580软件架构将指导您在示例128项目上。
从您描述中,它看起来仍然像SPP透明通信项目,对吧?那么这里将是我的建议:
1.外围方面,你把所有祝福堆栈和profile in DA14580 and only leave uart communication to host MCU, just like what we talked before. Dont' use HCI because you may need to separate BLE stack and profile and need to handle all message exchanging between and state machine as well. I'm not saying you can't do this but absolutely will need more time. Then you just need to customize your SPP like profile based on current profile example(sample128 or DISS etc.) and hand UART communication(please refer to prod_test project in our SDK). Even though I think you will spend week time on this, anyway it's the fastest way I can think of. If you really hope to use HCI, you can refer to paper UM-B-017 and RW-BLE-HOST-IS. In prod_test project you can also find reference code(we actually not open HCI interface to end user).
2. On PC side, its hard to give your advice because I have no idea what kind dongle you will have and what firmware it will have. If you can not program the dongle, you will not be able to put your proprietary profile inside. So maybe you can buy Dailog BLE dongle which has DA14580 inside and you can program it the same way. Then you will have maxim flexibility. Dailog BLE dongle is packet along with our starter kit.
Finally, this may not be a very short project as you expected. Hope this help!

Regards!
PY

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
先生,你好,

先生,你好,
after strugling a lot..with the help of software developer guide ,i cloned and completed steps up to diss adding. how ever after spending so many hours clearing path errors , it compiled succesfully. i programmed to the kit. when i used BLE monitor along with CC2540 based BLE USB dongle..actually it is supposed to show the manufacture name and other parameters as stated in the developer guide..but i am able to scan and connect it.but the names or services or not getting displayed ...simply 3 attributes are listed with handle numbers 1,12,16..but its values are not able read...

how ever when i try to connect a USB dongle pan1740 with connection manager, boot as central..i am able read the values. why is it so..the BLE monitor tool works with regular BLE devices.then why it not worked of Dialog product. i checked with proximity profile also..same results..why is it so?

py_dialog.
Offline
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
Hi chandra2sekhar2000,

Hi chandra2sekhar2000,

很高兴知道你在两天内的进步!
你说USB加密狗Pan1740工作正常。而且如果您可以在iPhone中尝试一些应用程序,您可以轻松连接到DA14580接近配置文件,读取和写入值。我认为这些应用程序还将与您自己的项目合作。我过去没有尝试使用DA14580套件的TI CC2540监视器。所以很难说出的问题是什么。也许关于CC2540固件存在一些限制。对不起,我无法帮助您了解该设备。

Regards!
PY

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Hi Sir,

Hi Sir,
非常感谢你的回复。我做了一个关于sample128的添加..有史以来,我需要帮助您进一步的步骤来创建app_sample128.c和任务文件等。进一步的UART步骤。谢谢你

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
尊敬的先生,

尊敬的先生,
if u have app_sample128.c &app task c & header files,kindly mail me atchandra2sekhar2000@yahoo.co.uk....i will try to extend it from 1 char to 20 char .and also i need 2 packets to be send....i need your valuable help as our completion dead line date is tommorow.hope you can help us.Thank u

py_dialog.
Offline
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
Hi chandra2sekhar2000,

Hi chandra2sekhar2000,

Sorry I'm off work and it's 23 o'clock now. Anyway, let me see if I can find way help you.

Regards!
PY

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
尊敬的先生,

尊敬的先生,
非常感谢您。我已经从一个朋友中收到了一些app_sample128文件。似乎与Sample128榜样无关。您的朋友发送的文件是针对某些邻近应用程序的自定义文件。先生,请友好地帮助我,通过发送示例128应用程序文件......发送一个char ..发送一个char ..和我也引导我如何扩展它以及如何将UART添加到它......我们持续我们的时间范围......请帮助我。谢谢你先生..Today是印度的节日,但考虑到Hoiliday,我甚至在星期天工作也是/ ......但没有进展。

py_dialog.
Offline
最后一次露面:2 years 10 months ago
职员
加入:2014-08-25 09:59
Hi chandra2sekhar2000,

Hi chandra2sekhar2000,

Sorry, there is no app_sample128 files can be released from Dialog. We just guide customer the way to build up application level file(we thought that is not hard but really need some time). And each customer will have their own way to build up application level code based on their target. I myself did not compose app_sample128. Here I can only send a customized app_sample128 code composed by other people which I have. PLEASE BE NOTED THIS CODE CAN ONLY FOR YOUR REFERENCE BECAUSE THEY ARE NOT DIALOG RELEASE.
Come back to your application, I believe you still need to understand our software structure if you need to build up customized profile as well as customized low level driver, this is the same for every vendor. If you have specified question related to our SDK, I would be very happy to help you.

Regards!
PY

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Hi...sir

Hi...sir
any update about your SPP profile...really i was very very disaapointed with this Dialog BLE..it has got good hardware and good tx power.but really development sucks..its taking out most of our time,but no positive progress yet.

je_dialog.
Offline
最后一次露面:3 hours 38 min ago
职员
加入:2013-12-05 14:02
Hello, we have just put the

Hello, we have just put the first versio of this reference design page to download...

谢谢&br.
je_dialog.

Nater
Offline
最后一次露面:6 years 3 months ago
加入:2014-09-24 15:40
嗨,大家好,

嗨,大家好,
我只是想对这个线程发表评论。我也试图在这里开发类似的东西。要开始,对话和松下,你们在这里给了一些非常好的帮助。来自此线程和相关文档,我已经能够连接大部分点。初学过程中GAPM后的曲线的链加载非常智能。(我通过在几年前设计的另一个项目中使用了类似的状态机通过系统消息)。在尝试调试使用Pan1740模块(以及运行代码的过程中,尝试调试使用的任何应用程序时提及)。您无法使用调试器运行Cortex-M0的编译代码,因为它会陷入一小时的循环,该循环等待关闭调试器。我只能通过使用Connection Manager实用程序宣传(接近示例,完全托管)。
I'm still using the software guide to build up from the template example and pull from the other project code bases the necessary components and profiles to utilize a bi-directional spp. The big problem I foresee after this is the creation of the profiles on the opposite side of the link. Since Bluetooth developers don't seem to have an SPP for BLE, I'm thinking there wont a default profile I can program the dialog to mimic (thus saving me time coding the profiles to run a series of smart phones, ubuntu and windows). I could be wrong here.

Thanks!
-Nate

je_dialog.
Offline
最后一次露面:3 hours 38 min ago
职员
加入:2013-12-05 14:02
你好Nate,我们刚刚发布

你好Nate,我们刚刚发布our serial port service custom profile with an Android APK wtih an IoS APP coming later in Q4. There will also be an update later in Q4 to add extended sleep support and hardware flow control, but it should be good as-is today to get you running. It can do 14580 to 14580 or 14580 to Android central role.

You can download it all here : note the Android APK is inside the binaries folder ... User manual explians all the rest.

http://support.dialog-semicondiondiondum/ref-designs.

谢谢Je_Dialog.

Chandra2sekhar2000
Offline
最后一次露面:6年4个月前
加入:2014-05-11 10:47
Thank u very much sir.i will

Thank u very much sir.i will go through and get back to u,Thank u once again

Nater
Offline
最后一次露面:6 years 3 months ago
加入:2014-09-24 15:40
谢谢你们!你真棒!

谢谢你们!你真棒!

主题锁定