Should mm_get_devices_list work on a beacon? Or only on modem?

Frequent questions asked online, offline, in forums are answered here
Post Reply
theRoboticist
Posts: 6
Joined: Wed Oct 23, 2019 7:53 am

Should mm_get_devices_list work on a beacon? Or only on modem?

Post by theRoboticist »

I am trying to write some code for a raspberry pi with 2 mini-tx beacons attached (in paired mode). I am trying to get the list of devices to verify that the beacons I expect to be connected to the pi are indeed present and ready for operation. I am able to connect to a device and get the USB connection info with mm_get_device_version_and_id (following the example_source included in the API folder) but then trying to list devices fails repeatedly. Is this expected?

Note that I can open the dashboard and see all of my devices just fine so it seems to be something in my handling of the API that is causing the problem.

(Side note - mm_open_port_by_name also fails for me when providing the port name such as "/dev/ttyACM0", but mm_open_port works correctly so I think it will work okay to only connect to a single hedge with the pi since they will be in paired mode and I can just read the paired position and angle. Please correct me if that is an invalid assumption)

Post Reply