cancel
Showing results for 
Search instead for 
Did you mean: 

Returned value of *start command for ISM330BX and STEVAL-MKI109D

jtmadsen
Associate II

Hello,

 

I have bought an ISM330BX | Product - STMicroelectronics and a STEVAL-MKI109D | Product - STMicroelectronics. I can get it to stream data by using:

 

*setdb245ka 

*zoff 

*gw1009 

*gw1109

 

*start

OR

*debug

 

For debug this streams something like:

AX = -7303 AY = -4734 AZ =-13823

GX = -429 GY = +271 GZ = +358

QVAR =  +0 QVAR_FILTERED =  +0

 

For start, it is binary and i can convert it.

 

According to page 21 of this manual, STEVAL-MKI109D Professional MEMS Tool motherboard for MEMS adapter boards - User manual , this is the returned value of *start:

 

UIstring: s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL QH QL Q_FH Q_FL A_Int1 A_Int2 FSMLC_INT FSM1 StpL StpH DT1 DT2 DT3 DT4 TL TH sw1|sw2 \r \n

 

TDMstring: t d A_XH A_XL A_YH A_YL A_ZH A_ZL 'T' \r \n

 

SFLPstring: s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL Q0_L Q0_H Q1_L Q1_H Q2_L Q2_H gbiasX_H gbiasX_L gbiasY_H gbiasY_L gbiasZ_H gbiasZ_L gravX_H gravX_L gravY_H gravY_L gravZ_L gravZ_H \r \n

 

UIstring + time: s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL QH QL Q_FH Q_FL A_Int1 A_Int2FSMLC_INT FSM1 StpL StpH DT1 DT2 DT3 DT4 TL TH sw1|sw2 TS_XL TS_L TS_H TS_XH \r \n

 

TDMstring+time: t d A_XH A_XL A_YH A_YL A_ZH A_ZL 'T' TS_XL TS_L TS_H TS_XH \r \n

 

SFLPstring+time: s t A_XH A_XL A_YH A_YL A_ZH A_ZL G_XH G_XL G_YH G_YL G_ZH G_ZL Q0_L Q0_H Q1_L Q1_H Q2_L Q2_H gbiasX_H gbiasX_L gbiasY_H gbiasY_L gbiasZ_H gbiasZ_L gravX_H gravX_L gravY_H gravY_L gravZ_L gravZ_H TS_XL TS_L TS_H TS_XH \r \n

 

The initial part of the top one matches with my *start output when I run it and convert it from binary.

 

My question now is: Which commands should I write for changing the returned values to the SFLPstring as written in the manual? I am interested in the different bias, the gravity vector and the quaternions.

 

Thank you, Jeppe

4 REPLIES 4
Federica Bossi
ST Employee

Hi @jtmadsen ,

You can do this:

  1. Connect STEVAL‑MKI109D + ISM330BX to PC and open Unico‑GUI or MEMS Studio
  2. Select ISM330BX.
  3. In the GUI:
    • Enable Sensor Fusion / SFLP 
    • Enable outputs you care about:
      • Quaternion components q0,q1,q2,
      • Gravity vector,
      • Gyro bias (gbias).
    • Start streaming from GUI
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
jtmadsen
Associate II

Hi @Federica Bossi,

Thank you for the response.

As I will be connecting this to a small arm pc without a screen and running a script, I am not able to use any programs with a GUI. This is why I looked into doing this with commands instead of a GUI. Is it somehow possible without a GUI?

Best, Jeppe

 

Hi @jtmadsen ,

If you don’t want to use a GUI, you can work entirely from a serial terminal/plotter like SerialPlot. In this case, you send the configuration commands (such as *setdb..., *gw..., *start, *debug) directly over the serial port, and SerialPlot will both control the board and read back the data stream. This lets you configure the sensor, start/stop acquisition, and visualize or log the data in real time without relying on Unico or MEMS Studio.

 
In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

Hi @Federica Bossi,

 

Thank you for the response.

My question is how to make these commands stream the results of the SFLP as I asked in my initial question.

Best,

Jeppe