diff --git a/firmware/hemocube_mock/hemocube_mock.ino b/firmware/hemocube_mock/hemocube_mock.ino index 307e329..883b722 100644 --- a/firmware/hemocube_mock/hemocube_mock.ino +++ b/firmware/hemocube_mock/hemocube_mock.ino @@ -7,32 +7,39 @@ void loop() { // put your main code here, to run repeatedly: Serial.println("SN:182829"); - while (Serial.available() == 0) {} //wait for data available - String bufferCommand = Serial.readString(); //read until timeout - bufferCommand.trim(); // remove any \r \n whitespace at the end of the String - if (bufferCommand == "B") { - Serial.println("#Start Buffer"); - delay(2000); - Serial.println("#Buffer Completed"); - } + // while (Serial.available() == 0) {} //wait for data available + // String bufferCommand = Serial.readString(); //read until timeout + // bufferCommand.trim(); // remove any \r \n whitespace at the end of the String + // if (bufferCommand == "B") { + // Serial.println("#Start Buffer"); + // delay(2000); + // Serial.println("#Buffer Completed"); + // } - while (Serial.available() == 0) {} //wait for data available - String SampleCommand = Serial.readString(); //read until timeout - SampleCommand.trim(); // remove any \r \n whitespace at the end of the String - if (SampleCommand == "S") { - Serial.println("#Sample Started"); - delay(2000); - Serial.println("#Sample Completed"); - } + // while (Serial.available() == 0) {} //wait for data available + // String SampleCommand = Serial.readString(); //read until timeout + // SampleCommand.trim(); // remove any \r \n whitespace at the end of the String + // if (SampleCommand == "S") { + // Serial.println("#Sample Started"); + // delay(2000); + // Serial.println("#Sample Completed"); + // } + + // while (Serial.available() == 0) {} //wait for data available + // String resultCommand = Serial.readString(); //read until timeout + // resultCommand.trim(); // remove any \r \n whitespace at the end of the String + // if (resultCommand == "R") { + // delay(3000); + // Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND"); + // delay(15000); + // } while (Serial.available() == 0) {} //wait for data available String resultCommand = Serial.readString(); //read until timeout resultCommand.trim(); // remove any \r \n whitespace at the end of the String - if (resultCommand == "R") { + if (resultCommand == "B") { delay(3000); - Serial.println("RESULT SN 18291 1937.23 2828.11 28211.20 121829.12 REND"); + Serial.println("ERROR 500 REND"); delay(15000); } - - // Serial.println("#ERROR 100"); } diff --git a/scripts/report_template.html b/scripts/report_template.html index 13377a5..260c553 100644 --- a/scripts/report_template.html +++ b/scripts/report_template.html @@ -1,39 +1,68 @@ +
-|
- Person Name :
-Age & Sex :
-Sample type :
-Family History of Sickle Cell Anemia (Yes / No):
- |
-
- Received on :
-Reported on :
-Ref. Doctor :
-Serial No:
- |
-
|
+ Person Name :
+ Age & Sex :
+ Sample type :
+ Family History of Sickle Cell Anemia (Yes / No):
+ |
+
+ Received on :
+ Reported on :
+ Ref. Doctor :
+ Serial No:
+ |
+