[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Problem adding a data source - Modbus Serial  XML
Forum Index » Hardware
Author Message
rmc

Initiate

Joined: 23/04/2007 15:59:29
Messages: 1
Offline

I'm using a USB-serial adapter on my laptop to provide a serial port to connect to a modbus RTU network. Although the com port shows up in Windows Device Manager, the list of ports in Mango is empty when I try to add a serial modbus data source.

Is this adapter a likely problem or should I be checking something else?
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Most likely it's a problem with your javacomm setup. See this posting for some useful information, including a small program to run to check your installation: http://mango.serotoninsoftware.com/forum/posts/list/13.page.

Best regards,
Matthew Lohbihler
FusionTechs

Initiate
[Avatar]

Joined: 25/09/2007 22:36:50
Messages: 5
Location: Thailand
Offline

Hi,

I have a problem about Modbus Serial. Not sure that I test it properly or not. When I connect Modbus Serial to Mango, there is no result after scaning. What it support to show after scanning? And, what I should do when setting modbus serail?

Thanks

FusionTechs
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

The scan looks for nodes that respond to a ReadExceptionStatus request. So, in addition to needing all your serial port settings to be exactly correct (port, baud rate, flow, etc), your equipment needs to powered and able to respond to that request. If a node is found, the node id will be listed in the selection box.

Best regards,
Matthew Lohbihler
lemaymd

Initiate

Joined: 10/05/2008 23:26:49
Messages: 1
Location: Urbana, IL
Offline

Be careful with those usb-serial adapters. I have a modbus meter that refuses to talk to them, but works fine with motherboard-integrated ports. You can buy PCI and PCIe serial port adapter cards from newegg that might work better.
[WWW]
thefixer

Initiate

Joined: 28/02/2009 11:20:14
Messages: 6
Offline

Just a quick hint with modbus...before you even start configuring and setting up devices through mango verify serial comms...there are many modbus testers that are open source and some that cost money...if at first one doesnt work try another...remember modbus serial is RS485, you will always need a convertor and make sure your convertor matches your device...simple but for a person new to modbus this may help
jkyner

Initiate

Joined: 08/06/2010 20:49:10
Messages: 5
Offline

Does anybody know of a USB/RS485 adapter with a reliable Ubuntu device driver that works with Mango? Also, any tips or hyperlinks on how to install the driver to make it work with Mango would be a big help. I know how RS485 works but I just need a few pointers on getting a USB/RS485 adapter to work dependably on Ubuntu.

I saw Mango described in the latest Modbus.org newsletter and I'm glad I checked it out -- it works well with Modbus-TCP/RTU to a single slave via a Moxa NPort 5130 Ethernet/RS485 adapter. Now if I can just find a USB/RS485 adapter that works as well!
jkyner

Initiate

Joined: 08/06/2010 20:49:10
Messages: 5
Offline

I should have said Mango works fine with a Lantronix Intellibox Modbus Gateway with RTU slaves but also works fine with the Moxa 5130 (a basic Ethernet/RS485 SDA that is not Modbus-aware) for those Modbus slaves that can handle the 6-byte Modbus TCP-RTU header forwarded over RS485.
dparra

Initiate

Joined: 03/08/2010 11:58:55
Messages: 5
Location: Santiago, Chile
Offline

I've a gen-set controller with modbus/RTU connected to a Moxa adapter.
modpoll (http://www.focus-sw.com/fieldtalk/modpoll.html) works great for test using "Encapsulated Modbus RTU over TCP", but i can't get it running on Mango.

It's possible to get this device works with Mango?

Regards,

David Parra

David Parra
ftomiBR

Initiate

Joined: 12/07/2010 10:43:59
Messages: 53
Offline

I spent lot of time testing theese serial adapters and realize that the problem was the driver.

Now I am using an usb/serial adapter to communicate serial devices with Mango, and it works very well.

If you are having problems try this driver:

http://www.matsuyama.it/dettaglio/CF215/

You can use it with your own adapter, or may purchase a new one from website.

(I am using a cheap adpater with this driver and it works)


Best Regards
Tommy
dparra

Initiate

Joined: 03/08/2010 11:58:55
Messages: 5
Location: Santiago, Chile
Offline

You're right. USB-Serial adaptors aren't the most compatible peripheral in the world.

But my problem is different, 'cause i use a Serial to Ethernet adaptor (Moxa calls it "device server"). If i install a driver on my PC, i got a virtual COM port though ethernet.

When i use modpoll for test (www.focus-sw.com/fieldtalk/modpoll.html) everything works:



But i can't select "Encapsulated RTU over TCP" on Mango (AFAIK, this protocol is supported).

I try to configure an Modbus IP data source without luck.
Transport Type: TCP
IP: **MyIpAddress**
PORT: 4001

jkyner says:
also works fine with the Moxa 5130 (a basic Ethernet/RS485 SDA that is not Modbus-aware) for those Modbus slaves that can handle the 6-byte Modbus TCP-RTU header forwarded over RS485.


Therefore... My Modbus slave is incompatible with mango?

Thanks a lot!!

David Parra

This message was edited 1 time. Last update was at 03/08/2010 14:35:39


David Parra
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

David,

Can you make your device available over the internet for testing? It seems "encapsulated RTU" is a different protocol than modbus TCP.

Best regards,
Matthew Lohbihler
jkyner

Initiate

Joined: 08/06/2010 20:49:10
Messages: 5
Offline

I think what ModPoll calls "encapsulated RTU" is what Modscan32 calls a "remote telnet server" connection, which just treats the TCP/IP socket like a serial port. That is, just sendng plain Modbus RTU packets via the socket without the extra 6-byte header that Modbus TCP/IP requires.

It would be a cool feature for Mango to support that connection type so folks can use cheaper serial device servers with Mango instead of pricey Modbus Ethernet gateways.

I can probably connect my Moxa to the Internet for you to test with later this week if David can't make his available.

mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Last to connect to the internet's a rotten egg!

Best regards,
Matthew Lohbihler
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Thanks for setting this up. I've tried sending the (decimal) message [1, 3, 4, 196, 0, 1, 196, 199] to the IP address you gave but i never get a response. I also tried varying the slave id from 0 to 240 but still, nothing but crickets. Can you provide a trace of a message to which this equipment will respond?

Best regards,
Matthew Lohbihler
 
Forum Index » Hardware
Go to:   
Powered by JForum 2.1.9 © JForum Team