Skip to content

Instantly share code, notes, and snippets.

View keomabrun's full-sized avatar

Keoma Brun keomabrun

View GitHub Profile
logautoclosemode 1
do
for i 1 10000
beep 1
sendln 'radiotest rx 0x0001 15 255'
waitln 'Rx completed'
sendln 'radiotest stat '
waitln 'Radio Test Statistics:'
sendln
[{"id":"e4601a02.dbb4c8","type":"http in","z":"2cc816ee.04006a","name":"","url":"/hr","method":"post","swaggerDoc":"","x":201,"y":545,"wires":[["1db97305.2816a5","1b7e47b4.647b6","e5dd6e63.0128"]]},{"id":"f489073c.790d6","type":"http in","z":"2cc816ee.04006a","name":"","url":"/notifData","method":"post","swaggerDoc":"","x":180,"y":388,"wires":[["1db97305.2816a5","9194f6a.3bbf708","2db0da87.d47fe6"]]},{"id":"110662c5.3483a5","type":"http in","z":"2cc816ee.04006a","name":"","url":"/oap","method":"post","swaggerDoc":"","x":202,"y":505,"wires":[["1db97305.2816a5","a9252b63.513fa8","e5dd6e63.0128","7c045ffb.562dd"]]},{"id":"c14c1f5d.74029","type":"http in","z":"2cc816ee.04006a","name":"","url":"/notifLog","method":"post","swaggerDoc":"","x":177,"y":268,"wires":[["1db97305.2816a5","2c559a08.a27606"]]},{"id":"cf266fd9.603cc","type":"http in","z":"2cc816ee.04006a","name":"","url":"/notifIpData","method":"post","swaggerDoc":"","x":170,"y":428,"wires":[["1db97305.2816a5","9194f6a.3bbf708","2db0da87.d47fe6"]]},{"id":"c2
[{"id":"c71d3c17.5b52d8","type":"tab","label":"user"},{"id":"d64bc698.a913f8","type":"comment","z":"c71d3c17.5b52d8","name":"responses","info":"","x":120,"y":155,"wires":[]},{"id":"21d17d75.c4463a","type":"debug","z":"c71d3c17.5b52d8","name":"manager responses","active":true,"console":"false","complete":"payload","x":662,"y":194,"wires":[]},{"id":"e72a5f1d.d96a18","type":"comment","z":"c71d3c17.5b52d8","name":"=== interact with devices","info":"","x":126,"y":116,"wires":[]},{"id":"32611c9f.6d2f44","type":"debug","z":"c71d3c17.5b52d8","name":"mote events/responses","active":true,"console":"false","complete":"payload","x":674,"y":240,"wires":[]},{"id":"fa8c9303.b95cd","type":"comment","z":"c71d3c17.5b52d8","name":"manager commands","info":"","x":163,"y":364,"wires":[]},{"id":"560f106f.cac01","type":"comment","z":"c71d3c17.5b52d8","name":"mote commands","info":"","x":158.00001525878906,"y":518,"wires":[]},{"id":"d9c124ee.c2c1","type":"inject","z":"c71d3c17.5b52d8","name":"set variable","topic":"","payload":"","p
@keomabrun
keomabrun / minicom_rx
Created January 29, 2019 16:31
Minicom Script for SmartMeshIP receiver range test
timeout 10000000000000
send "^C^C^C^C^C^C^C^C"
send "\n"
send "\n"
start:
##############################
send radiotest rx 0x8000 2 255
+-----+SolManager-----+ +-------------+ +--------+
+-------------+ | +------------> | SolApi |------------>| MQTT |-----------> Subscriber
| SmartMeshIP | | +-------------+ | HTTP:443 +-------------+ MQTT:1883 | Broker |-----------> Subscriber
| Manager +<------------>+ JsonManager | | +--------+ MQTT:1883
| | API port | +-------------+ | |
+-------------+ | | |
+---------------------+ +----------+
| Cloudant | HTTP
| BDD |<------> SolDb <--> Grafana
@keomabrun
keomabrun / rpi_ucl_install.sh
Last active November 16, 2017 18:40
manager_ucl
#!bin/sh
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install -y python python-pip python-serial vim git supervisor screen npm
# install python dependencies
sudo pip install bottle
# install node-red dependencies
---
- hosts: raspberry
user: pi
vars:
home: /home/pi/
solmanager_dir: "{{home}}solmanager/"
tasks:
- name: install system packages
become: true
apt: name="{{item}}" state=present update_cache=yes
@keomabrun
keomabrun / wiresharkbuild.md
Last active October 16, 2019 11:09
building wireshark on Windows 7 x64

Try to avoid building Wireshark on Windows as much as you can. Read the following only if you have no other choice. I use Jenkins to build Wireshark on Windows. Jenkins just run the .bat file.

Advices:

  • Don't use Visual Studio 2012 but 2013 or newer.
  • Use Chocolatey as much as possible.
  • Don't mess around with regedit

PATH

Here is my PATH before running the script:

@keomabrun
keomabrun / building wireshark on Ubuntu Xenial
Last active September 16, 2017 00:45
Ubuntu Xenial Wireshark build
# dependencies
sudo apt-get install autoconf libtool libtool-bin glib-2.0 qt5-default qttools5-dev-tools qtdeclarative5-dev libgcrypt11-dev libpcap-dev flex bison
# -- Wireshark now uses Qt and not GTK
# configure
./autogen.sh
./configure
make
[program:jsonserver]
user=pi
directory=/home/pi/smartmeshsdk-master/app/JsonServer
command=screen -LmDS jsonserver /usr/bin/python JsonServer.py
autostart=true
autorestart=true
stderr_logfile=jsonserver.err.log
stdout_logfile=jsonserver.out.log