Go Down

Topic: how to convert c lib to arduino lib (Read 83 times) previous topic - next topic

94r4d0x

hi
am find more more arduino lib for IEC 60780-5-101 but nothing found
except c lib
and now how to convert it or used in arduino
yhanks

PieterP

Arduino comes with a standard C compiler. What's the problem you're facing?
Please post a link to the library in question if you want help with it.

Pieter

94r4d0x

#2
Dec 03, 2019, 07:29 pm Last Edit: Dec 03, 2019, 07:33 pm by 94r4d0x
Arduino comes with a standard C compiler. What's the problem you're facing?
Please post a link to the library in question if you want help with it.

Pieter
thanks to reply man

lib60870-C is a new implementation of the IEC 60870-5-101/104 protocol for client (master station) and server (slave or controlled station). The library implements all data types of the IEC 60870-5-101/104 specifications. lib60870-C is implemented in standard C and is compatible with the C99 standard. It is designed to be as easy to use as possible.

this link for lib
https://www.mz-automation.de/communication-protocols/iec-60870-5-101-104-c-source-code-library/

in the page of lib I see

"Edition in standard C for use in embedded systems and applications. With its platform independent design it can run on many platforms."
and

"Tested on x86/x64, Coldfire, ARM9, ARM Cortex-A, ARM Cortex-M, PowerPC, MIPS"

but I dont known how to use it or if supported arduino Board

the problem I have RTU work with IEC 101 Protocol on Slave MOD
and need make master Station (arduino)  to communicat to RTU with IEC 101 protocol

PieterP

It's meant to run on top of an operating system, e.g. Linux. Porting it to run bare-metal is going to take a lot of work. You have to provide interfaces for threading, network stacks, sockets, etc.
https://support.mz-automation.de/doc/lib60870/latest/group__hal.html

94r4d0x

It's meant to run on top of an operating system, e.g. Linux. Porting it to run bare-metal is going to take a lot of work. You have to provide interfaces for threading, network stacks, sockets, etc.
https://support.mz-automation.de/doc/lib60870/latest/group__hal.html

so this lib i cant used on arduino

PieterP


Go Up