meta-facebook: minerva: Enable the mbpoll tool
Enable the mbpoll tool which can communicate with the smart valve by modbus
command from the user command line.
Tested:
root@bmc:~# mbpoll -a 0x01 -b 38400 /dev/ttyRS485-0 -d 8 -s 1 -P none -r 21 -t 4:hex -c 1 -1 -0
mbpoll 1.0-0 - ModBus(R) Master Simulator
Copyright (c) 2015-2023 Pascal JEAN, https://github.com/epsilonrt/mbpoll
This program comes with ABSOLUTELY NO WARRANTY.
This is free software, and you are welcome to redistribute it
under certain conditions; type 'mbpoll -w' for details.
Protocol configuration: ModBus RTU
Slave configuration...: address = [1]
start reference = 21, count = 1
Communication.........: /dev/ttyRS485-0, 38400-8N1
t/o 1.00 s, poll rate 1000 ms
Data type.............: 16-bit register, output (holding) register table
-- Polling slave 1...
[21]: 0x0AF9
Change-Id: I3d4f6813c80e79fac408f435798de1779d1116b6
Signed-off-by: Yang Chen <yang.chen@quantatw.com>
diff --git a/meta-facebook/meta-minerva/recipes-phosphor/images/fb-minerva-phosphor-image.inc b/meta-facebook/meta-minerva/recipes-phosphor/images/fb-minerva-phosphor-image.inc
index fa5d83d..d6efc96 100644
--- a/meta-facebook/meta-minerva/recipes-phosphor/images/fb-minerva-phosphor-image.inc
+++ b/meta-facebook/meta-minerva/recipes-phosphor/images/fb-minerva-phosphor-image.inc
@@ -46,3 +46,8 @@
OBMC_IMAGE_EXTRA_INSTALL:append = " \
phosphor-power-control \
"
+
+# Enable mbpoll for communication with the smart valve by modbus command
+OBMC_IMAGE_EXTRA_INSTALL:append = " \
+ mbpoll \
+"