需要帮助制作UART连接

28篇帖子/ 0新
Last post
chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
需要帮助制作UART连接

你好 ,
我有一个pan1740和da14580devkt-b模块。我需要设置这两个模块,就像UART Bridge一样。在Sense Connect Pan1740到一台PC和Devk到另一台PC。并从两者交换数据。我知道,BLE不支持SPP。但是,我的数据是每个TX或Rx的<= 20个字节。我不知道从哪里开始。请帮助我配置像UART Bridge。感谢你

ingo.
离线
Last seen:4 months 4 days ago
格鲁鲁 Panasonic
Joined:2014-01-16 11:19
你好,

你好,

您是否希望使用这两个设备进行评估或在最终应用程序中?
对于Pan1740是您拥有的USB加密狗或只是模块,并且您想要将模块放入应用程序中?
设计指南是以模块开头的最佳方式:
http://pideu.panasonic.de/files/documents/wm%20documents/pan1740/pan1740 ...

问候,
ingo.

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
你好,

你好,
感谢你very much for reply. Right now i have PAN1740 Usb dongle.first i need to try with the readily available USB modules and Dialog devk and finally i will replace with Modules later.help me where to start for achieving UART style 20bytes ascii TX and RX between 2 devices.Thank u

ingo.
离线
Last seen:4 months 4 days ago
格鲁鲁 Panasonic
Joined:2014-01-16 11:19
We will have a serial port

We will have a serial port service like profile for DA14580 in a few weeks.
Till then please start with the examples from the design guide.

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
嗨,先生,非常感谢你。我们

嗨,先生,非常感谢你。我们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
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
嗨,先生,非常感谢你。我们

嗨,先生,非常感谢你。我们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.
离线
Last seen:4 months 4 days ago
格鲁鲁 Panasonic
Joined:2014-01-16 11:19
您想要哪种个人资料

您想使用哪种个人资料?他们都是准备好的构建,你可以在SDK中找到它们。- da14580_sdk_3.0.2.1 \ dk_apps \ src \ ip \ ble \ hl \ src \ compiles
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.
As said please start with the design guide and let me know where you have any issue. Do not expect to have a running project within a week. If you need AT commands style module you will have to choose another option. The DA14580 is configurable in many ways and this means you will not get around working with the projects and examples you have in the Keil.

You may also email towireless@eu.panasonic.comif there is any question

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello sir,

Hello sir,
非常感谢你您的回复。先生我能听懂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.任何类型的BLE应用程序所需的文件是什么,它不需要任何配置或更改.I均值通用代码部分...
2. what are the files i need to customise
like that kindly provide some help.with some example.kindly share your mail ID.Thank u

JE_Dialog
离线
Last seen:7 hours 3 min ago
Staff
Joined:2013-12-05 14:02
Hello Chandra2sekhar2000, I

Hello Chandra2sekhar2000, I have asked one of the team to look at your question. In the meantime, you might find the following thread useful to understand from a very similar question..

http://support.dialog-semiconductor.com/sdk-program-datastructure

BR JE_Dialog

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello sir,

Hello sir,
感谢你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
离线
Last seen:2年10个月前
Staff
Joined:2014-08-25 09:59
Hi Chandra2sekhar2000,

Hi Chandra2sekhar2000,

完全理解你的紧迫感。由于您正在寻找类似功能的低数据速率应用程序,我想建议您参考我们的示例128参考。它在我们的SDK中,您可以从我们的网站下载有一个应用程序说明。
通常,Sample128配置文件有两个非常简单的字符,允许写入和通知字符。您可以重用这两个可写字符来传输数据。我记得,每个角色只有一个可写的字节,但显然你可以改变它。然后,您将在BLE层中具有最简单的SPP。应用笔记是关于我们的软件架构,您可以搜索此关键词以查找。有非常详细的步骤告诉您需要更改哪些文件以及如何。但是,您仍然需要构建两个应用程序级别文件app_sample128.c和app_sample128_task.c。这些文件处理BLE配置文件邮件,如数据库构建,写入指示和通知等。上面的应用程序注意提到了如何创建这两个文件。如果您感觉很难从头开始创建这些文件,您也可以参考app_diss.c和app_diss_task.cn等一些简单的配置文件应用程序代码。
Finally you will need to dealing with Uart. You can refer to prod_test project to under stand both rx and rx with da14580.
希望这有助于你!祝你好运,希望你能做出!

