Navigation

  • Categories
  • Recent
  • Tags
  • Popular
  • Search
  • Register
  • Login
  • Register
  • Login
  • Search
  • Categories
  • Recent
  • Tags
  • Popular
  1. Home
  2. Fredz
Fredz

Fredz

@Fredz

0
Reputation
2
Posts
118
Profile views
0
Followers
0
Following
Joined 1 Oct 2021, 13:28 Last Online 27 Oct 2021, 12:10

  • Profile
  • More
    • Following
    • Followers
    • Topics
    • Posts
    • Best
    • Groups
Fredz Follow

Posts made by Fredz

RE: How to convert hexadecimal serial data into real decimal data

Finally, struct unpack work. This is just the documentation witch is not up to date (maybe or I missed something...)
I have an OpenIMU300RI 5020-3309-01 03.01.08 SN:2003100118, Firmware: IMU_J1939 03.01.08
my packet type is 0x7331 's1', and not 0x7a31 'z1' as given

posted in The OpenIMU Family • 27 Oct 2021, 12:10
RE: How to convert hexadecimal serial data into real decimal data

Hello,
I agree with Luken. It would be nice to know how to convert bytes to float.
There is in python int.from_bytes but no equivalent for floats.
And also, in the example from https://github.com/erkuo521/openimu_log_tools/blob/master/openimu.py
"fmt = 'Ifffffffff'
data = struct.unpack(fmt, payload)"
give unusable results.
Thanks for your help.

posted in The OpenIMU Family • 27 Oct 2021, 08:49