View previous topic :: View next topic |
Author |
Message |
RodriguesLeo
Joined: 24 Dec 2020 Posts: 3 Location: RJ-Brasil
|
Need DNP 3.0 library |
Posted: Mon Dec 28, 2020 6:51 am |
|
|
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: 19490
|
|
Posted: Tue Dec 29, 2020 12:40 am |
|
|
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: 9220 Location: Greensville,Ontario
|
|
Posted: Tue Dec 29, 2020 5:53 am |
|
|
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: 19490
|
|
Posted: Tue Dec 29, 2020 6:49 am |
|
|
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
|
|
Posted: Wed Dec 30, 2020 9:04 am |
|
|
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: 9220 Location: Greensville,Ontario
|
|
Posted: Wed Dec 30, 2020 9:16 am |
|
|
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: 19490
|
|
|
RodriguesLeo
Joined: 24 Dec 2020 Posts: 3 Location: RJ-Brasil
|
|
Posted: Wed Dec 30, 2020 10:15 am |
|
|
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 |
|
|
|