Hi,
i'm using a modified test635 C source to program temperature and fanspeed reporting. I run this command in a loop every 500ms to read out the values:
The program is running under linux and if I set fan 1 to 84% and enable fanspeed report I recieve this from the function ShowReceivedPacket()
C=129( 1 = Read Version),L=4,D="\000\011\172N",CRC=0xB7FF5F95
The values after D="\000\ vary and I can not find any logic. The first three 000 tell me which fan is reported but the rest looks very confusing to me.
The same when I use temperature reporting, I use the same function as above and I'll get this:
C=130( 2 = Write Flash),L=4,D="\000v\001\001",CRC=0xB7FB893B
Can someone tell me what I have to change in that function, so that I get "real" values?!
Thanks
Note:
I think it is because the incoming data is being formated to a string. If I look at it with a packet sniffer the structure of the packets look like it is described in the manual.
i'm using a modified test635 C source to program temperature and fanspeed reporting. I run this command in a loop every 500ms to read out the values:
Code:
int timed_out = 1;
for(int k=0;k<=10000;k++)
{
if(check_for_packet())
{
ShowReceivedPacket();
break;
}
if(timed_out)
{}
}
C=129( 1 = Read Version),L=4,D="\000\011\172N",CRC=0xB7FF5F95
The values after D="\000\ vary and I can not find any logic. The first three 000 tell me which fan is reported but the rest looks very confusing to me.
The same when I use temperature reporting, I use the same function as above and I'll get this:
C=130( 2 = Write Flash),L=4,D="\000v\001\001",CRC=0xB7FB893B
Can someone tell me what I have to change in that function, so that I get "real" values?!
Thanks
Note:
I think it is because the incoming data is being formated to a string. If I look at it with a packet sniffer the structure of the packets look like it is described in the manual.
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited: