Difference between revisions of "BoSL Board Debug"

From BoSL Wiki
Jump to navigation Jump to search
Line 3: Line 3:
  
 
== Trouble shooting history ==
 
== Trouble shooting history ==
=== 31th May 2023 ===
+
=== 31st May 2023 ===
 
20 BoSL boards were setup for trouble shooting. 10 run the original [https://drive.google.com/file/d/1lAQvNNC8ffQbsNpIY_xxj2PCbqzLxBox/view?usp=drive_link BoSL_logging.ino] code, each one with a tag (OLD_1, OLD_2, ...), let's call them OLD group. Another 10 run Dave's new version code [https://drive.google.com/file/d/1nKBe-1iyjw7vvOqaNyEkrktUywfY1KnJ/view?usp=drive_link BoSL_VEL_Dave_290523.ino], each one with a tag (NEW_1, NEW_2, ...), let's call them NEW group. The major difference between OLD and NEW group is the NEW group's code delays longer to pull Sim7000 powerkey down to power off Sim7000. Because we suspect that some MCUs run slowly and the delay(1200) is less than accurate 1200ms, so sometimes Sim7000 may not really power off and the result is the Sim7000 runs out of order.
 
20 BoSL boards were setup for trouble shooting. 10 run the original [https://drive.google.com/file/d/1lAQvNNC8ffQbsNpIY_xxj2PCbqzLxBox/view?usp=drive_link BoSL_logging.ino] code, each one with a tag (OLD_1, OLD_2, ...), let's call them OLD group. Another 10 run Dave's new version code [https://drive.google.com/file/d/1nKBe-1iyjw7vvOqaNyEkrktUywfY1KnJ/view?usp=drive_link BoSL_VEL_Dave_290523.ino], each one with a tag (NEW_1, NEW_2, ...), let's call them NEW group. The major difference between OLD and NEW group is the NEW group's code delays longer to pull Sim7000 powerkey down to power off Sim7000. Because we suspect that some MCUs run slowly and the delay(1200) is less than accurate 1200ms, so sometimes Sim7000 may not really power off and the result is the Sim7000 runs out of order.
  
Line 20: Line 20:
 
=== 17th June 2023 ===
 
=== 17th June 2023 ===
 
To increase the chances of getting stop logging boards to test. OLD_X, OLD_11, OLD_12, OLD_13, OLD_14, NEW_0, NEW_11, NEW_12, NEW_13 and NEW_14 were set up to join both groups.<br>
 
To increase the chances of getting stop logging boards to test. OLD_X, OLD_11, OLD_12, OLD_13, OLD_14, NEW_0, NEW_11, NEW_12, NEW_13 and NEW_14 were set up to join both groups.<br>
 +
 +
=== 20st June 2023 ===
 +
3 boards stopped logging, OLD_X on 19th, NEW_1 and NEW_13 on 20th. OLD_X was an ATMega issue, similar as previous OLD_2, and low VPP voltage happened again to OLD_X. NEW_1 and NEW_13 were Sim7000 issue, they gave no response to ATCommands and STATUS pin voltage always 0V.<br>
 +
Re-plugging battery to get OLD_X start to logging again and Reset Sim7000(pull down reset pin) to get NEW_1 and NEW_13 working again.<br>
 +
 +
=== 21st June 2023 ===
 +
NEW_baudrate was set up for the purpose of testing Sim7000's stability. The serial baud rate between ATMega and Sim7000 was set to 38400, based on NEW group code. <br>
 +
Same baud rate change also made to NEW_14, NEW_13, OLD_14 and OLD_13.<br>

Revision as of 04:42, 6 July 2023

Stop logging issue

The BoSL Board stops logging from time to time is a big pain. The team decided to find the root cause and solve the problem.

Trouble shooting history

31st May 2023

20 BoSL boards were setup for trouble shooting. 10 run the original BoSL_logging.ino code, each one with a tag (OLD_1, OLD_2, ...), let's call them OLD group. Another 10 run Dave's new version code BoSL_VEL_Dave_290523.ino, each one with a tag (NEW_1, NEW_2, ...), let's call them NEW group. The major difference between OLD and NEW group is the NEW group's code delays longer to pull Sim7000 powerkey down to power off Sim7000. Because we suspect that some MCUs run slowly and the delay(1200) is less than accurate 1200ms, so sometimes Sim7000 may not really power off and the result is the Sim7000 runs out of order.

8th June 2023

Observed the 2 groups for one week. The result is both groups had some ones stop logging, 2 in NEW group and 2 in OLD group. The conclusion is: delay(1200) is not the cause of stop logging.
A logbook for the trouble shooting was created on the google drive, find it here.

15th June 2023

Lucky to catch 2 boards stop logging, NEW_1 and OLD_2. Luke and Felix did the test together. VPP Voltage, Sim7000 STATUS pin voltage, Sim7000 POWERKEY voltage were tested. We also used an Arduino UNO pass though board tested BoSL board TX output, Sim7000 TX and RX output.
NEW_1 was a Sim7000 issue as ATMega pulls down and up POWERKEY as expected and gives good ATCommands to Sim7000, but Sim7000 STATUS pin voltage always near 0V(5.7-5.8mV) and gives no reply to ATCommands.
OLD_2 turned out to be ATMega issue. The POWERKEY voltage was always near 0V in the test and we read nothing from Sim7000 RX pin, means no ATCommands were sent to Sim7000 by ATMega.
During the test with OLD_2, we noticed another problem with the board, OLD_2's VPP voltage dropped to 1.8V.

17th June 2023

To increase the chances of getting stop logging boards to test. OLD_X, OLD_11, OLD_12, OLD_13, OLD_14, NEW_0, NEW_11, NEW_12, NEW_13 and NEW_14 were set up to join both groups.

20st June 2023

3 boards stopped logging, OLD_X on 19th, NEW_1 and NEW_13 on 20th. OLD_X was an ATMega issue, similar as previous OLD_2, and low VPP voltage happened again to OLD_X. NEW_1 and NEW_13 were Sim7000 issue, they gave no response to ATCommands and STATUS pin voltage always 0V.
Re-plugging battery to get OLD_X start to logging again and Reset Sim7000(pull down reset pin) to get NEW_1 and NEW_13 working again.

21st June 2023

NEW_baudrate was set up for the purpose of testing Sim7000's stability. The serial baud rate between ATMega and Sim7000 was set to 38400, based on NEW group code.
Same baud rate change also made to NEW_14, NEW_13, OLD_14 and OLD_13.