hey,
My computer started overheating so ive finally started writign the fan controller for linux..
anywho... I send the command to report the 2 connected temps and it only reports back once?
so here is my horrible code..
now, it should get the hardware info, setup reporting then spit out the report as they come in right?
ok, after a bit of investigating, if i ping the display in the while(1) loop then i will get a fan report (a single 1) and its always "1044.3750?C =1911.8750?F" (string got from the temp->string conversion code in the datasheet)..
am i doing something wrong? or is my hardware faulty or something?
cheers
edit: i just realised i was trying to get a report from my 635 which doesnt have the scab connected... i changed the port to my 631 which does have the scab and still the same.. so im guessing i must be doing something wrong.? (my 631 has a live display setup if that makes a difference)
edit2: im a dill... i was checking for 0x40|19 when i should have been checking for 0x82 which ive changed it to and now i get nothing :'(
________
BONDAGE PAIN
My computer started overheating so ive finally started writign the fan controller for linux..
anywho... I send the command to report the 2 connected temps and it only reports back once?
so here is my horrible code..
Code:
outgoing_response.command = 1;
outgoing_response.data_length = 0;
send_packet();
while (check_for_packet())
ShowReceivedPacket();
/* set up temp reporting */
outgoing_response.command = 19;
outgoing_response.data_length = 4;
outgoing_response.data[0] == 0x03;
outgoing_response.data[1] == 0x00;
outgoing_response.data[2] == 0x00;
outgoing_response.data[3] == 0x00;
send_packet();
while (check_for_packet())
;
ShowReceivedPacket();
while (1)
{
sleep(1);
while (check_for_packet())
{
char buf[64];
if (incoming_command.command == 0x82)
{
OnReceivedTempReport(&incoming_command,buf);
printf("%s\n",buf);
}
}
}
ok, after a bit of investigating, if i ping the display in the while(1) loop then i will get a fan report (a single 1) and its always "1044.3750?C =1911.8750?F" (string got from the temp->string conversion code in the datasheet)..
am i doing something wrong? or is my hardware faulty or something?
cheers
edit: i just realised i was trying to get a report from my 635 which doesnt have the scab connected... i changed the port to my 631 which does have the scab and still the same.. so im guessing i must be doing something wrong.? (my 631 has a live display setup if that makes a difference)
edit2: im a dill... i was checking for 0x40|19 when i should have been checking for 0x82 which ive changed it to and now i get nothing :'(
________
BONDAGE PAIN
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited: