Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.

Radix IoT Website Mango 3 Documentation Website Mango 4 Documentation Website

  • Hello!

    I want to know mango Connected to 4G device and controller back to device. 4G device using sim mobile and not fix ip address. 4G device via modbus tcp protocol. I think it would make the mango a modbus server and let the 4G device connect. I see the function of the mango. No modbus server protocols. Is there a way to get the 4G device connected to the mango to read the data and control back to the device.


  • Hi Desle

    Could you maybe draw a simple diagram of what you want to connect and be more specific about what 4G device you plan on using. If you do not plan on using simcards with static IPs. You will need to use a DNS server and your 4G device will need DNS compatibility. I have used Dyn DNS in the past and it was really easy to setup. They also offer a free trail period. You then pay yearly for the service. Once you sorted your networking out, You can use the Modbus TCP data source to read/write to the device.


  • @craigweb I try to use DNS and it works. I wonder if the mango is connected to the device without Dns server? What do I think in the diagram I drew it is possible? I would like to know that the mango modbus server function.

    0_1531840194655_2018-07-17_21-55-39.png


  • @DESLE to my knowledge you'll need to use a DNS server or a static IP. Those are your 2 options...
    Mango can act as either a modbus master or a modbus slave. Your questions seem to be more networking and protocol orientated. Are you trying to figure out if it is possible or have you tried to do it and having problems? Your diagram is definitely possible.


  • @DESLE we would probably not recommend collecting data from a modbus device directly over the internet like that. What we would typically do in this scenario is install a MangoES device which collects the modbus data locally then uses the persistent TCP module to send the data to another instance of Mango running on a server somewhere.


  • @craigweb said in Mango connect 4G device:

    modbus master

    I want to know how to set up Mango as a bus master.

    @Jared-Wiltshire What are you suggesting? But my device is installed around the factory, which does not have the same network as the scada. I installed Mango on the cloud server. Mango has public IP. I think that 4g device connects to the mango.Make the mango as a modbus server and 4g device as a modbus slave. 4G device write data on mango because 4G device doesn't know ip address. Or is there a better way?


  • This video will show you how to set up data sources and uses modbus as an example. Try to follow it and if you get stuck, you can show us what you've done and I can try help. Your questions are a bit to broad at the moment.
    https://help.infiniteautomation.com/configuring-data-sources-and-data-points/

    What Jared is suggesting is to use a mango ES as a Modbus master directly onto your device in the field. Then use your 4G modem to sync your data to your cloud server. This would be a much more robust setup then directly polling from the cloud to your device.


  • If you're going to go down the 4G modem route, I can tell you from experience you are far better implementing a VPN in amongst it. DNS is too iffy, as well as configuring firewalls to allow communication -> keep it simple.
    That way you know all of the assigned IP addresses created by the VPN server, and be sure to document that as you go.
    Mango supports OpenVPN and some 4G modems run on Linux allowing you to run the VPN through it. If you are able to connect via a PC/raspberry/orange pi you can then configure the VPN on that instead with the modbus software directing its data out into the VPN network

    Jared has a point in using a mango on site, as it will also provide data redundancy and on-site control, but if it cannot be justified, try my suggestions.


  • @benaznbe said in Mango connect 4G device:

    @craigweb said in Mango connect 4G device:

    modbus master

    I want to know how to set up Mango as a bus master.

    @Jared-Wiltshire What are you suggesting? But my device is installed around the factory, which does not have the same network as the scada. I installed Mango on the cloud server. Mango has public IP. I think that 4g device connects to the mango.Make the mango as a modbus server and 4g device as a modbus slave. 4G device write data on mango because 4G device doesn't know ip address. Or is there a better way?

    Actually your way is not possible as per Modbus standards master asks slaves not the other way around.

    If you can customize (reprogram) your 4g device then the easiest would be to use a http receiver. If mango has public IP then the 4g device can send data to Mango without Mango even knowing the IP of your 4g devices. You can whitelist and blacklist IDs easily in the datasource configuration.