Back to Blog
Gnu octave electrical engineering6/26/2023 The STM device reading the serial commands waits 1ms between bytes it reads in as well, because previously it was able to send many strings for the x-axis before it received the "s" command. This can be worked around by adding a 1ms character delay. Using GNU Octave and its instrument-control package I can read in all coordinates, but sending the string "xs" will cause the device to only receive the "x" byte and it will relay x-axis data continuously. sending the command "xs" will return a single 6-byte packet of the x-axis angular rate data (maybe something like "+00021"). Using CuteCom I am able to interact well with the device e.g. It waits until it receives the "x", "y", or "z" commands to send data and then it continues to send data for that coordinate until a stop bit (anything other than "x", "y", or "z", I usually use "s") is sent. The gryoscope is read over SPI onto the microcontroller and then the micro relays the data to the computer. The device is a microcontroller board (STM32F401C Discovery board) with a gryoscope. I am having difficulty reading a USB virtual comm port into GNU Octave, and there are some bizarre goings-on that I would like some input on.Ĭurrently I have a USB CDC virtual comm port device that I programmed to respond to commands over serial with the computer.
0 Comments
Read More
Leave a Reply. |