AUTHOR: Kevin Shin
Visual chart made by Alexis
Initial Goal: Configure Luos board (flash Luos Core firmware) & test access API using RPi
Realized Outcome: We are able to access Luos via RPi & Lessons Learned
Outline/Framework/Recipe/Steps
SETUP:
WHAT WE DID:
Connect to the NUC (AnyDesk Remote Desktop Software) - https://www.notion.so/Nuc-a920e2c5419440c6889c4f9df79ce373
Once you access NUC, SSH into the Raspberry Pi4 with the Reachy software (snapshot below)
password:
Use the command to discover attached Luos modules (snapshot below)
Command: pyluos-usb-gate discover
Result: attached Luos modules will be listed - we have 2 Luos modules detected
Launch Python3 (you may need to pip install Pyluos if the below import command does not work)
From the Python (Pyluos) access the Luos API
from pyluos import Device
device = Device('/dev/ttyUSB0'). âttyUSB0 is the module address that was detected above
From here, you can use the Pyluos commands - we used 'device.modules' command to enumerate the Luos modules available on the board.
Initially we took the above steps with only the Luos Gate module attached to the RaspberryPi. When we sent the "pyluos-usb-gate discover" command, it only returned one module - '/dev/ttyAMA0'
When we tried to call it from the Pyluos, following error occurred.
We suspect that it has to do with some type of handshake that happens between the Luos boards and you must have Luos Gate + another Luos board connected in order to access the API.
Next Step: Since the Luos is open source, it maybe worthwhile to take a deeper look in the firmware (called Luos Core) if you are interested in learning more about the Luos Distributed Modular architecture.
Key Learning:
Issues and Blockers:
Still lack the understanding of the different Luos electronics modules