Coder Social home page Coder Social logo

Comments (5)

taylow avatar taylow commented on August 21, 2024

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.

taylow avatar taylow commented on August 21, 2024

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.

yarsanich avatar yarsanich commented on August 21, 2024

@Taylor-Woodcock I tried lowering serial_delay value, but no-luck.

from microbit-web-bridge.

yarsanich avatar yarsanich commented on August 21, 2024

@Taylor-Woodcock your second suggestion is possible, but we need to fork dapJS then.

from microbit-web-bridge.

yarsanich avatar yarsanich commented on August 21, 2024

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 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.