Comments (5)
Thanks for posting the issue. It'll be good to have all of this in one place.
As for the implementation of a byte-by-byte read, I have looked into DAPLink's commands and have yet to find a single byte read. It appears DAPjs is sending the value 0x83 (READ) during the timer found at startSerialRead(). I was hoping there would be a similar value for reading a single byte.
I understand you have some alternate approaches than DAPjs. It will be interesting to see what you come up with.
from microbit-web-bridge.
Actually, just thinking bout it, has anyone tried changing the serialDelay parameter passed into startSerialRead()? I'm wondering if slowing the timer in which the data is read would help as the data may be being processed before all data is available?
Another possible solution is that we implement the SLIP_* fully so that each command has a start and an end character. This way, we can fill a buffer with the incoming data until a SLIP_END character is found.
This would be as simple as appending the data to a buffer and only emitting the DAPLink.EVENT_SERIAL_DATA event when the buffer contains both the start and end characters.
from microbit-web-bridge.
@Taylor-Woodcock I tried lowering serial_delay value, but no-luck.
from microbit-web-bridge.
@Taylor-Woodcock your second suggestion is possible, but we need to fork dapJS then.
from microbit-web-bridge.
Received to write: ���^���DATA SENT�
WebBridge.bundle.js:5261 Received: ���^���DATA SENT�oricalData/�3�tnw3�gl�celsius���7�tnw3
additional logs
from microbit-web-bridge.
Related Issues (1)
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 microbit-web-bridge.