问候!
PY

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello sir,

Hello sir,
非常感谢你,给出一个很好的解释..我将虽然你提到的步骤......在介于任何疑问和澄清之间,我回到了U.谢谢你..

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello Sir,

Hello Sir,
我一直在尝试获取Sample128的应用笔记......但我无法找到它....今天..我们今天已经改变了一些规格..请引导我需要做些什么来实现以下内容和到底何处开始
1.Pheripheral Device with External Host controller
2.needs to send 40 bytes of data every 1 sec...can be splited in to 2 packets...(i need clarification about the implementing this mechanism.. shall i use notification or shar i use polling from central device...in the sense when i try to read a handle,it should reply back the content )and it should go to low power mode
3.数据应通过UART发送...
4.On外部主机控制器..是什么是遵循的HCI命令和PRTotocol格式?

对于PherierWall,我应该在哪里开始实现上述应用程序。

5.on a PC side,i am planning to use any USB BLE dongles. from programming the PC side application where can i get the standard protocol data or any examples to use in VB.net

感谢你。。

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello Sir,

Hello Sir,
我一直在尝试获取Sample128的应用笔记......但我无法找到它....今天..我们今天已经改变了一些规格..请引导我需要做些什么来实现以下内容和到底何处开始
1.Pheripheral Device with External Host controller
2.needs to send 40 bytes of data every 1 sec...can be splited in to 2 packets...(i need clarification about the implementing this mechanism.. shall i use notification or shar i use polling from central device...in the sense when i try to read a handle,it should reply back the content )and it should go to low power mode
3.数据应通过UART发送...
4.On外部主机控制器..是什么是遵循的HCI命令和PRTotocol格式?

对于PherierWall,我应该在哪里开始实现上述应用程序。

5.on a PC side,i am planning to use any USB BLE dongles. from programming the PC side application where can i get the standard protocol data or any examples to use in VB.net

感谢你。。

PY_Dialog
离线
Last seen:2年10个月前
Staff
Joined:2014-08-25 09:59
嗨chandra2sekhar2000,

嗨chandra2sekhar2000,

应用程序注意嗯- b - 015 - _da14580软件弧hitecture will guide you on sample128 project.
From you description, it looks still like a SPP transparent communication project, right? Then here will be my advices:
1.在外围方面,您将所有BLE堆栈和配置文件放在DA14580中,只会让UART通信托管MCU,就像我们之前所说的那样。不要“使用HCI,因为您可能需要分隔BLE堆栈和配置文件,并且需要处理与状态机之间交换的所有消息。我不是说你不能这样做,但绝对需要更多的时间。然后,您只需要根据当前配置文件示例(Sample128或Is等)和手uart通信(请参阅我们的SDK中的Prod_Test项目)自定义您的SPP等文件。即使我认为你会在这一周上花一周时间,这是我能想到的最快方式。如果您真的希望使用HCI,可以参考纸张UM-B-017和RW-BLE-Host-is。在prod_test项目中,您还可以找到参考代码(我们实际上不打开HCI接口到最终用户)。
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.
最后,这可能不是您预期的一个非常短的项目。希望这件事!

问候!
PY

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Hello sir,

Hello sir,
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...

当我尝试使用连接管理器连接USB加密狗Pan1740时,引导为Central..i读取值。为什么这么...... BLE MONITION工具与常规BLE设备一起使用。该为什么它不适用于对话框产品。我也用接近剖面检查了......结果..为什么它是如此?

PY_Dialog
离线
Last seen:2年10个月前
Staff
Joined:2014-08-25 09:59
嗨chandra2sekhar2000,

嗨chandra2sekhar2000,

Good to know your progress in two days!
You said the USB dongle pan1740 work fine. And also if you can try some apps in iphone like LightBlue you can easily connect to DA14580 proximity profile, read and write value. I think the apps will also works with your own project. I did not try TI CC2540 monitors with our DA14580 kit in the past. So it's hard to say what is the problem in between. Maybe there is some restriction on CC2540 firmware. Sorry I'm not able to help you on that device.

