The Control Codes
If you install a Bluetooth slave module (HC-06), you will be able to communicate with the controller with a serial communication program.
I use a Tera Tera Term; (https://ttssh2.osdn.jp/) but any serial program will do the job. To establish the communication from you Windows computer, you have to install the Bluetooth devices and couple you module HC-06. The code to make the connection is always 1234. Two serial ports will be allocated to it. On one of these ports, you will be able to establish the connection via the terminal program.
You will simply have to select the serial port which has been allocated to the HC-06, and, if the module is not powered by another device, you will be connected directly to the filtration controller.
Here’s the list of the available commands:
-
0 → Stops the filtration immediately
-
1 → Starts the filtration on a delay. Usage:1XXX (xxx is the duration in minutes of the filtration)
-
a → Sets the threshold of the air quality. Usage aXXX (XXX is the threshold of the air quality)
-
A →Return of the threshold of the air quality
-
B →Return of the version
-
c →Sets the duty cycle of the small fan. Usage cXX (XX is between 0 and 99 which represents the speed percentage)
-
C →Return of the duty cycle
-
d →Sets the date. Usage dJJMMAA
-
D→Return of the date
-
e →Sets the smallest reading value of the air quality. Usage dXX (XX is the smallest value)
-
E →Return of the smallest reading value of the air quality
-
f →Sets the duration of the filtration. Usage fXXX (XXX is the duration in minutes)
-
F →Return of the duration of the filtration.
-
g →Sets, if you use the value of the adjustment of the duration with the potentiometer or not.
g1 uses the value of the potentiometer.
g0 uses the duration determined by the command (f)
-
G →Return if the potentiometer is used (1) or not (0)
-
l →Sets the duration of the automatic filtration. Usage lXXX (XXX is the duration in minutes for the automatic filtration)
-
L →Return of the duration of the automatic filtration.
-
m →Sets the number of seconds in a minute (in debugging mode only) Usage mXX (XX is the number of seconds)
-
M →Return of the number of seconds in a minute.
-
n →Toggles the RF module ON or OFF.
n1 to turn the RF module ON
n0 to turn the RF module OFF
-
N →Return of the state of the RF module
-
o →Stops the filtration immediately
-
P →Return of the duration in minutes of the adjustment of the potentiometer
-
Q →Return of the average of the air quality
-
R -> Resets the program
-
s-> Starting time of the automatic filtration. Usage sHHMMSS
-
S →Return of the starting time of the automatic filtration
-
t →Sets the time tHHMMSS
-
T →Return of the time
-
U →Return of the time value of the last cycle of filtration
-
v →Return of the value of the air quality at one point
-
V →Return of the air quality continuously. Toggles between Stop and continuous.
-
w →Toggles the test mode.
w1 starts the test mode
w0 cancels the test mode
-
W →Return of the state of the test mode (1) ON (0) OFF
-
X →Return of the air quality
-
z →Flashes the LED. Usage ZX (X is the number of blinks)
This is the complete list of all the commands that are presently in the filtration controller. All these operations can be performed with a terminal program. I also programmed two user-friendly programs; one in Windows and one with an Android App.