Skip to content

Latest commit

 

History

History
114 lines (78 loc) · 5.11 KB

3.Maintenance_and_Logs_Guide.md

File metadata and controls

114 lines (78 loc) · 5.11 KB

Maintenance and Log Management Guide

Maintenance

Screw Maintenance

Observe for any abnormal vibrations or noises during each use. Visually inspect the screw's condition every month. Check for dust or other foreign substances on the screw and ensure sufficient lubrication. If yellowish-brown lubricating oil appears around the screw and the walking surface appears smooth, it indicates good lubrication. The recommended viscosity for the lubricating oil used in ball screw maintenance is 30~40 cSt.

Parts Replacement

After replacing any components during maintenance, enter the hardware function testing mode at startup to retest all components for proper functionality.

Usage: When the version information appears at startup, press and hold the middle setting button until a long beep is heard, then release it.

Important

If you replace any hardware components, be sure to run hardware function testing mode to verify that all hardware functions are working properly.

Factory Reset

You can restore the factory default settings without a computer by recreating the config.cfg file (the original configuration file will be renamed to config.cfg.bak). After restoring the default settings, make sure to recalibrate the HX tension parameters.

Usage: When the version information appears at startup, press and hold the exit button until a long beep is heard, then release it.

Reference video:

DEMO

Firmware Update

Please follow the steps below to update the firmware:

Important

All of the above steps are crucial.

Logging System

Starting from version V2.5, a simple logging system has been introduced to help with troubleshooting, recording important events, and facilitating future review and analysis.

System Log sys_log.txt

System logs are used to record key information and error messages during system operation, making it easier for future diagnostics and maintenance. They can be viewed on a computer, and starting from version v2.72, they can also be viewed through the Boot Mode Selector. When the log file reaches 100KB, the system will automatically rename and overwrite it.

Example:

The following is an error message captured during system operation. This error was caused by an unstable LCD, which led to a system crash. The system used try-except to capture this rare exception and recorded it in sys_log.txt, thereby improving debugging efficiency.

start_tensioning():4927T/[Errno 110] ETIMEDOUT / MEM: 127376 bytes
Traceback (most recent call last):
    File "main.py", line 679, in start_tensioning
    File "main.py", line 392, in lcd_putstr
    File "src/lcd_api.py", line 154, in putstr
    File "src/lcd_api.py", line 140, in putchar
    File "src/pico_i2c_lcd.py", line 87, in hal_write_data
OSError: [Errno 110] ETIMEDOUT

Stringing Log logs.txt

This log can be viewed directly on the LCD screen. The maximum log value is defined by the LOG_MAX parameter.

Format:

Total tension count, Timer time, Tension unit, Set tension (LB), Max tension (G), Pre-stretch (%), Tension time, Number of tension increases, Number of tension decreases, Tension parameter, Tension calibration parameter, FT parameter, Knotting function SW, Knot (%)

Example:

60384,72719,1,21,10477,10,3,0,0,1.03852,18.17,1,0,15
60385,72736,1,22,10976,10,3,0,37,1.048519,18.17,1,0,15
60386,72753,1,23,11475,10,3,4,23,1.03852,18.17,1,0,15
60387,72770,1,24,11974,10,3,5,41,1.02852,18.17,1,0,15
60388,72785,1,25,12473,10,3,7,43,1.03852,18.17,1,0,15
60389,72803,1,26,12972,10,3,6,49,1.048519,18.17,1,0,15

Reliability Testing Log rt_logs.txt

This log file is viewable on a computer. It automatically renames and overwrites when the test count reaches 1000.

Format:

Reliability test count / Total tension count / Automatic tension parameter / Test tension parameter / Tension completion time (seconds)

Example:

4521/60384T/1.03/0.97/13
4522/60385T/1.04/0.97/12
4523/60386T/1.05/0.97/13
4524/60387T/1.04/0.97/13
4525/60388T/1.03/0.97/12
4526/60389T/1.04/0.97/13

Boot Mode Selector

Starting from version V2.72, the system has introduced a Boot Mode Selector, allowing users to quickly enter specific modes by holding different keys during startup. This makes system maintenance, upgrades, and testing more convenient.

  • By pressing and holding specific keys, then powering on, you can now enter different modes:
    • Up Key: Enters Reliability Testing mode
    • Down Key: Enters Software Update mode
    • Middle Key: Enters Hardware Function Testing mode
    • Right Key: Displays system logs (sys_log.txt)
    • Exit Key: Performs a Factory Reset

Note: Do not release the keys until you see the mode displayed on the LCD screen.