Skip to content

API , Setup and Response. #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
arpit6232 opened this issue Apr 15, 2021 · 8 comments
Closed

API , Setup and Response. #24

arpit6232 opened this issue Apr 15, 2021 · 8 comments
Assignees
Labels
Milestone

Comments

@arpit6232
Copy link
Collaborator

DoD : Create an API between Jetson Nano and response from the Arduino BLE 33 Sense.

Blockers: Testing, Arduino State machine response time to ARDUINO CLI.

@arpit6232 arpit6232 added the todo Work which needs to be done label Apr 15, 2021
@arpit6232 arpit6232 added this to the Sprint 3 milestone Apr 15, 2021
@arpit6232
Copy link
Collaborator Author

As per @ZachTurner07 ,
UML Looks like this :
image

@arpit6232 arpit6232 added WIP Current "work in progress" and removed todo Work which needs to be done labels Apr 15, 2021
@arpit6232
Copy link
Collaborator Author

arpit6232 commented Apr 16, 2021

Tested over Host for API send and response to the Arduino BLE 33 Sense ,

Commit : a84a54d1917d7df28d2f5b73ebd9d51594dba393

  • Prerequisites
sudo stty -F /dev/ttyACM0 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

sudo chmod 777 /dev/ttyACM0
  • Work Output

  • image

  • image

image

@arpit6232
Copy link
Collaborator Author

Tested the above Functionality on Jetson Nano, Arduino BLE reacts correctly.

@ZachTurner07
Copy link
Collaborator

Going to integrate this testing with UART server to validate integration

@ZachTurner07 ZachTurner07 added the bug Something isn't working label Apr 18, 2021
@ZachTurner07
Copy link
Collaborator

Trying to get the API to work with the user application

@ZachTurner07
Copy link
Collaborator

Simplifying API from words to single bytes simplified the implementation. Also, bytes are echoed back instead of responding with a different message to confirm it was detected.

@ZachTurner07 ZachTurner07 removed the bug Something isn't working label Apr 19, 2021
@ZachTurner07
Copy link
Collaborator

ZachTurner07 commented Apr 19, 2021

commit b78b2e5604f8d9c093e8094058d9f11884ed6531 establishes 2-way communication

@ZachTurner07
Copy link
Collaborator

Jetson Nano can send a serial command to the Arduino to command it to start

@CalebProvost CalebProvost added complete and removed WIP Current "work in progress" Waiting for feedback labels Apr 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants