serial-rs | Rust library for interacting with serial ports | Wrapper library

 by   dcuddeback Rust Version: Current License: MIT

kandi X-RAY | serial-rs Summary

kandi X-RAY | serial-rs Summary

serial-rs is a Rust library typically used in Utilities, Wrapper applications. serial-rs has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can download it from GitHub.

Rust library for interacting with serial ports.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              serial-rs has a low active ecosystem.
              It has 178 star(s) with 53 fork(s). There are 9 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 8 open issues and 34 have been closed. On average issues are closed in 20 days. There are 7 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of serial-rs is current.

            kandi-Quality Quality

              serial-rs has no bugs reported.

            kandi-Security Security

              serial-rs has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              serial-rs is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              serial-rs releases are not available. You will need to build from source code and install.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of serial-rs
            Get all kandi verified functions for this library.

            serial-rs Key Features

            No Key Features are available at this moment for serial-rs.

            serial-rs Examples and Code Snippets

            No Code Snippets are available at this moment for serial-rs.

            Community Discussions

            QUESTION

            Understanding RS-485 in Linux
            Asked 2019-May-27 at 17:02

            I'm trying to learn the RS-485 interface by sending data between two Linux computers. The main computer is running ubuntu16.04 and the other is running a debian based system on kernel 4.19.

            The main PC has a USB to RS-485 adapter and the other PC has RS-485 interface.

            Initially I assumed that i could simply echo data on the interface but I could not. If i connected with picocom I could type data but not send it. By looking around i realized that this is because both PCs are waiting for RTS that somehow needs to be toggled.

            I then concluded that I need some sort of C program to initialize the interface(please correct me if I'm wrong).

            I went https://www.kernel.org/doc/Documentation/serial/serial-rs485.txt Where the is an example code for setting up RS-485.

            However, when I try to run it always fails at:

            ...

            ANSWER

            Answered 2019-May-27 at 17:02

            I cannot be completely sure but I don't think you need to play with the RTS toggling at all since your devices seem to support hardware half-duplex by default.

            Check the following to make sure your hardware setup is correct:

            According to the manual of your Cincoze you have to select each port's operating mode at BIOS level:

            Then make sure your USB cable is also working half-duplex with the microswitches (it should be fine by default):

            And finally, make sure you're wiring your devices correctly, following these diagrams:

            If your cable is not too long (less than 50 meters, maybe?) you should not have to worry about termination or impedance that much, otherwise you might need to add a resistance on the computer DB9 and move the switches on the USB cable.

            As a final comment, be aware that your devices support full-duplex too; if you change the settings as per the instructions above but select RS422 instead and make the 4-wire setup you should be able to open a terminal on both computers and send and receive at the same time, in case you need that.

            EDIT 1: For completeness, I'm adding here a couple of references for those who are working with devices that don't support hardware direction control:

            RS485: Inappropriate ioctl for device

            Pymodbus - Read input register of Energy meter over rs485 on uart of raspberry pi3

            EDIT 2: As discussed in the comments below, for this particular hardware where you can choose different operating modes in the BIOS, an additional thing to keep in mind is that the naming of the ports (at OS level) might change when you select a new operating mode. Use $cat /proc/tty/driver/serial to find out details about you hardware.

            Source https://stackoverflow.com/questions/56289116

            QUESTION

            RS485: Inappropriate ioctl for device
            Asked 2019-May-09 at 20:17

            I am using the following code to access the RS485 slave but I get the error:

            Error reading ioctl port (25): Inappropriate ioctl for device

            My code is as follows:

            ...

            ANSWER

            Answered 2017-Aug-30 at 15:32

            As mentioned in the comment by @Richard Chambers you are using the structure uninitialised. You should do

            Source https://stackoverflow.com/questions/45957314

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install serial-rs

            You can download it from GitHub.
            Rust is installed and managed by the rustup tool. Rust has a 6-week rapid release process and supports a great number of platforms, so there are many builds of Rust available at any time. Please refer rust-lang.org for more information.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/dcuddeback/serial-rs.git

          • CLI

            gh repo clone dcuddeback/serial-rs

          • sshUrl

            git@github.com:dcuddeback/serial-rs.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Wrapper Libraries

            jna

            by java-native-access

            node-serialport

            by serialport

            lunchy

            by eddiezane

            ReLinker

            by KeepSafe

            pyserial

            by pyserial

            Try Top Libraries by dcuddeback

            libusb-rs

            by dcuddebackRust

            termios-rs

            by dcuddebackRust

            libusb-sys

            by dcuddebackRust

            gphoto-rs

            by dcuddebackRust

            libudev-rs

            by dcuddebackRust