OpenCores
no use no use 1/1 no use no use
Xsens MT9-B comunication with RS-232 problem
by Hardyano on Jun 23, 2011
Hardyano
Posts: 1
Joined: May 25, 2011
Last seen: Oct 26, 2011
Hi everyone!

I'm trying to get data from a sensor Xsens MT9-B connected through a RS-232 gate and I'm having problems with that. The sensor transmits a total of 25bytes at every 10ms at a baud rate of 115k2 bits/s. The first byte is for Preamble, the second byte is for Address, the third is for MID and the fourth is for Lenght. Then comes the Data that I want in a total of 20bytes. I just want the first 6byte corresponding to AccX, AccY and AccZ (accelerometers). The code in attach must work... but i'm getting nothing and I don't know what to do. Can anybody tell me what I'm doing wrong?


Here is the MT9-B Technical Documentation for more info.
http://paloma.isr.uc.pt/~lgm/datasets/manuals/MT9-B%20Technical%20Documentation.pdf

Thank you all!
RE: Xsens MT9-B comunication with RS-232 problem
by zdr_vlad on Jun 23, 2011
zdr_vlad
Posts: 1
Joined: Nov 20, 2009
Last seen: Mar 26, 2017
Hi,

i made a brief review of your code.

I think that your process needs a trigger and you miss a loop for reading the bits. I wrote some comments inside the file.
If it is a pure RS232, then take a look at the RS232RefProj.zip referent project here:
http://www.digilentinc.com/Products/Detail.cfm?Prod=NEXYS2

I hope you'll repair that sensor thing :)

Vladimir
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.