All Projects → lynaisy → RxSerialPort

lynaisy / RxSerialPort

Licence: other
基于Rxjava2.x的串口通信library

Programming Languages

java
68154 projects - #9 most used programming language
c
50402 projects - #5 most used programming language
Makefile
30231 projects
shell
77523 projects

Projects that are alternatives of or similar to RxSerialPort

Cserialport
The latest modified version of Remon Spekreijse's serial port class
Stars: ✭ 64 (+481.82%)
Mutual labels:  serial-ports, serialport
Libserial
Serial Port Programming in C++
Stars: ✭ 201 (+1727.27%)
Mutual labels:  serial-ports, serialport
etherport-client
Client-side virtual serial port for Etherport. Used to implement firmata-compatible boards and relays.
Stars: ✭ 20 (+81.82%)
Mutual labels:  serial-ports, serialport
serial.nim
A Nim library for accessing serial ports.
Stars: ✭ 59 (+436.36%)
Mutual labels:  serial-ports, serialport
Androidserialport
Android串口通信示例
Stars: ✭ 497 (+4418.18%)
Mutual labels:  serial-ports, serialport
Androidserialport
Android Serial Port , 基本的Android 串口通信库
Stars: ✭ 99 (+800%)
Mutual labels:  serial-ports, serialport
Common
Yet another serial port debugger.
Stars: ✭ 245 (+2127.27%)
Mutual labels:  serial-ports, serialport
serialport
PHP Serial Port
Stars: ✭ 42 (+281.82%)
Mutual labels:  serial-ports, serialport
Cserialport
基于C++的轻量级开源跨平台串口类库Lightweight cross-platform serial port library based on C++
Stars: ✭ 296 (+2590.91%)
Mutual labels:  serial-ports, serialport
serialPort
Android通用的串口通信库
Stars: ✭ 39 (+254.55%)
Mutual labels:  serial-ports, serialport
Ninjaterm
A serial port terminal that's got your back.
Stars: ✭ 24 (+118.18%)
Mutual labels:  serial-ports, serialport
Node Serialport
Access serial ports with JavaScript. Linux, OSX and Windows. Welcome your robotic JavaScript overlords. Better yet, program them!
Stars: ✭ 5,015 (+45490.91%)
Mutual labels:  serial-ports, serialport
Rubyserial
FFI Ruby library for RS-232 serial port communication
Stars: ✭ 142 (+1190.91%)
Mutual labels:  serial-ports, serialport
SerialPundit
Serial port communication in Java - FTDI D2XX, HID API, X/Y modem
Stars: ✭ 116 (+954.55%)
Mutual labels:  serialport
Akka Serial
Reactive serial communication library for Akka and Scala.
Stars: ✭ 123 (+1018.18%)
Mutual labels:  serial-ports
RxPager
RxPager is an Android library that helps handling paginated results in a reactive way
Stars: ✭ 56 (+409.09%)
Mutual labels:  rxjava2
kotlin-maze
🚂 A simple way to implement applications using observable streams
Stars: ✭ 56 (+409.09%)
Mutual labels:  rxjava2
Sers
Serial port access for the Go programming language.
Stars: ✭ 30 (+172.73%)
Mutual labels:  serial-ports
blueprint
Architectural frameworks and toolkits for bootstrapping modern Android codebases.
Stars: ✭ 57 (+418.18%)
Mutual labels:  rxjava2
RestaurantsExplorer
Android application build with MVVM Pattern, using Zomato API to enable search cities arround the world and display the city restaurants on a map.
Stars: ✭ 32 (+190.91%)
Mutual labels:  rxjava2

RxSerialPort

基于Rxjava2.x的串口通信library

使用方法

打开并监听串口,accept方法会一直保持回调,直到手动关闭串口

    try {
        SerialPortListener.statListen("/dev/ttyS3", 9600, 0)
                .subscribeOn(Schedulers.io())
                .subscribe(new Consumer<byte[]>() {
                    @Override
                    public void accept(byte[] bytes) throws Exception {
                        //todo 实现业务逻辑
                    }
                }, new Consumer<Throwable>() {
                    @Override
                    public void accept(Throwable throwable) throws Exception {

                    }
                });
    } catch (Exception e) {
        e.printStackTrace();
    }

发送数据

SerialPortSender.send(serialPortFileName,bytes);

关闭串口

SerialPortListener.stop(serialPortFileName);
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].