Giter VIP home page Giter VIP logo

61850-docs's Introduction

61850

It was an attempt to build a prototype of an IEC61850 communication board. This project use an NXP I.MX RT 1062 microcontroller. This microcontroller was selected because it has two MACs. Using these two MACs, I implemented an LwIP netif driver which supports PRP(parallel redundancy protocol) protocol. Using same mechanism, it is easy to implement HSR protocol. But, implementing RSTP could be a little different.

Subprojects

This project is splitted to three repositories:

  • Altium PCB project could be found here
  • Bootloader program could be found here. Bootloader does nothing except running the main application in 0x61000000.
  • Application program could be found here. Application is the main program.

PCB

The pcb mainly consist of a SOMLab module and two SMSC lan8720 phy. PCB Image You can achive same two port ethernet setup with a Teensy 4.1 board. It may need a little tweaking for the second ethernet port.

Application Program

Application program uses libiec61850. It has two important parts:

  • An implementation of an LwIP netif driver which support prp protocol (here).
  • An implementation of libiec61850 hardware abstraction layer (HAL) to run on FreeRTOS() and LwIP (here).

With these two parts, it was possible to run the libiec61850 examples on FreeRTOS and LwIP with PRP(or other redundancy protocols) support.

Other Approaches for PRP/HSR

In order to use the implemented LwIP netif driver your device should have two ethernet ports. To have a device with two ports you can:

  • Find a microcontroller with two MAC peripheral (Thats why i used the NXP I.MX 106x microcontroller series).
  • Use a three port switch IC. Some switch allow the host port to select the desination output port for each packet. You can find suitable switche ics from Microchip web site. The switch ic may implement RSTP (or event HSR/PRP) itself.
  • Other ways to have two ethernet ports on a single microcontroller :))).

with a little changes you can reuse the driver for other approaches.

61850-docs's People

Contributors

alisoam avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.