问候!
PY

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
你好,先生,

你好,先生,
非常感谢你您的回复。i did up to sample128 adding.how ever i need your help in further steps to for creating app_sample128.c and task files etc..and further UART steps.thank u

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Dear sir,

Dear sir,
if u have app_sample128.c &app task c & header files,kindly mail me atchandra2sekhar2000@yahoo.co.uk......我会尝试将其从1个字符扩展到20个字符。还需要2个数据包发送....我需要您的宝贵帮助,因为我们的完成死线日期是tommorow.hope你可以帮助我们。谢谢你

PY_Dialog
离线
Last seen:2年10个月前
Staff
Joined:2014-08-25 09:59
嗨chandra2sekhar2000,

嗨chandra2sekhar2000,

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

问候!
PY

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
Dear sir,

Dear sir,
感谢你very much.i have recieved some app_sample128 files from one of your friend.sir but it seems to be unrelated to the sample128 example.the files send by your friend is customised for some proximity application. sir can u please kindly help me, by sending sample128 app files..to send a char ..and also guide me how to extend it and how to add uart to it..already we last our time frame...kindly help me.Thank u sir..today is festival in india,but with out considering hoiliday i am working even sundays also/...but no progress.

PY_Dialog
离线
Last seen:2年10个月前
Staff
Joined:2014-08-25 09:59
嗨chandra2sekhar2000,

嗨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.
回到您的应用程序,我相信您仍然需要了解我们的软件结构,如果您需要建立自定义的配置文件以及自定义的低级驱动程序,则每个供应商都是相同的。如果您对我们的SDK有关的特定问题,我会非常乐意帮助您。

问候!
PY

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
你好,先生

你好,先生
关于您的SPP配置文件的任何更新......真的我非常感兴趣地与这个对话框。它有很好的硬件和良好的TX功率。但是真正的开发糟透了了。唤醒我们大部分时间,但没有积极进展。

JE_Dialog
离线
Last seen:7 hours 3 min ago
Staff
Joined:2013-12-05 14:02
你好,我们刚刚放了

您好,我们刚刚将第一个50个参考设计页面列入下载...

Thanks & BR
JE_Dialog

撒尿
离线
Last seen:6年3个月前
Joined:2014-09-24 15:40
Hi guys,

Hi guys,
I just wanted to comment on this thread. I'm also trying to develop something similar here. To start, Dialog and Panasonic, you guys are giving some really good help here. From this thread and related documents I've been able to connect most of the dots. The chain loading of profiles after the GAPM in the init process is pretty smart. (I used a similar state machine through system messages in another project I designed years ago). One caveat I'd mention when trying to debug any of the apps created using the PAN1740 module (and procedure for running code, found in the related guide). You can't use the debugger to run the compiled code for the Cortex-M0 because it gets stuck in a while loop that waits for the debugger to be turned off. I was only able to advertise (the proximity example, fully hosted) by using the connection manager utility.
我仍然使用该软件指南从模板示例中建立,并从其他项目代码中拉动基于必要的组件和配置文件来利用双向SPP。在这之后我预见的大问题是在链接的另一侧创建配置文件。由于蓝牙开发人员似乎没有用于BLE的SPP,我认为这不会是一个默认配置文件我可以将对话框编程为模拟(从而节省时间编码配置文件以运行一系列智能手机,Ubuntu和Windows)。我这里可能错了。

谢谢!
-Nate

JE_Dialog
离线
Last seen:7 hours 3 min ago
Staff
Joined:2013-12-05 14:02
Hello Nate, we just released

Hello Nate, we just released 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-semiconductor.com/ref-designs

Thanks JE_Dialog

chandra2sekhar2000
离线
Last seen:6 years 4 months ago
Joined:2014-05-11 10:47
非常感谢你的意志

非常感谢你的意志go through and get back to u,Thank u once again

撒尿
离线
Last seen:6年3个月前
Joined:2014-09-24 15:40
Thanks Guys! Your awesome!

Thanks Guys! Your awesome!

Topic locked