Giter VIP home page Giter VIP logo

Comments (5)

hyunh90 avatar hyunh90 commented on August 16, 2024 1

Solution found; was able to build and test with the actual device, and works well.

Will send PR in a moment.

from sweep-sdk.

hyunh90 avatar hyunh90 commented on August 16, 2024 1

Quick followup: I submitted the request for FreeBSD Ports tree inclusion of libsweep; it will take few months (or years? XD) for it to be reflected.

from sweep-sdk.

daniel-j-h avatar daniel-j-h commented on August 16, 2024

Can you add a branch for FreeBSD to the build system here and try again.

In theory the SDK should work but no one tested it yet.

If you test it and it works feel free to make a pull request enabling compilation on FreeBSD.

from sweep-sdk.

hyunh90 avatar hyunh90 commented on August 16, 2024

Got the build part done.
However, I am getting serial errors: invalid scan response command and invalid response header checksum upon compiling and running examples/example.c.
Controlling actual hardware with sweep-ctl worked well and did not emit any error.

Will dig further and update you with fixes.

from sweep-sdk.

hyunh90 avatar hyunh90 commented on August 16, 2024

It looks like in the middle of the measurement stream, the checksum byte of a data block suddenly being read as \0(0x00), triggering checksum failure. I suspect this being BREAK condition, as in serial.cc the IGNBRK flag has been turned off. But frankly, I don't know why this happens, as I haven't done serial programming before.

For now, I'll keep experimenting with termios flags.

from sweep-sdk.

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.