Public | Automated Build

Last pushed: 2 years ago
Short Description
CC3200 serial concentrator for Beagle Bone black
Full Description

Intro

This container is used to receive data from CC3200 through UART, and register the key configuration values like WiFi Channel, WiFi Mode to Consul Key/Value Store.

Usage:

docker run -d --env-file ./env.list --device /dev/ttyUSB:/dev/ttyUSB --link supernodeX:consul --name [MAC] sheenhx/armhf-concentrator

Prepare the ./env.list

MAC=0033  #MAC address of CC3200
UARTPATH=/dev/ttyUSB1
SERVERIP=192.168.1.151 #Kafka server
TOPIC=datacenter1 #Kafka topic
CONSUL=192.168.1.146 #Consul server

Test the container:

curl -X PUT -d '1000' http://192.168.1.146:8500/v1/kv/interval?flags=1 #change interval of collecting packets
curl -X PUT -d 'START' http://192.168.1.146:8500/v1/kv/status/all?flags=1  #restart the concentrator

Corresponding logs:

$ docker logs 0033
K/V changed!
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:root:Sending command: CFG
INFO:root:Command result: OK
INFO:root:Sending command: CFG+INTVL=10
INFO:root:Command result: OK
INFO:root:True
INFO:root:True
INFO:root:True
K/V changed!
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
K/V changed!
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:root:Sending command: RESTART
INFO:root:Command result: OK
INFO:root:update Consul K/V Status
INFO:root:True
K/V changed!
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
Docker Pull Command
Owner
sheenhx
Source Repository