12 posts / 0 new
Last post
Fernando Effting
Offline
Last seen:1 year 2 months ago
加入:2014-11-14 13:50
DA14580 and MSP430

Hello!

I need to interface a MSP430 to a DA14580 using UART to send and recieve 8 bits of data, with a very low bandwith.
I just took a look at the Serial Port Service. But I am really lost.
Is there a step by step or something similar that shows what files are needed to be flashed to the DA14580?

Some other questions:

1- Does the DA14580 comes flashed already? If so, what does it comes with?
2- If not, how can I flash it using an external microcontroler?

I am supposed to finish this job by the end of this week, so I would appreciate very much any help.

Thank you!

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
I haven't familiarized myself

I haven't familiarized myself with the serial port service but I think you need to

  1. Include uart driver to your project (uart2.c).
  2. define uart pins in periph_setup.c which is found in arch folder
  3. familiarize with the functions in uart2.c

Grab the UM-B-004 user manual. You can find additional information about UART driver there.

Did you mean you want to use DA1458x in external mode?

Fernando Effting
Offline
Last seen:1 year 2 months ago
加入:2014-11-14 13:50
Thank you very much for your

Thank you very much for your replay VesaN.

Yes, I meant to use the DA14580 in external mode, that is, with a external microcontroler.

I have included the uart2.c onto my project, btw I'm using Code Composer, but when I compile it, it keeps asking for more and more .c and .h files. How do I do that? And whats is the diference between UART.c and UART2.c?
Is this all I have to do in order to use the DA14580 to send and recieve data? I mean, I just need to use this UART library for interfacing it with an external uC? There is no need for any adicional configuration on the DA14580?

Thank you again, made my life much easier!!!

VesaN
Offline
Last seen:5 years 4 months ago
Guru Master
加入:2014-06-26 08:49
What .c and .h files?

What .c and .h files?

If you want to use DA1458x in external mode, I guess you should see the reporter_fe and monitor_fe examples in SDK's project folder: keil_projects/proximity/

