Thursday, October 28, 2021

Bi-directional Communication between Heltec LoRa ESP32 and Heltec CubeCell

Direction: ESP32 to CubeCell:


Heltec LoRa ESP32 transmitting to CubeCell:
https://gist.github.com/bshambaugh/a8040e9a0964f5d60145e7211ee0455c

CubeCell receiving from Heltec ESP32:
https://gist.github.com/bshambaugh/f9bf79b9fd2d9e2ef6c8efcbb8ecb90d


Direction: CubeCell to ESP32

Heltec LoRa ESP32 receiving from CubCell:
https://gist.github.com/bshambaugh/57597999c76efb953c60eefa18cedaa0

CubeCell transmitting to Heltec ESP32:
https://gist.github.com/bshambaugh/8b619ea061ddabe142a6ebe407848ba9


+++++++++++++++++++++++++++++++++++++++++++++++

Edit: for future attractions see preliminary work forwarding received data over websockets:

https://gist.github.com/bshambaugh/a78c6a322aaade65b780809e7a6234ed


Edit: this is the code for sending data in one direction:

CubeCell:
https://gist.github.com/bshambaugh/18acf34544f219182ca224b8d648642b

Heltec ESP32:
https://gist.github.com/bshambaugh/5e7f358f034c160ce305490b149721de

Node.js:
https://gist.github.com/bshambaugh/4481addef68862bc5891d187d4391258




This is the code to send from the websockets server to the Heltec ESP32 to the Heltec CubeCell and blink based on the result of a particular string:

https://gist.github.com/bshambaugh/4ea7de432a6aee345ebc4707ea42e11e
(see : https://gist.github.com/bshambaugh/4481addef68862bc5891d187d4391258 for websockets going the other way)

Edit:

Blink light:

websocket server sketch:
https://gist.github.com/bshambaugh/6c84e52a7281b87d5c05b8df963bdbc9


CubeCell  LoRa receive sketch:
https://gist.github.com/bshambaugh/20467d0e7a97735aa690f3a39cd954af


Heltec ESP32 gateway (websocket to LoRa):
https://gist.github.com/bshambaugh/4d93e5871a32aae38a79f1548adf91e0

Blink light: https://github.com/HelTecAutomation/CubeCell-Arduino/blob/68b01ab7bf04ab2fb4d41a01287dcf4b42defd97/cores/asr6601/base/ASR_Arduino.h for https://gist.github.com/bshambaugh/20467d0e7a97735aa690f3a39cd954af#file-sketch_nov05a_cubecell_receive-ino-L92
do not use: https://github.com/adafruit/Adafruit_NeoPixel --> https://github.com/HelTecAutomation/CubeCell-Arduino/blob/68b01ab7bf04ab2fb4d41a01287dcf4b42defd97/libraries/RGB/src/CubeCell_NeoPixel.h
https://github.com/HelTecAutomation/CubeCell-Arduino/blob/68b01ab7bf04ab2fb4d41a01287dcf4b42defd97/libraries/RGB/examples/RGB/RGB.ino to make
https://gist.github.com/bshambaugh/de846af8637f590b5a47225b526f23f2
as there is a library conflict with ASR_Arduino.h forLoRaWan_APP.h for  turnOnRGB . see lines: https://github.com/HelTecAutomation/CubeCell-Arduino/blob/68b01ab7bf04ab2fb4d41a01287dcf4b42defd97/libraries/LoRa/src/LoRaWan_APP.h#L76-L77

extern "C" void turnOnRGB(uint32_t color,uint32_t time);
extern "C" void turnOffRGB(void);


Heltec ESP32 gateway (websocket to LoRa):
https://gist.github.com/bshambaugh/4d93e5871a32aae38a79f1548adf91e0




Thursday, October 14, 2021

Birectional Communication with LoRa and WebSockets Server to Blink and LED

 Ping Pong (Bi-Directional?) Communication between Heltec ESP32 (V2) and Heltec CubeCell
https://www.youtube.com/watch?v=3XOYRV0kSuo

Using a WebSockets Server to Blink an LED
https://www.youtube.com/watch?v=Gqzvq05QUKw

Put these together

Sunday, October 3, 2021

Bookmarked Links for Schemas, RDF, JSON-LD, and Category Theory

Formal Modelling and Application of Graph Transformations in the Resource Description Framework by Benjamin Braatz
https://www.semanticscholar.org/paper/Formal-Modelling-and-Application-of-Graph-in-the-Braatz/b8c85a3e7a04020259ec9a58c7e5563033f52844

JSON Schema, Schema.org, JSON-LD, What's the Difference
https://dashjoin.medium.com/json-schema-schema-org-json-ld-whats-the-difference-e30d7315686a

7 Sketches
https://math.mit.edu/~dspivak/teaching/sp18/7Sketches.pdf

RDF JSON
https://jena.apache.org/documentation/io/rdf-json.html


Edit: Also think about the context you want to use a schema in.

(13)Calbimonte, Jean-Paul et al., Semantic Sensor Data Search in a Large-Scale Federated Sensor Network, http://ceur-ws.org/Vol-839/calbimonte.pdf

I may have this and various gists
https://raptorlicious.blogspot.com/2021/02/creating-schema-with-ceramic.html

https://gist.github.com/bshambaugh


https://developers.ceramic.network/streamtypes/tile-document/schemas/basic-profile/

https://developers.ceramic.network/build/cli/quick-start/#create-a-schema

https://github.com/w3c/wot-thing-description/issues/988

https://json-schema.org/understanding-json-schema/index.html


https://json-schema.org/learn/miscellaneous-examples.html


https://github.com/ajv-validator/ajv#security-risks-of-trusted-schemas


https://github.com/kimdhamilton/schema_to_context

https://w3c.github.io/wot-thing-description/#bib-json-schema

http://json-schema.org/learn/

https://lab.allmende.io/valueflows/vf-schemas/vf-json-schema/-/tree/master/schemas

https://w3c-ccg.github.io/vc-json-schemas/v2/index.html

https://coveooss.github.io/json-schema-for-humans/#/

https://gitlab.com/btcalabs/cowcerts/schemas


https://ipld.io/docs/schemas/