Giter VIP home page Giter VIP logo

vector-bluetooth's People

Contributors

bussardrobbie avatar dietb avatar joematpal avatar mikecorlett avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vector-bluetooth's Issues

make build Go prerequisite check

I've compiled vector-bluetooth on 3x different machines and they all lacked Go and resulted in error during 'make build' command. I suggest adding a pre-requisite check for Go if possible.

connect command pairing mode message

I suggest adding a message for the user to check that vector is in bluetooth pairing mode when the 'connect' command fails. Took me some time to realize that this was the reason I wasn't being able to connect.

Check Against Auth Prior to Allowing Configuration Command Run

For user convenience, the tool should check to make sure that the robot is auth'd prior to the user being able to run the config command. Currently, the configuration command dumps changes if the robot isn't auth'd (after everything has been filled out), but it would be a much better experience to simply be informed that the robot isn't auth'd before the command runs.

execution errors in MacOS

I have successfully been able to build and run vector-ble in linux arm (arm64, on manjaro, pine book pro).
I have been able to build vector-ble on both M1(arm64) and Intel(x64) Macs. However note the following:

  1. During compilation 'pkg-config' had to be installed (in addition to Go). I compiled it from source.
  2. In both the arm64 and x64 versions of macOS, I received the following alternating errors messages when running:
    michael@MoonMini vector-bluetooth % ./vector-ble panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x2 addr=0x20 pc=0x10255a910]
    goroutine 19 [running]: github.com/currantlabs/ble/linux/hci.(*HCI).sktLoop(0x14000106780) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:267 +0x80 created by github.com/currantlabs/ble/linux/hci.(*HCI).Init /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:146 +0x4f4
    and
    michael@MoonMBP vector-bluetooth % ./vector-ble panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x28 pc=0x11bc802]
    goroutine 1 [running]: github.com/currantlabs/ble/linux/hci.(*HCI).send(0xc000001c80, 0x12c0bc0, 0x14503e8, 0xc000068778, 0xc000176240, 0xc000105bd8, 0x10, 0x12354c0) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:249 +0x302 github.com/currantlabs/ble/linux/hci.(*HCI).Send(0xc000001c80, 0x12c0bc0, 0x14503e8, 0x0, 0x0, 0xc00001c240, 0x0) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:221 +0x45 github.com/currantlabs/ble/linux/hci.(*HCI).init(0xc000001c80, 0x1286658, 0xc000001c80) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:178 +0x52 github.com/currantlabs/ble/linux/hci.(*HCI).Init(0xc000001c80, 0x0, 0x0) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/hci/hci.go:147 +0x596 github.com/currantlabs/ble/linux.NewDevice(0x1256b60, 0xc000176180, 0x20) /Users/michael/go/pkg/mod/github.com/currantlabs/[email protected]/linux/device.go:21 +0x5f github.com/digital-dream-labs/vector-bluetooth/ble/conn.New(0xc0000686c0, 0x5, 0xc0000686c0, 0xc000013190) /Users/michael/Downloads/vector-bluetooth/ble/conn/conn.go:41 +0x1fa github.com/digital-dream-labs/vector-bluetooth/ble.New(0xc000105ea8, 0x2, 0x2, 0x126c8a0, 0x100000000000178, 0x2a09218) /Users/michael/Downloads/vector-bluetooth/ble/vector.go:57 +0xb1 github.com/digital-dream-labs/vector-bluetooth/cli.BLEShell() /Users/michael/Downloads/vector-bluetooth/cli/blecli.go:21 +0xd4 main.main() /Users/michael/Downloads/vector-bluetooth/cmd/main.go:6 +0x25

Regards,
-Michael

*Connection.Close() does not release the HCI device

Closing the connection does not make the HCI device available again, which blocks off anyone from using BLE until exit. I need to dig into the multiple forks and issues to see if there's a fix available.

Metric Weather Units

Even when the user sets metric temperature units to "false" in configuration, metric units are used for temperature once that configuration is finalized, when they should be Imperial units.

OS Detection

If possible, we should implement OS detection for the correct build steps to run and the tool to compile clean across platforms.

wifi-connect doesn't support wifi passwords with space

Wifi-connect does not properly handle wifi passwords with space.

If enclosing with quotations, or adding a '\' before the space, the separate words are treated as separate arguments instead of a single password.

I believe the issue is in how blecli.go processes the arguments before passing over to wifi.go.

No exit command

It isn't clear what is the proper way to exit vector-ble. 'exit' and 'quit' does not work. Had to Ctrl+C...
I suggest supporting 'exit' or 'quit' or mentioning what is the proper way to exit.

Logs download filename

The downloaded logs filename includes ':' characters in Linux. I was having trouble decompressing the file due to this. After renaming the file I was able to decompress. I am not sure if this was the reason but I suggest not to return a file with those characters. I used 'tar -xvjf filename' to decompress.

Down Failure - Exit in Configuration

When exiting the script while configuration is being submitted, the app will fail to release bluetooth lock, and will require machine reboot to re-run the tool and establish connection.

Very few users should encounter this problem, but hey, just in case we want to save a few reboots if something goes wrong...

Implement Lists of Time Zones / Locales

It would be good to implement lists of time zones and locales in the tool (or maybe even just in the documentation to copy/paste) so that people can easily understand the format of each configuration option.

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.