当前位置:网站首页>Vofa+ software usage record
Vofa+ software usage record
2022-07-05 07:59:00 【feiyingzaishi】
1) Software version 1.3.10
2) Description of three communication protocols
RawData: The most basic communication protocol , Received something , Just print something , Do not parse the data , Only for viewing byte stream data .
JustFloat: This protocol is a byte stream protocol in the form of small end floating point array , Pure hexadecimal floating point transmission , Save bandwidth . This protocol is very suitable for a large number of channels 、 When the transmission frequency is high .
FireWater: This agreement is CSV Style character streaming , Intuitive and concise , Programming image printf Simple . But because string parsing consumes more computing resources ( No matter in the upper computer or the lower computer ), It is recommended only when the number of channels is small 、 Use when the transmission frequency is not high .
3) This test uses JustFloat: agreement , Serial communication sending data test , Use STM32 test
Pay attention to the communication protocol format .float Type needs to be transformed into char Type send .
void float_char(float f,unsigned char *s)
{
union change
{
float d;
unsigned char dat[4];
}r1;
r1.d = f;
*s = r1.dat[0];
*(s+1) = r1.dat[1];
*(s+2) = r1.dat[2];
*(s+3) = r1.dat[3];
}
float testsindatau1 = 0;
float testsindatau2 = 0;
float testsindatau3 = 0;
float testsindatau4 = 0;
float testsindatau5 = 0;
//²âÊÔVOFA+´¿Ú·¢ËÍ
u8 testdataarraytemp[4] = {0};
u8 testdataarray[24] = {0};
testsindatau1 += 1;
testsindatau2 += 2;
testsindatau3 += 3;
testsindatau4 += 4;
testsindatau5 += 5;
if(testsindatau1 > 250)
{
testsindatau1 = 0;
}
if(testsindatau2 > 250)
{
testsindatau2 = 0;
}
if(testsindatau3 > 250)
{
testsindatau3 = 0;
}
if(testsindatau4 > 250)
{
testsindatau4 = 0;
}
if(testsindatau5 > 250)
{
testsindatau5 = 0;
}
float_char(testsindatau1,testdataarraytemp);
testdataarray[0] = testdataarraytemp[0];
testdataarray[1] = testdataarraytemp[1];
testdataarray[2] = testdataarraytemp[2];
testdataarray[3] = testdataarraytemp[3];
float_char(testsindatau2,testdataarraytemp);
testdataarray[4] = testdataarraytemp[0];
testdataarray[5] = testdataarraytemp[1];
testdataarray[6] = testdataarraytemp[2];
testdataarray[7] = testdataarraytemp[3];
float_char(testsindatau3,testdataarraytemp);
testdataarray[8] = testdataarraytemp[0];
testdataarray[9] = testdataarraytemp[1];
testdataarray[10] = testdataarraytemp[2];
testdataarray[11] = testdataarraytemp[3];
float_char(testsindatau4,testdataarraytemp);
testdataarray[12] = testdataarraytemp[0];
testdataarray[13] = testdataarraytemp[1];
testdataarray[14] = testdataarraytemp[2];
testdataarray[15] = testdataarraytemp[3];
float_char(testsindatau5,testdataarraytemp);
testdataarray[16] = testdataarraytemp[0];
testdataarray[17] = testdataarraytemp[1];
testdataarray[18] = testdataarraytemp[2];
testdataarray[19] = testdataarraytemp[3];
testdataarray[20] = 0;
testdataarray[21] = 0;
testdataarray[22] = 0x80;
testdataarray[23] = 0x7f;
My_USARTSendData(testdataarray,24);
4) Experience with
It doesn't feel particularly useful , If there is a large difference in the range of data sent , The display is not very friendly , May use Jscope Accustomed to the , It's just personal opinion .
边栏推荐
- Realization of binary relation of discrete mathematics with C language and its properties
- Altium designer 19.1.18 - clear information generated by measuring distance
- The printer encountered an abnormal configuration problem 0x8007007e (win10)
- Network port usage
- Some errors in configuring the environment
- A complete set of indicators for the 10000 class clean room of electronic semiconductors
- Altium Designer 19.1.18 - 清除测量距离产生的信息
- Global and Chinese markets for anesthesia, breathing and sleep apnea devices 2022-2028: Research Report on technology, participants, trends, market size and share
- PMSM dead time compensation
- A simple method to prove 1/t Fourier transform
猜你喜欢

Markdown tips

A complete set of indicators for the 10000 class clean room of electronic semiconductors

Reasons for rapid wear of conductive slip rings

Altium designer 19.1.18 - clear information generated by measuring distance

软件设计师:03-数据库系统

VESC Benjamin test motor parameters
![Halcon's practice based on shape template matching [1]](/img/68/206eed7502fbf108a929aa9365b1ae.jpg)
Halcon's practice based on shape template matching [1]

LED display equipment records of the opening ceremony of the Beijing Winter Olympics

Altium Designer 19.1.18 - 隐藏某一个网络的飞线
![C WinForm [help interface - send email] - practice five](/img/2a/c4e7abe054e6fdd45acc7d297a033d.jpg)
C WinForm [help interface - send email] - practice five
随机推荐
Embedded AI intelligent technology liquid particle counter
Global and Chinese market of blackbody calibration source 2022-2028: Research Report on technology, participants, trends, market size and share
Beijing Winter Olympics opening ceremony display equipment record 3
Class of color image processing based on Halcon learning_ ndim_ norm. hdev
C WinForm [exit application] - practice 3
assert_ Usage of param function
Global and Chinese market of digital shore durometer 2022-2028: Research Report on technology, participants, trends, market size and share
Distinction between heap and stack
Halcon's practice based on shape template matching [2]
Improve lighting C program
solver. Learning notes of prototxt file parameters
[popular science] some interesting things that I don't know whether they are useful or not
Global and Chinese market of urban rail connectors 2022-2028: Research Report on technology, participants, trends, market size and share
Altium Designer 19.1.18 - 清除测量距离产生的信息
Extended application of single chip microcomputer-06 independent key
Baiwen 7-day smart home learning experience of Internet of things
Measurement fitting based on Halcon learning [i] fuse Hdev routine
Halcon's practice based on shape template matching [1]
Win10 shortcut key
C language uses arrays to realize the intersection, union, difference and complement of sets