LORD-MicroStrain / MSCL

MicroStrain Communication Library
https://www.microstrain.com/software/mscl
MIT License
76 stars 57 forks source link

Using Communication protocol command sets #387

Open jagan-pm opened 5 months ago

msclissa commented 4 months ago

Apologies for the delay!

Based on your email request you attempted to use MSCL but it didn't work for you. Please provide more information about what went wrong - were you able to import MSCL but then errored when trying to connect to or communicate with the sensor? Where there runtime errors? Did everything run successfully but did not result in the expected behavior?

The code you provided does not utilize MSCL or any of our other APIs. Developing your own parser is certainly possible but we can only offer limited support (clarifying protocol structure, assistance determining the right commands to use) - I would recommend using MSCL for communication via Python.

You can find pre-built MSCL Python packages for various versions and environments here: Pre-built MSCL Binaries/Packages

Our setup and installation guide can be found here: How to use MSCL

Python examples for inertial devices to help get you started can be found here: MSCL_Examples/Inertial/Python The setCurrentConfig.py example includes how to configure output data values and rates. Keep in mind that different devices support different commands and data values - if you see errors indicating things are unknown or not supported those can be easily resolved by looking in the communication protocol documentation you've been using to see what is supported on the device or reaching out to us - sometimes the names of things aren't exactly the same in the protocol documentation and MSCL, we would be happy to help figure out what functions or data values you're looking for!

If you run into any issues it would be helpful to know:

Hopefully this helps clarify things! Let us know if you continue to run into any issues!

jagan-pm commented 4 months ago

No problem at all...! It sounds like you're trying to set the sample rate using the example provided in setCurrentConfig.py, but it's not executing properly and showing the error "command (3399) is not supported" in Python.

jagan-pm commented 4 months ago

No problem at all...! It sounds like you're trying to set the sample rate using the example provided in setCurrentConfig.py, but it's not executing properly and showing the error "command (3399) is not supported" in Python.suppose i want only 100 samples per seconds .and this message i was put in git as a comments please check.

thank you jagadees p m

On Mon, Apr 29, 2024 at 8:46 PM msclissa @.***> wrote:

Apologies for the delay!

Based on your email request you attempted to use MSCL but it didn't work for you. Please provide more information about what went wrong - were you able to import MSCL but then errored when trying to connect to or communicate with the sensor? Where there runtime errors? Did everything run successfully but did not result in the expected behavior?

The code you provided does not utilize MSCL or any of our other APIs. Developing your own parser is certainly possible but we can only offer limited support (clarifying protocol structure, assistance determining the right commands to use) - I would recommend using MSCL for communication via Python.

You can find pre-built MSCL Python packages for various versions and environments here: Pre-built MSCL Binaries/Packages https://github.com/LORD-MicroStrain/MSCL?tab=readme-ov-file#pre-built-mscl-binariespackages

Our setup and installation guide can be found here: How to use MSCL https://github.com/LORD-MicroStrain/MSCL/blob/master/HowToUseMSCL.md

Python examples for inertial devices to help get you started can be found here: MSCL_Examples/Inertial/Python https://github.com/LORD-MicroStrain/MSCL/tree/master/MSCL_Examples/Inertial/Python The setCurrentConfig.py example includes how to configure output data values and rates. Keep in mind that different devices support different commands and data values - if you see errors indicating things are unknown or not supported those can be easily resolved by looking in the communication protocol documentation you've been using to see what is supported on the device or reaching out to us - sometimes the names of things aren't exactly the same in the protocol documentation and MSCL, we would be happy to help figure out what functions or data values you're looking for!

If you run into any issues it would be helpful to know:

  • The environment you are running in (operating system, Python version)
  • What behavior you are trying to implement
  • What exactly is failing and any associated error messages
  • Anything you have tried to resolve the issue

Hopefully this helps clarify things! Let us know if you continue to run into any issues!

— Reply to this email directly, view it on GitHub https://github.com/LORD-MicroStrain/MSCL/issues/387#issuecomment-2083013925, or unsubscribe https://github.com/notifications/unsubscribe-auth/BH4JZTX5Q5GOCPXDCUS7MC3Y7ZP5BAVCNFSM6AAAAABGKXAAVCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOBTGAYTGOJSGU . You are receiving this because you authored the thread.Message ID: @.***>

-- Jagadees PM Mob :+91 9847883553