The invention provides a PWM-based fire-fighting power two-
bus power supply and communication method and device, and relates to the technical field of fire-fighting monitoring, and the method comprises the steps: taking a PWM
voltage signal sent by a
master station to a slave
station as a downlink
signal, taking a PWM current
signal sent by the slave
station to the
master station as an uplink signal, representing the signal logic based on the combination of PWM frequency and PWM duty ratio, and carrying out the communication of the PWM frequency and the PWM duty ratio; the time length of a
timer is defined as a unit pulse width count value according to the minimum pulse width of PWM, a comparison table containing a hexadecimal number, a binary number, a PWM frequency, a PWM duty ratio, a PWM low-level pulse width count value, a PWM high-level pulse width count value and a PWM period value is made, and coding and code sending are carried out based on the comparison table by using a single-
byte table look-up method. And decoding and receiving codes based on the comparison table by using a single-
byte offset compression look-up table method. Bidirectional PWM communication and PWM
waveform coding are adopted, the overall loading capacity of the
bus is improved, the
bus distance is increased, the error problem can be solved through a
verification mechanism based on digital communication of PWM coding, and the communication anti-interference capacity is improved.