All Projects → mycontroller-org → serial2mqtt

mycontroller-org / serial2mqtt

Licence: Apache-2.0 license
Serial to MQTT adapter serivce

Programming Languages

java
68154 projects - #9 most used programming language
shell
77523 projects
Batchfile
5799 projects

Projects that are alternatives of or similar to serial2mqtt

pySerialTransfer
Python package to transfer data in a fast, reliable, and packetized form
Stars: ✭ 78 (+271.43%)
Mutual labels:  serial, serialport
SerialToTCPBridgeProtocol
An error tolerant serial UART to TCP connection, raw data bridge.
Stars: ✭ 16 (-23.81%)
Mutual labels:  serial, gateway
server
MyController 2.x server
Stars: ✭ 14 (-33.33%)
Mutual labels:  mysensors, mycontroller
P5.serialport
Serial Port API and Server for p5.js
Stars: ✭ 120 (+471.43%)
Mutual labels:  serial, serialport
Node Serialport
Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
Stars: ✭ 5,015 (+23780.95%)
Mutual labels:  serial, serialport
Cserialport
基于C++的轻量级开源跨平台串口类库Lightweight cross-platform serial port library based on C++
Stars: ✭ 296 (+1309.52%)
Mutual labels:  serial, serialport
netty-transport-purejavacomm
A netty serial pipeline using JNA and PureJavaComm
Stars: ✭ 30 (+42.86%)
Mutual labels:  serial, serialport
Scriptcommunicator serial Terminal
Scriptable cross-platform data terminal which supports: serial port, UDP, TCP, SPI, I2C and CAN.
Stars: ✭ 462 (+2100%)
Mutual labels:  serial, serialport
Usbserial
Usb serial controller for Android
Stars: ✭ 1,301 (+6095.24%)
Mutual labels:  serial, serialport
Qtswissarmyknife
QSAK (Qt Swiss Army Knife) is a multi-functional, cross-platform debugging tool based on Qt.
Stars: ✭ 196 (+833.33%)
Mutual labels:  serial, serialport
Banklink
PHP payment library to easily integrate Baltic banklinks (supports old and new iPizza protocol), E-commerce gateaway (Estcard, Nets Estonia), Liisi Payment Link and Pocopay.
Stars: ✭ 34 (+61.9%)
Mutual labels:  gateway
omise-magento
Omise Magento Plugin
Stars: ✭ 32 (+52.38%)
Mutual labels:  gateway
tentacool
REST API to manage Linux networking via netlink
Stars: ✭ 63 (+200%)
Mutual labels:  gateway
Zwave2Mqtt-docker
Docker container for Zwave2Mqtt Gateway and Control Panel app
Stars: ✭ 29 (+38.1%)
Mutual labels:  gateway
ioBroker.zwave2
Z-Wave for ioBroker. Better. Faster. Stronger.
Stars: ✭ 22 (+4.76%)
Mutual labels:  adapter
ESP8266
ESP8266 WiFi module Library for Arduino
Stars: ✭ 31 (+47.62%)
Mutual labels:  serial
EspBuddy
Wrapper to easily upload (OTA or Serial), backup, batch query, monitor ESP8266 boards using Esptool.py, Espota.py and Platformio
Stars: ✭ 47 (+123.81%)
Mutual labels:  serial
threema-msgapi-sdk-python
Threema Gateway Message SDK for Python
Stars: ✭ 37 (+76.19%)
Mutual labels:  gateway
libcssl
Columbo Simple Serial Library is an easy to use, event driven serial port communication library for Linux.
Stars: ✭ 38 (+80.95%)
Mutual labels:  serialport
pier
The Interchain gateway core implementation
Stars: ✭ 44 (+109.52%)
Mutual labels:  gateway

serial2mqtt

There is no maintainer for this repository. Please visit the alternate https://github.com/mycontroller-org/2mqtt

Forum

serial2mqtt is kind of adapter. This adapter receives Serial port data and sends to MQTT, vice versa

System Requirement

  • Disk : ~15 MB

  • Memory(RAM) : 4 MB

  • Java : 1.8 or later

Supported Platforms (tested)

  • Linux

  • Windows

  • Raspberry PI

Installation

Configuration

Extract downloaded bundle where exactly do you want to run. Configuration files located in serial2mqtt/conf

File: serial2mqtt.properties

Message queue size

serial2mqtt.message.queue.size=1000 #(1)
  1. Internal message queue size. Messages will be processed immediately. However, if the serial port or MQTT broker goes down in that time messages will be stored in the message queue.

Network type

serial2mqtt.network.type=MY_SENSORS #(1)
  1. For now, this adapter supports only for MySensors

Serial port settings

serial.driver=AUTO #(1)
serial.port=/dev/ttyUSB0 #(2)
serial.baud.rate=115200 #(3)
serial.connection.retry=60 #(4)
  1. This adapter uses a different type of internal driver to communicate with the serial port. Always goes with AUTO, if you do not have any specific requirement. Supported driver options: AUTO, JSERIALCOMM

  2. Serial port name/id

  3. Bud rate of the serial port

  4. When there is a connection failed on the serial port, after this delay will do retry to connect again. values in seconds

MQTT client settings

mqtt.qos=0 #(1)
mqtt.broker=tcp://localhost:1883 #(2)
mqtt.client.id=serial2mqtt-adapter #(3)
mqtt.topic.publish=mygateway-out #(4)
mqtt.topic.subscribe=mygateway-in #(5)
mqtt.username= #(6)
mqtt.password= #(7)
mqtt.connection.retry=60 #(8)
  1. QoS of this MQTT client

  2. broker host URL in the form of tcp://<ip>:<port>

  3. Client id, can be named without space

  4. where to publish serial port data on MQTT topic

  5. subscribe topic, do not include /# on the end. Received data will be published on Serial port

  6. Username of the MQTT broker, if Anonymous access disabled on MQTT broker

  7. Password of the MQTT broker

  8. When there is a failed on connection, retry after this seconds.

Logger configuration

Configuration File Name: logback.xml

Default log file location: logs/mycontroller.log

Start/Stop Server

Executable scripts are located in serial2mqtt/bin/

  • Linux

    • Start : ./start.sh

    • Stop : ./stop.sh

  • Windows

    • Start : Double click on start.bat

    • Stop : Ctrl+C

  • Other Platforms

java -Xms4m -Xmx4m -Dlogback.configurationFile=../conf/logback.xml -Dserial2mqtt.conf.file=../conf/serial2mqtt.properties -cp "../lib/*" org.mycontroller.serial2mqtt.StartService
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].