• dan

    Hey Phillip, thanks for that. For the gensets, we're running Moxa MB3180 RS485 - Ethernet MODBUS gateways, they have worked until we put a new instance of Mango in. They also work fine on all of our other sites.
    I will see if I can get some more debugging out of the gateways.

    Cheers
    Dan

    posted in User help read more
  • dan

    Hey Guys, having a really strange problem with our MODBUS TCP data source.
    We have a bunch of solar regulators and a bunch of genset controllers (via Moxa MB3180 converters). Both talk MODBUS / TCP and have all been working up until recently where all the genset controllers (4 in this network) stopped responding.
    The solar regulators are however still working fine.
    All data points in the genset controllers are coming up as unreliable, and are not reporting at all.
    Here is the error I get when trying to interrogate a data point directly...
    0_1525145247750_e4797b2d-2fc2-4e9a-b610-8f66953973aa-image.png
    I've never seen that error before, I tried a quick google and it's pointing towards misconfiguration or overloading of a datapoint, this doesn't seem right as nothing's changed apart from a new instance of Mango on that site.
    The solar regulators using the same type of MODBUS TCP client are still working, just the gensets aren't responding.

    I turned on specific data logging on that data source and got the following, I see I'm getting some kind of response judging by the I and O?

    2018/05/01-13:26:20,240 O 001c00000006010475320019
    2018/05/01-13:26:20,261 I 001c0000000301840a
    2018/05/01-13:27:20,241 O 001d00000006010475320019
    2018/05/01-13:27:20,261 I 001d0000000301840a
    2018/05/01-13:28:20,241 O 001e00000006010475320019
    2018/05/01-13:28:20,261 I 001e0000000301840a
    2018/05/01-13:29:20,241 O 001f00000006010475320019
    2018/05/01-13:29:20,261 I 001f0000000301840a
    
    

    Any ideas would be much appreciated.

    Cheers
    Dan

    posted in User help read more
  • dan

    You might have to bridge the ethernet adapter on the mangoES with the usb WiFi adapter into br0 then give br0 the ip address of the mango instance.
    Then you should be able to see the machine from either interface.

    The default ethernet ip on mine is set in /etc/network/interfaces.d/eth0

    You would have to create a bridge interface, add the eth0 and wlan0 or whichever interface it comes up as to the bridge, then give the bridge the IP Address.

    Cheers
    Dan

    posted in Mango Automation general Discussion read more
  • dan

    I've used Mango as a MODBUS over IP master for years, it works fantastically.

    Regards
    Dan

    posted in Mango Automation general Discussion read more
  • dan

    OK, I think I've resolved it, managed to remove all the settings, add them all in again using port 587, TLS with mailjet and it's working.

    Thanks for your assistance :)

    Cheers
    Dan

    posted in User help read more
  • dan

    I've even tried using localhost as the mail server and tailed the log...

    Apr 11 09:36:04 water postfix/smtpd[9329]: connect from localhost[127.0.0.1]
    Apr 11 09:36:11 water postfix/smtpd[9329]: lost connection after HELO from localhost[127.0.0.1]
    Apr 11 09:36:11 water postfix/smtpd[9329]: disconnect from localhost[127.0.0.1]
    

    It appears that the HELO part is failing. This seems to be related to the hostname, I haven't changed this that I'm aware of however :-/

    WARN  2018-04-11 09:36:04,555 (com.serotonin.m2m2.rt.maint.work.EmailWorkItem.execute:86) - Error sending email
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: 501 Syntax: HELO hostname
    . Failed messages: javax.mail.MessagingException: 501 Syntax: HELO hostname
    ; message exception details (1) are:
    Failed message 1:
    javax.mail.MessagingException: 501 Syntax: HELO hostname
    
    

    posted in User help read more
  • dan

    This is running on one of those MangoES solid state bad boys. It's been super reliable.

    root@water:~# java -version
    java version "1.8.0-ea"
    Java(TM) SE Runtime Environment (build 1.8.0-ea-b111)
    Java HotSpot(TM) Client VM (build 25.0-b53, mixed mode)
    
    

    posted in User help read more
  • dan

    one more thing, the SMTP server mailjet uses quite a long password (hash)
    Do you know if there is a limit on length of password in the java client?

    posted in User help read more
  • dan

    the other thing I wondered was, is there a timeout for connection? This connection is now on a satellite link, so latency is <> 800ms

    root@water:~# ping in-v3.mailjet.com
    PING in.mailjet.com (104.199.96.85) 56(84) bytes of data.
    64 bytes from 85.96.199.104.bc.googleusercontent.com (104.199.96.85): icmp_seq=1 ttl=41 time=900 ms
    64 bytes from 85.96.199.104.bc.googleusercontent.com (104.199.96.85): icmp_seq=2 ttl=41 time=871 ms
    64 bytes from 85.96.199.104.bc.googleusercontent.com (104.199.96.85): icmp_seq=3 ttl=41 time=862 ms
    ^C
    --- in.mailjet.com ping statistics ---
    4 packets transmitted, 3 received, 25% packet loss, time 2998ms
    rtt min/avg/max/mdev = 862.077/878.014/900.703/16.511 ms
    root@water:~# telnet in-v3.mailjet.com 465
    Trying 104.199.96.85...
    Connected to in.mailjet.com.
    Escape character is '^]'.
    

    it appears to connect from shell.

    posted in User help read more
  • dan

    I've tried multiple SMTP providers.
    Is the SMTP client using a Java library or something you guys wrote?

    posted in User help read more
  • dan

    Hey Guys, I've had a production system in place for a few years now with no issues. Lately the system hasn't been sending email reports / notifications etc.

    I've checked the log and found the following...

    WARN  2018-04-09 11:45:43,852 (com.serotonin.m2m2.rt.maint.work.EmailWorkItem.execute:86) - Error sending email
    org.springframework.mail.MailSendException: Mail server connection failed; nested exception is javax.mail.MessagingException: Could not connect to SMTP host: in-v3.mailjet.com, port: 465, response: -1. Failed messages: javax.mail.MessagingException: Could not connect to SMTP host: in-v3.mailjet.com, port: 465, response: -1; message exception details (1) are:
    Failed message 1:
    javax.mail.MessagingException: Could not connect to SMTP host: in-v3.mailjet.com, port: 465, response: -1
    
    

    I've tried the other ports such as 25, 587 TLS on/off etc, and all the same errors.
    I can ping the hosts, I've also tried just IP Address.
    Maybe something is not working with the way Java connects to these hosts?

    Cheers
    Dan

    posted in User help read more
  • dan

    which library are you using? Do you have a link to the developers site?

    posted in Modbus4J general discussion read more
  • dan

    @nikospps said in Setting Data Points in Modbus IP using HEX Addresses:

    [SOLVED]

    Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values.
    I will finish my effort and keep you informed.

    Yeh I've found I have had to convert the hex address to decimal (using Google's friendly calculator) and it works almost every time.

    Dan

    posted in User help read more
  • dan

    yep that worked, thanks heaps.

    Loads much quicker on a lovely remote 3G mobile connection ;)

    posted in User help read more
  • dan

    Thanks Phil, I'll give that a go.

    Cheers
    Dan

    posted in User help read more
  • dan

    Hey guys, is there an easy way to disable the flashy new UI and go back to the old one?
    If I click on data sources, it opens a new tab in my browser and loads the old UI.
    The new front screen is not useful in most of my setups.

    I'm not sure if this person was trying to achieve the same result?
    https://forum.infiniteautomation.com/topic/3077/is-it-possible-to-roll-back-a-latest-ui-update-to-the-previous-version

    Cheers
    Dan

    posted in User help read more
  • dan

    @aoliver said in How to automatically start Mango in a systemd based Linux OS:

    PIDFile=/opt/ambilogger/bin/ma.pid

    although, this PIDFile=/opt/ambilogger/bin/ma.pid should be /opt/mango/bin ;-)

    posted in How-To read more
  • dan

    @aoliver This worked for me on a RPi3 thanks!

    posted in How-To read more
  • dan

    The Oracle version of the JDK worked, thanks heaps. :-}

    posted in User help read more
  • dan

    Hi Joel, no worries, I'll give Oracle JDK a go and let you know.

    Cheers
    Dan

    posted in User help read more