All Projects → JuliaIO → LibSerialPort.jl

JuliaIO / LibSerialPort.jl

Licence: MIT license
Julia wrapper for the libserialport c library

Programming Languages

julia
2034 projects

Projects that are alternatives of or similar to LibSerialPort.jl

SerialTransfer
Arduino library to transfer dynamic, packetized data fast and reliably via Serial, I2C, or SPI
Stars: ✭ 273 (+405.56%)
Mutual labels:  serial, serial-communication
android-bluetooth-serial
A library for Android to simplify basic serial communication over Bluetooth, for example when communicating with Arduinos.
Stars: ✭ 120 (+122.22%)
Mutual labels:  serial, serial-communication
micronova controller
Allows you to easily control via MQTT any Micronova equiped pellet stove. (MCZ, Extraflame, Laminox, and many others brands!)
Stars: ✭ 30 (-44.44%)
Mutual labels:  serial, serial-communication
pySerialTransfer
Python package to transfer data in a fast, reliable, and packetized form
Stars: ✭ 78 (+44.44%)
Mutual labels:  serial, serial-communication
Esp Link
esp8266 wifi-serial bridge, outbound TCP, and arduino/AVR/LPC/NXP programmer
Stars: ✭ 2,324 (+4203.7%)
Mutual labels:  serial
Cordovarduino
Cordova/Phonegap plugin for USB host serial communication from an Android device.
Stars: ✭ 156 (+188.89%)
Mutual labels:  serial
Webserial
Remote Serial monitor for ESP8266 & ESP32
Stars: ✭ 133 (+146.3%)
Mutual labels:  serial
Arduino
C# .NET - Arduino library supporting simultaneous serial ASCII, Firmata and I2C communication
Stars: ✭ 130 (+140.74%)
Mutual labels:  serial
Saxi
Tools & library for driving the AxiDraw pen plotter
Stars: ✭ 234 (+333.33%)
Mutual labels:  serial
Wmi Static Spoofer
Spoofing the Windows 10 HDD/diskdrive serialnumber from kernel without hooking
Stars: ✭ 199 (+268.52%)
Mutual labels:  serial
Arduino Cmdmessenger
CmdMessenger Communication library for Arduino & .NET
Stars: ✭ 175 (+224.07%)
Mutual labels:  serial
Diozero
Java Device I/O library that is portable across Single Board Computers. Tested with Raspberry Pi, Odroid C2, BeagleBone Black, Next Thing CHIP, Asus Tinker Board and Arduinos. Supports GPIO, I2C, SPI as well as Serial communication. Also known to work with Udoo Quad.
Stars: ✭ 167 (+209.26%)
Mutual labels:  serial
Qtswissarmyknife
QSAK (Qt Swiss Army Knife) is a multi-functional, cross-platform debugging tool based on Qt.
Stars: ✭ 196 (+262.96%)
Mutual labels:  serial
Pyserial Asyncio
asyncio extension package for pyserial
Stars: ✭ 150 (+177.78%)
Mutual labels:  serial
Ohsce
PHP HI-REL SOCKET TCP/UDP/ICMP/Serial .高可靠性PHP通信&控制框架SOCKET-TCP/UDP/ICMP/硬件Serial-RS232/RS422/RS485 AND MORE!
Stars: ✭ 206 (+281.48%)
Mutual labels:  serial
Vjoyserialfeeder
Feed Virtual Joystick driver with data from a serial port
Stars: ✭ 133 (+146.3%)
Mutual labels:  serial
Androidbluetoothlibrary
A Library for easy implementation of Serial Bluetooth Classic and Low Energy on Android. 💙
Stars: ✭ 171 (+216.67%)
Mutual labels:  serial
Go Serial
A cross-platform serial library for go-lang.
Stars: ✭ 194 (+259.26%)
Mutual labels:  serial
Gps.js
A NMEA parser and GPS utility library
Stars: ✭ 171 (+216.67%)
Mutual labels:  serial
Johnny Five
JavaScript Robotics and IoT programming framework, developed at Bocoup.
Stars: ✭ 12,498 (+23044.44%)
Mutual labels:  serial

Build Status

LibSerialPort.jl

libserialport is a small, well-documented C library for general-purpose serial port communication. This is a julia wrapper for the library.

Apart from a very few non-essential functions, the entire library API (about 75 functions) is wrapped using ccall. In addition, a higher-level interface is also provided that follows Julia's IO stream interface.

Installation

pkg> add LibSerialPort

Usage

Try

julia> using LibSerialPort
julia> list_ports()  # or get_port_list() for an array of names

The examples/ directory contains a simple serial console for the command line. This may serve as a useful starting point for your application. The serial_example.ino sketch can be flashed to a microcontroller supported by the Arduino environment.

using LibSerialPort

# Modify these as needed
portname = "/dev/ttyS0"
baudrate = 115200

# Snippet from examples/mwe.jl
LibSerialPort.open(portname, baudrate) do sp
	sleep(2)

	if bytesavailable(sp) > 0
    	println(String(read(sp)))
	end

    write(sp, "hello\n")
    sleep(0.1)
    println(readline(sp))
end

The tests are also worth looking at for demonstration of i/o and configuration. They can be run via julia test/runtests.jl <address> <baudrate>. Unless the address of your device matches that in runtests.jl, doing pkg> test LibSerialPort will fail. This problem would be addressed by support for args in the Pkg REPL.

Note that on Windows, returning an OS-level port handle is not yet supported.

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].