Comments (5)
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.
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.
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.
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.
Thanks in advance!
from beagle-term.
Related Issues (20)
- extension validation fail when loading HOT 1
- BeagleTerm 1.7 is released! HOT 5
- Support for telnet and SSH connections HOT 3
- Unable to talk to a device on Chrome OS HOT 36
- New version (maybe) hangs on connect HOT 5
- Local Echo HOT 5
- Higher baudrate support HOT 1
- v1.8.0 beta release HOT 2
- locks up when attempting to connect 9600 HOT 3
- Locks up when opening a connection HOT 27
- Communication outside of GitHub HOT 2
- Remove bower dependency. HOT 2
- Improve comments to use JSDoc HOT 1
- Feature Request - Send a file to the serial port.
- Line break causes terminal to suspend silently HOT 2
- Multiple serial port behaviour HOT 4
- Support for copy and paste? HOT 3
- Line Feed instead of Carriage Return+Line Feed
- Weird Display of Unicode Degree Symbol
- How to you set the backspace to ctrl-h?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from beagle-term.