-
Checklist
VersionNo response Have you submitted your log files from the About page? Note that outbound email must be working for logs to be submitted.I have submitted logs What is/are your question(s)?i have a mebay generator controller and i have the modbus registers but i dont know how to get it working with genmon Additional informationNo response |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 10 replies
-
Hi @yellowdre This wiki article has the process for adding support for new generator controller. There are 4 steps described in the above link. If have provide number 1, if you can provide number 2, I can add support my completing number 3. In short you need to connect a pi to your controller via the serial interface. I assume this is RS-485? is that correct? Once you do that you can use the modbusdump.py program to read the registers. I will use the register data provided via modbusdump.py along with the data in the attached PDF above to complete step 3. Let me know if you have questions on how to proceed. |
Beta Was this translation helpful? Give feedback.
-
Hello Jason,
I have included my MEBAY_DC42D_MK3_With_Commands.txt, the command are
working, but the Engine State : Alarms do not print out under the Engine
State.
Engine State statuses work fine, I would expect when in alarm the alarm
statuses would be printed like: Crank failure, Emergency stop, RPM
Signal lost, some where on the page?
I have tested:
"2": "Under speed",
"19": "RPM Signal lost",
"46": "Emergency stop",
"47": "Crank failure",
//
Here is what I have tested.
Please find attached zip file with pics
The main stumbling block need to set 485 CRC Setting to CRC:L_H in the
rs485 communication port setting in the controller
Tested with the following:
#Pi Zero 2 setup
https://www.waveshare.com/rs485-can-hat.htm
RS485 CAN HAT for Raspberry Pi
RS485 CAN HAT
#Add driver
sudo nano /boot/config.txt or /boot/firmware/config.txt
sudo nano /boot/firmware/config.txt
dtparam=spi=on
dtoverlay=mcp2515-can0,oscillator=12000000,interrupt=25,spimaxfrequency=2000000
This creates /dev/serial0 -> /dev/ttyAMA0
commands used to test
sudo ./genenv/bin/python3 ./OtherApps/modbusdump.py -r 19200 -p
/dev/ttyAMA0 -a 10 -s 4096 -e 4191
sudo ./genenv/bin/python3 ./OtherApps/modbusdump.py -r 19200 -p
/dev/serial0 -a 10 -s 4096 -e 4191
#Raspberry Pi 4 setup
https://www.waveshare.com/rs485-rs232-hat.htm
Isolated RS485 RS232 Expansion HAT for Raspberry Pi, SPI Control
RS485 RS232 HAT
#Add driver
sudo nano /boot/config.txt or /boot/firmware/config.txt
sudo nano /boot/firmware/config.txt
dtoverlay=sc16is752-spi1,int_pin=24
This creates /dev/ttySC0 rs485 port and /dev/ttySC1 RS232 port
command used to test
sudo ./genenv/bin/python3 ./OtherApps/modbusdump.py -r 19200 -p
/dev/ttySC0 -a 10 -s 4096 -e 4191
# for Laptop or Raspberry Pi
DTECH USB to RS422 RS485 Serial Port Converter Adapter Cable
port settings Baud: 19200, Data bits: 8, Party: None, Stop bits: 1, Flow
control: none
Raspberry pi
command used to test
sudo ./genenv/bin/python3 ./OtherApps/modbusdump.py -r 19200 -p
/dev/ttyUSB0 -a 10 -s 4096 -e 4191
# Network
Note: The PUSR USR-W610 and Waveshare RS232/485 TO WIFI ETH setup web
pages look the same!
See screen shots
https://www.pusr.com/products/rs232-rs485-to-wifi-converters-usr-w610.html
PUSR Serial to WiFi Ethernet Wireless Converter RS232 RS485 Serial
Server(USR-W610)
https://www.waveshare.com/product/iot-communication/wired-comm-converter/ethernet-to-uart-rs232-rs485/rs232-485-to-wifi-eth-b.htm?sku=25222
Waveshare Industrial Grade Serial Server RS232/RS485 to WiFi and
Ethernet
SKU:25222, Part No.:RS232/485 TO WIFI ETH (B)
command used to test
sudo ./genenv/bin/python3 ./OtherApps/modbusdump.py -i 192.168.1.143 -t
8899 -a 10 -s 4096 -e 4195
…On 2024-12-10 21:26, jgyates wrote:
on the registers live view page in the genmon web interface, if a
register changes it turns red and then it will become a lighter red
over time. If the register changes again then it will go back to the
darker red. This happening for registers that change, like the time,
is expected.
I checked in an update that changes the polarity of the emergency stop
bit.
Let me know what else you find.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you were mentioned.Message ID:
***@***.***>
Links:
------
[1]
#1159 (reply in thread)
[2]
https://github.com/notifications/unsubscribe-auth/ABO5A44ELLHK6NCYAX3V6L32E65IBAVCNFSM6AAAAABLUII4JOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNJSHA2DKOA
|
Beta Was this translation helpful? Give feedback.
-
In MEBAY_DCxx.json
At line 401
"reg": "1024", should be "1023" for Average Power factor
…On 2024-12-19 19:37, jgyates wrote:
I got your logs. It looks like you are still using the old file JSON
name for the custom controller
This should be changed on the advanced settings page by selecting
MEBAY_DCxx.json and then deleting the file file
/home/pi/genmon/data/controller/MEBAY_DC42D_MK3_Comands.json
If you do not make this change then future updates will not take
effect until you edit your old json file. If you use the newly named
file then you will get updates just by updating from the about page.
Other than that there are no unusual things in the log.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you were mentioned.Message ID:
***@***.***>
Links:
------
[1]
#1159 (reply in thread)
[2]
https://github.com/notifications/unsubscribe-auth/ABO5A47O62C7RHAP4XEU6S32GN7F3AVCNFSM6AAAAABLUII4JOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGM4DCOI
|
Beta Was this translation helpful? Give feedback.
-
At line 620
"reg": "1034", should be "102BH" Backup Battery voltage
…On 2024-12-19 19:37, jgyates wrote:
I got your logs. It looks like you are still using the old file JSON
name for the custom controller
This should be changed on the advanced settings page by selecting
MEBAY_DCxx.json and then deleting the file file
/home/pi/genmon/data/controller/MEBAY_DC42D_MK3_Comands.json
If you do not make this change then future updates will not take
effect until you edit your old json file. If you use the newly named
file then you will get updates just by updating from the about page.
Other than that there are no unusual things in the log.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you were mentioned.Message ID:
***@***.***>
Links:
------
[1]
#1159 (reply in thread)
[2]
https://github.com/notifications/unsubscribe-auth/ABO5A47O62C7RHAP4XEU6S32GN7F3AVCNFSM6AAAAABLUII4JOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGM4DCOI
|
Beta Was this translation helpful? Give feedback.
-
I have the Rated Frequency and Nominal RPM in the settings page, but
there not showing up on the Maintenance page.
Generator Model Specific Settings
Rated Frequency: 60
Nominal RPM: 3600
Maximum kW Output: 13
Fuel Type: Propane
Maintenance :
Model : MEBAY DCxx Controller
Maintenance Due : No
Controller Detected : MEBAY DC-42 Controller
Nominal RPM : Unknown
Rated kW : 13
Nominal Frequency : Unknown
Phase : 1
Fuel Type : Propane
…On 2024-12-19 19:37, jgyates wrote:
I got your logs. It looks like you are still using the old file JSON
name for the custom controller
This should be changed on the advanced settings page by selecting
MEBAY_DCxx.json and then deleting the file file
/home/pi/genmon/data/controller/MEBAY_DC42D_MK3_Comands.json
If you do not make this change then future updates will not take
effect until you edit your old json file. If you use the newly named
file then you will get updates just by updating from the about page.
Other than that there are no unusual things in the log.
--
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
You are receiving this because you were mentioned.Message ID:
***@***.***>
Links:
------
[1]
#1159 (reply in thread)
[2]
https://github.com/notifications/unsubscribe-auth/ABO5A47O62C7RHAP4XEU6S32GN7F3AVCNFSM6AAAAABLUII4JOVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCNRSGM4DCOI
|
Beta Was this translation helpful? Give feedback.
I have added support for mebay DC4x - DC9x controllers. I have only tested with registers from a DC42 so let me know how testing goes. any feedback is welcome. Submitting your registers and logs from the about page helps me track down issues so if you do try this please send the feedback.
I move the issue thread here to this thread.
The wiki page has been updated.
@maindrive
if you are testing this let me know how it goes. Also, if you have a bulleted list of any steps you are taking to set this up on the generator controller side please send them to me and I can create a wiki page for the MEBAY controller. pics and / or screen shots are great.
Also any info on what things you did on the …