CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Need DNP 3.0 library

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
RodriguesLeo



Joined: 24 Dec 2020
Posts: 3
Location: RJ-Brasil

View user's profile Send private message Visit poster's website

Need DNP 3.0 library
PostPosted: Mon Dec 28, 2020 6:51 am     Reply with quote

Dear forum,

I need to add DNP3.0 communication in an existing equipment.

Does anyone do this work or do you have a CCS or ANSI C library tip for this development?

The controller is PIC18F4620 and has 70% of the memory available for this implementation.

Thanks
_________________
Eng - Powerbras
leo@powerbras.com.br
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Tue Dec 29, 2020 12:40 am     Reply with quote

Big question. Over what physical layer?. This makes an absolutely enormous
difference to the code.
For a master, or an outstation?.

The open source code that would probably translate the easiest, is:

<https://sourceforge.net/projects/dnp3-source-code-library/files/

This includes Windows development tools and is built for a Linux
type environment. Since most of the CCS libraries actually emulate the
Unix/Linux versions, it should be relatively easy to translate the parts
needed.
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Tue Dec 29, 2020 5:53 am     Reply with quote

I just 'had' to lookup DNP3. Seems it's yet another multilayered serial communications protocol.
It'd be interesting to know what the 'overhead' is to send 1 byte of data from one RTU to the HOST. Also how BIG the code inside a PIC would be to do the job.
Just curious....
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Tue Dec 29, 2020 6:49 am     Reply with quote

The basic protocol for a slave over serial is not too hard to do. Very similar to
ModBus. However if he needs to use it over ethernet, the total size will
be getting very large.
RodriguesLeo



Joined: 24 Dec 2020
Posts: 3
Location: RJ-Brasil

View user's profile Send private message Visit poster's website

PostPosted: Wed Dec 30, 2020 9:04 am     Reply with quote

I have a device that operates in power substations and are not accepting Modbus, I need to communicate in DNP3 just to transmit some analog, status and receive commands.

It would be an IED with RS485 serial.

I found a library to sell for 9000 U$D, impractical for me.

I'm studying this one that you indicated.

I will share it here if I can finish this mission.

It's been more than 10 years since I accessed here and I found some fundamental tips when I made my Modbus library, for my despair CCS includes one in the compiler right after I finish mine.

Thanks.
_________________
Eng - Powerbras
leo@powerbras.com.br
temtronic



Joined: 01 Jul 2010
Posts: 9226
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Wed Dec 30, 2020 9:16 am     Reply with quote

RodriguesLeo wrote:

I have equipment that operates in power substations and they are not accepting Modbus, I need to communicate in DNP3 just to transmit some analog, status and receive commands.

It would be an IED with RS485 serial.

I found a library for sale for 9000 U $ D, impractical for me.

I am studying the one you indicated.

I'll share it here if I can finish this mission.

More than 10 years ago I accessed here and found fundamental tips when I made my Modbus library, to my dismay CCS includes one in the compiler right after I completed mine.

Thanks.

...
wow
Ttelmah



Joined: 11 Mar 2010
Posts: 19513

View user's profile Send private message

PostPosted: Wed Dec 30, 2020 9:30 am     Reply with quote

I would honestly look at something like this:

https://www.neteon.net/moxa-mgate-5109-1-port-modbus-rtu-ascii-tcp-to-dnp3-serial-tcp-udp-gateway-0-60-c
RodriguesLeo



Joined: 24 Dec 2020
Posts: 3
Location: RJ-Brasil

View user's profile Send private message Visit poster's website

PostPosted: Wed Dec 30, 2020 10:15 am     Reply with quote

Thanks for the tip!

I'm using a Brazilian similar of Enautec temporarily, www.enautec.com.br but it's still expensive for my application.

I'm at a disadvantage with a competitor and I need to have this protocol in my firmware.

att,
_________________
Eng - Powerbras
leo@powerbras.com.br
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group