User manual UM-B-015, Software architecture (http://support.dialog-semiconductor.com/um-b-015-user-manual-%E2%80%93-s...)有一些更多的信息(见页6 - 7和17 -18). Unfortunately, on page s. 17 of the UM-B-015, the Host application and DA14580 project paths don't seem to match with the current SDK

Sebastien Grenier
Offline
Last seen:3 years 10 months ago
加入:2014-10-23 16:35
I'm trying to do the same

I'm trying to do the same thing with a MSP430. I'm reading the UM-B-015, UM-B-017, UM-B-038, but It's not evident for me to where I should begin with. On other threads, you will see that a good start point is to read the book: "Bluetooth Low Energy : the Developers Handbook".
You can see the post here:http://support.dialog-semiconductor.com/bluetooth-basics.
Hope I will find soon... Merry Cristmas everyone!

JE_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
加入:2013-12-05 14:02
Hello Sebastien, I would

Hello Sebastien, I would suggest you talk to the Future team in CA : they can guide you how to implement DA14580. It really depends what you wnat to do... Our SDK is more open and complex than others (positive side is it gives ultimate flexibility, downside is it is more complex) and we are working on a new simplification to come in Q1.

If you are just looking to use an external MCU and want to use DA14580 as a basic BLE bridge into Android or iOS, then the serial port profile is the way to go. We will release final version of that next week. You can think of it as a wireless UART - and here, it would be simply be a case of opening the project, making any configuration, compiling & debugging .. we have a lot of people succesfully using the SPS 'as is' .

Have a great XMAS !

BR JE_Dialog

Sebastien Grenier
Offline
Last seen:3 years 10 months ago
加入:2014-10-23 16:35
Hi,

Hi,
that is what I need. I just not know where to begin.
Do I convert the UART2.c into my MSP430?
I use the PAN1740 as a simple uart com port (SPS) and it will sent the data over the air?
I navigating in the sdk and I do not know where to begin. I read the app notes but I' missing something.
I do not need the DA14580 project or source code, it should be already there right?
I only need a sample example to give me the init procedure for the PAN1740 using the UART.
I think that it's what it's done in the
"DA14580_581_SDK_3.0.8.0\host_apps\windows\proximity\reporter\include\" files. I saw on another thread that I would need these files to implement in my remote microcontroller.

在“对话框串行端口Service Source Code\DA14580_DSPS_3.150.1.5\dk_apps" we have the source code but for the DA14580 if I understand well. What is in the other side, in the remotre controller. That's what I need. Like in the windows host app but for a MCU. In my past, to init a modem we had @AT (Hayes) commands. What is the equivalent (or procedure) for the PAN1740 using the uart port?

Could you help me?

Pardon me, I'm not use to it and I would like to have a procedure to init the PAN1740 and use it as a simple uart to ble converter.

Thanks a lot for your help.

p.s. I read UM-B-013, UM-B-017 and UM-B-038.

JE_Dialog
Offline
Last seen:1 day 5 hours ago
Staff
加入:2013-12-05 14:02
Hi Sebastien, some of this is

Hi Sebastien, some of this is covered in section 14 of the below URL.

http://na.industrial.panasonic.com/sites/default/pidsa/files/panasonic_p...

On the central side, you will need run the DSPS app (on Android or iOS) if running on a cellphone or tablet : on a PC, you can simply use a terminal (lile Teraterm) to stream UART data into the PAN1740 .

section 14 shows also a PAN1740 to PAN1740 connection (here you need one PAN1740 as 'host', one as 'device') or if you do a PAN1740 to phone/tablet the PAN1740 needs to be 'device' - this is to follow BT4.x convention of a master and slave..

I've asked the Panasonic team (wireless@eu.panasonic.com) to also comment on this.

Please let me know if this doesnt answer the question.. BR JE_DIalog

Ingo
Offline
Last seen:1 month 1 week ago
Guru Panasonic
加入:2014-01-16 11:19
Hi Sebastien,

Hi Sebastien,

the easiest is to use the DSPS example. You only need to load the device SW into one side and the host SW into the other side.
They connect automatically and you do not need to configure them - only start sending the data over the UART.
you will find the ready example in the DSPS SDK: dk_apps\keil_projects\sps

I assume you use the USB dongle for evaluation?

Best regards,
Ingo

Sebastien Grenier
Offline
Last seen:3 years 10 months ago
加入:2014-10-23 16:35
Thank you Ingo,

Thank you Ingo,
Yes, I used the USB dongles. It's working very well.
I'm at a next step. Now, I use an external processor to send UART message to the PAN1740 and from it, set data to a phone or a PC.
I was wondering to know where to begin my code in my remote MCU. I read on some thread that we need to start from uart2.c, others from files console.h, uart.h, ble_msg.h etc... I would like to have a start point to setup the PAN1740 to send data. I'm currenlty initiating the UART in my MCU. The attribuated pins are those at 57600 bauds on the PAN1740. I also see "uart_sps.h". I'm lost to be frank with you.

I'm reading those source code files here :
DA14580_581_SDK_3.0.8.0\host_apps\windows\proximity\reporter\include
and those here:
DA14580_DSPS_3.150.2\dk_apps\src\modules\app\src\app_project\sps\uart

Thanks a lot for your help.
Sebastien

Ingo
Offline
Last seen:1 month 1 week ago
Guru Panasonic
加入:2014-01-16 11:19
Hi Sebastien,

Hi Sebastien,
basically you only need to initialize the UART on your MCU with the right baudrate and send characters. Once the "sps_device" connects to the phone >>use DSPS App for iOS (Apple Store) or Android (in the SDK) you can send characters.
Best regards,
Ingo

Sebastien Grenier
Offline
Last seen:3 years 10 months ago
加入:2014-10-23 16:35
Hi Ingo, I did tests and not

Hi Ingo, I did tests and not able to connect. I should set up (using the uart commands) the PAN1740 before trying to connect to it? Right?