Skip to content

The ElectriCChain (ELCCpv1) text comment space protocol for an open blockchain. It reports information about Solar PV generation parameters directly to blockchain in the minimum number of steps between the generation of electricity and the bockchain. It currently works with SolarCoin and other blockchain(s) if they support JSON at the Tx layer. …

License

Notifications You must be signed in to change notification settings

lpninja/ELCCpv1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OPEN standard for the Tx Message Space for IoT/blockchain interaction

This standard is maintained by ELECTRICCHAIN. (www.electricchain.org) If you want to be certified to implement this on your datalogger to receive solarcoin please contact electricchain.org.

Dependencies

There is an optional dependency of datalogger.py if you are using an Enphase system. You can fork datalogger.py and make your own version for other inverter/datalogger APIs. ELCC/Enphase/datalogger.py

Introduction

This is to define the ELCC text space standard for ElectriCChain/ blockchain IoT standard that is portable across blockchains. For more information please see ElectriCChain.org project no.3 or some of the work we are doing at chainofthings/solcrypto.

We want to certify components into the blockchain TX message space. This means that if the component is in operation and confirmed in the field by a human, it can be added also by a human input. Otherwise this standard is designed to be working on IoT/Inverters, data-loggers as a python script that requests human input interactions at setup.

Additionally, if we just want to certify the existance of a solar industry product, we can do that as well. Also, if we want to link a certain GPS anchored system into the SolarCoin blockchain, we can do that too. We can see where it is and it links to off chain web layer web links. For privacy, if you want to certifiy your solar system you can limit the GPS decimal length to three characters.

API's can be written to specifically search and scrape this Tx data. For example with Node-red calling JSON requests.

This is also designed to work with the SolarCoin granting Engine. This will need to link with the existance of the module and components in the SolarCoin blockchain. And then it can assign a unique GUID, use the SolarCoin blockchain (or any other blockchain as a immutable ledger for other programs to search this ledger and grant rewards, or mine information about weather, climates, power generation etc.)

Specifics

These files are curently in Python 2.7 and should work natively on Raspberry Pi 2/3 with Raspian-lite/ ROKOS. ROKOS is a Jessie 8 variant for Linux specifically running and designed for IoT/ RPI3b etc.

ElectriCChain certification syntax for SLR Blockchain Tx messaging field which is limited to 516 characters.

Example in SLR chain: https://chainz.cryptoid.info/slr/tx.dws?3329045.htm

There are two types of in-chain datalogs. The sysv1 instance and and ongoing instance (genv1).

"""Example: text:sysv1{"UID":"14dac6fffd768ee96250acd8bd0ff55eae03eae5","SigAddr":"8HZUxJZb2dBmhiMtXhBzNETqBj9NWotxUv","module":"Solarworld Sunmodule Plus SW 265 mono black SW-01-6023US","tilt":"50","azimuth":"210","inverter":"Enphase M250 Microinverter 800-00181-r06","data-logger":"Raspberry Pi2b","pyranometer":"","windsensor":"","rainsensor":"","Web layer API":"","Size_kW":"3.975","lat":"51.678N","long":"0.301E","Comment":"I am the first Raspberry Pi Node"}Sig:IDRMXcpAgHzoVSHFINS0YLx73wtrfMA0AatpbPqdKilQ9kbJM9eAfN3wDpctXpmsewrgGOA2efvpi5fT7gq8h7w="""

The genv1 instance is for ongoing generation. """Example: genv1{"UID":"14dac6fffd768ee96250acd8bd0ff55eae03eae5","t0":"2017-10-09 15:00:30","MWh0":11.490584,"t1":"2017-10-09 15:15:34","MWh1":11.490653,"t2":"2017-10-09 15:31:07","MWh2":11.490673,"t3":"2017-10-09 15:45:40","MWh3":11.490693,"t4":"2017-10-09 16:00:14","MWh4":11.49071,"t5":"2017-10-09 16:15:48","MWh5":11.490718,"t6":"2017-10-09 16:30:50","MWh6":11.490725,"t7":"2017-10-09 16:45:23","MWh7":11.490731}Sig:IGLDDNxi/GEljzT1xyf6+6Y8kuQAwEcllWZkaUBeNfWSgaM8E7OYs4uZBXbDsJysCQY98Ik1fSSpexPpKAwaLTI="""

List of additions Updated 2018/02/21- We are merging this to work with our own Modbus output datalogging of the Ct sensor developed by Solcrypto. It isn't an open repository because the connection to the open standard from the Solcrypto API is protected intellectual property. That said, the open standard is all operational and open source. Just your own propietary connections to it via your preferred inverter, datalogger or Maximum Powerpoint tracker (MPPT) are your own code(s).

Updated 2017/10/12- Merged a pull request for optional system signature signing for greater security(concatenation of system details and inverter/datalogger serial numbers with the datalogger public key hash to produce a new signature hash) when posting from a Raspberry Pi datalogger directly. Updated examples. ELCCpv1 now has an optional dependency of datalogger.py found in the ELCC folder of @scalextrix.

Updated 2017/10/10- Merged pull request for removing tracking, explained the azimuth conditions in a comment. Added @dommsko as a contributer, reviewer.

Updated 2017/09/28- Added tilt angle, azimuth and tracking (fixed, single or dual axis) so then on-chain solar due-diligence providers can scrape the SolarCoin blockchain with their bots and perform their own analysis on the solar install, and then estimate the solar energy production for that install to within 7-10% uncertainty using their own methods and a GUM method Type B based uncertainty budget similar to a PVSYST standard. Because the information is all open soruce, some specialist firms can perform this task and then get rewarded with SolarCoin for their efforts to increase the accuracy of the ecosystem.

Updated 2017/09/26- Megred pull request for split generation and datalogs for sysv1 anf genv1 instances. See examples above.

Updated 2017/09/11- 12- Removed the water flow sensor, changed the time format from XX-XX-XX to XX:XX:XX for hours:minutes:seconds. Added some general comments to make things clearer. Reduced the Comment space to a maximum of 40 characters. Usually in the comment space you can comment on what IOT you are running the .py script on.

Updated 2017/07/24- We had to allow a space for a solarcoin affiliate website's user ID, the user ID is currently open and it can be used up to 40 characters.

Updated 2017/04/21- Added elliptical curve cryptography standard for device identity based on the Chain of things protocol to the Tx Message Space. More information (here):-[https://www.chainofthings.com/]. Currently this option isn't working because it is commented out. The ECHDE public fingerprint is too long. We are looking for a way around this.

Updated 2017/04/20- Open comments reduced to 40 characters (one-quarter twitter). Updated example for SLR chain.

Updated 2017/04/20- Supports JSON. Please limit your Open comment to about 80 characters (half twitter).

CLOSED 2021/05

The SLR blockchain has been integrated into the Energy Web Foundations chain. Although some of the ideas can be ported over, the framework has changed. Hence why we have closed this issue.

About

The ElectriCChain (ELCCpv1) text comment space protocol for an open blockchain. It reports information about Solar PV generation parameters directly to blockchain in the minimum number of steps between the generation of electricity and the bockchain. It currently works with SolarCoin and other blockchain(s) if they support JSON at the Tx layer. …

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages