Index: webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c =================================================================== --- webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c (revision 39) +++ webserver/example/EnergyMeters/Source/EnergyMeters/SolarCountUART.c (revision 44) @@ -109,4 +109,6 @@ int solarReadErrors = 0; +int solarReadCounter = 0; + /* pototype section */ @@ -142,5 +144,7 @@ xLastReadTime = xTaskGetTickCount(); solarState = SOL_NO_INIT; - init_serial3(); + uart3TxRunning = 0; /* reset flag to tell if we are currently sending a datagram */ + rxBuf3NextFreeRxPos = 0; + currentChannel = 0; } /* initSolarFSM */ @@ -350,4 +354,5 @@ /* we have got a match! */ + solarReadCounter++; /* copy Rx data */ /* TODO */ @@ -624,5 +629,5 @@ { - + init_serial3(); initSolarFSM(); Index: webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c =================================================================== --- webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 41) +++ webserver/example/EnergyMeters/EnergyMeters/ARM7_LPC2368_Rowley/webserver/httpd-cgi.c (revision 44) @@ -65,4 +65,5 @@ extern int chanWatt[6]; /* holds the wattages measured on channel 0 to 5 */ extern int solarReadErrors; +extern int solarReadCounter; HTTPD_CGI_CALL(file, "file-stats", file_stats); @@ -224,8 +225,8 @@ lRefreshCount++; sprintf( cCountBuf, "


Refresh count = %d\r\nVoltages %d %d %d %d\r\n\ -Wattages %d %d %d %d\r\nSolarReadErr %d\r\n", lRefreshCount, +Wattages %d %d %d %d\r\nSolarReadErr %d\r\nSolarReadCount %d\r\n", lRefreshCount, chanVolt[0], chanVolt[1], chanVolt[2], chanVolt[3], chanWatt[0], chanWatt[1], chanWatt[2], chanWatt[3], - solarReadErrors + solarReadErrors, solarReadCounter ); //strcat( uip_appdata, cCountBuf );