Problems with 'Packed Mode' using MMS

edited February 9 in Python

When I use the sensors in streaming mode I would like to send the data in packets and I saw that there is a function (packed) to send multiple samples in one bluetooth packet. However, if I use the code that is among the examples (the one of the gyroscopes) it gives me as error "segmentation fault". Can you tell me how I can solve ? also I would like to know if the packed mode is usable also in logging mode (I tried but I failed).

Thanks

Comments

  • edited February 17

    @giovanni_dq I had no problem running the stream_gyro_packed.py script. Are you using the latest version of the SDK?

    We can see the epoch is the same for clusters of 3 samples indicating that packets are coming in packed.

    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821318, data: {x : 0.061, y : 0.000, z : 0.122}
    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821318, data: {x : 0.122, y : -0.030, z : 0.091}
    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821318, data: {x : -0.030, y : -0.122, z : -0.091}
    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821378, data: {x : 0.122, y : -0.152, z : 0.091}
    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821378, data: {x : -0.122, y : 0.000, z : 0.244}
    GYRO: XX:XX:XX:XX:XX:XX -> epoch: 1645140821378, data: {x : 0.091, y : -0.091, z : -0.091}

    Packed mode does not really save meaningful overhead when using the logger so I would not recommend trying to. It may or may not actually work, I do not think this would be among our unit tests. It is possible to simultaneously log unpacked while streaming packed so neither setup should limit how you use the device.

Sign In or Register to comment.