Coder Social home page Coder Social logo

Parity and flow control about beagle-term HOT 5 CLOSED

beagleterm avatar beagleterm commented on August 22, 2024
Parity and flow control

from beagle-term.

Comments (5)

codewithtyler avatar codewithtyler commented on August 22, 2024 1

You're right it's rare that you need to change any of these values. However, I have had to do it with connecting to a switch. At the time I was using Putty, and I had no problem changing the setting. However, now I'm trying to see if I can switch to a Chromebook and configure switches from that. That's why I decided to start with this issue.

Edit: I've been looking over the code and I got that str2ab is a function that converts a string to an ArrayBuffer and ab2str does the opposite, but what is the Crosh function? It's name makes it hard for me to understand what it's doing.

from beagle-term.

codewithtyler avatar codewithtyler commented on August 22, 2024

I just recently came across this project and got really excited when I realized this would allow me to communicate with various devices via a Chromebook. I'm going to check out the project more and see if I can add more features to it. I'm going to try and get this feature done first. So far I've looked over Google's documentation and here's some settings that we could add. All have been available since Chrome 33. The values you see are the default values sent if not changed, which at this time are sent every time since we can only change the baud rate (bit rate).

Name Default Value
Data Bits 8
Parity Bit No
Stop Bit 1
Flow Control false

As I said before all of these values can be altered. In case someone else picks this up and can work on it before me here's more info from Google's documentation. I've included the name that must be used in the code , a generic description so you know what it is, and the possible values that can be used.

Name Description Possible Values
DataBits Data Bits "seven", or "eight"
ParityBit Parity Bit "no", "odd", or "even"
StopBits Stop Bit "one", or "two"
ctsFlowControl Flow Control (Optional) true or false

from beagle-term.

sunglim avatar sunglim commented on August 22, 2024

Hi @RandomlyKnighted,
Thank you for your interest.

As you told, We can connect with explicitly setting more values as described in chrome.serial API

But I'm not sure if people really want this feature. When I was in embedded device company, I rarely modified 'Data bits', 'Parity Bits', 'Stop Bit' and 'Flow Control'.


To config connection property, you can see here

It would be good if we have nice framework to draw UI, but it's still good to just simply adding more controls on main menu.

Thanks again for your interest. I would happy to accept your PR.

from beagle-term.

codewithtyler avatar codewithtyler commented on August 22, 2024

I've started working on this feature. I've got the UI done just gotta fix a couple things in the code.

from beagle-term.

sunglim avatar sunglim commented on August 22, 2024

Thanks in advance!

from beagle-term.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.