[Logo] Mango Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: udi
Forum Index » Profile for udi » Messages posted by udi
Author Message
Ok
Problem sovled ( also with spinwave's help)

the port should be 502 not 80 ,
the offset start at 101 and on .
the data arrive as 2 bytes bsigned integer .

10nx to all
--udi

Hi,
Reseting the computer and the gateway didn't help situation stayed the same , i cannot see any configuration that suppose to change timeout in the gateway.

Best
--udi
Hi,
Thanks , indeed it seem to progress ,
we now have a new error further down the road ..

Error while polling modbus network: No response from network
(please see below the extracted error fro the tomcat window)
However i can access the SWGW embedded webserver from the browser at the same time .

when activating another application from
http://www.codeproject.com/KB/IP/Modbus_TCP_class.aspx

i get Modbus slave error: Slave time out! on the c# application there

any ideas ?
10nx

49,093 (com.serotonin.mango.rt.dataSource.modbus.ModbusDa
taSource.doPoll:131) - Error while polling modbus network
com.serotonin.modbus4j.exception.ModbusTransportException: com.serotonin.io.mess
aging.SendTimeoutException
at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:87)
at com.serotonin.modbus4j.ModbusMaster.sendFunctionGroup(ModbusMaster.ja
va:325)
at com.serotonin.modbus4j.ModbusMaster.send(ModbusMaster.java:26
at com.serotonin.mango.rt.dataSource.modbus.ModbusDataSource.doPoll(Modb
usDataSource.java:8
at com.serotonin.mango.rt.dataSource.PollingDataSource.scheduleTimeout(P
ollingDataSource.java:70)
at com.serotonin.mango.util.TimeoutJob.execute(TimeoutJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:516)
Caused by: com.serotonin.io.messaging.SendTimeoutException
at com.serotonin.io.messaging.SenderConnection.send(SenderConnection.jav
a:85)
at com.serotonin.io.messaging.SenderConnection.send(SenderConnection.jav
a:92)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:83)
... 7 more
Hi,
Considering that the problem might rise from the medium between the MangoM2M and SWGW , i did the following
1) Restart the computer
2) shut down the firewall and ant virus
3) made sure there is a browser connection

to no avail - the problem still exist ,
both machine are now connected to the same Hub

i will try to install on another machine and later on use crosspair Cat5 cable between the machine and the SWGW
i will welcome any debugging idea .
10nx
--udi
Hi,
i winder what is the source of the problem - i can surf to the gatway from the same browser that i use for MangoM2m and at the same time i get the following error withing the mango M2m ,
Here is the part from the tomcat window that mention the source of the problem.
can you please outline some steps to take or check?


INFO 2009-04-02 20:30:10,281 (com.serotonin.mango.rt.dataSource.modbus.ModbusDa
taSource.doPoll:131) - Error while polling modbus network
com.serotonin.modbus4j.exception.ModbusTransportException: java.net.UnknownHostE
xception: http://10.2.209.3/
at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:64)
at com.serotonin.modbus4j.ModbusMaster.sendFunctionGroup(ModbusMaster.ja
va:325)
at com.serotonin.modbus4j.ModbusMaster.send(ModbusMaster.java:26
at com.serotonin.mango.rt.dataSource.modbus.ModbusDataSource.doPoll(Modb
usDataSource.java:8
at com.serotonin.mango.rt.dataSource.PollingDataSource.scheduleTimeout(P
ollingDataSource.java:70)
at com.serotonin.mango.util.TimeoutJob.execute(TimeoutJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:516)
Caused by: java.net.UnknownHostException: http://10.2.209.3/
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.openConnection(TcpMaster.java
:111)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:61)
... 7 more
[b]INFO 2009-04-02 20:30:10,359 (com.serotonin.mango.rt.dataSource.modbus.ModbusDa
taSource.doPoll:131) - Error while polling modbus network
com.serotonin.modbus4j.exception.ModbusTransportException: java.net.UnknownHostE
xception: http://10.2.20.3/

at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:64)
at com.serotonin.modbus4j.ModbusMaster.sendFunctionGroup(ModbusMaster.ja
va:325)
at com.serotonin.modbus4j.ModbusMaster.send(ModbusMaster.java:26
at com.serotonin.mango.rt.dataSource.modbus.ModbusDataSource.doPoll(Modb
usDataSource.java:8
at com.serotonin.mango.rt.dataSource.PollingDataSource.scheduleTimeout(P
ollingDataSource.java:70)
at com.serotonin.mango.util.TimeoutJob.execute(TimeoutJob.java:49)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:516)
Caused by: java.net.UnknownHostException: http://10.2.20.3/
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:177)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.openConnection(TcpMaster.java
:111)
at com.serotonin.modbus4j.ip.tcp.TcpMaster.send(TcpMaster.java:61)
... 7 more
[/b]
Hi,
thank you for your response,
However i'm stuck in an earlier stage, i get the error
Error while polling modbus network: java.net.UnknownHostException: http://10.2.20.3/
when trying to connect from Mango Data Source to the SWGW via TCP.
i realize there might be a reason for that ,
the http://10.2.20.3/ port 80 is protected by username / password
i tried to change that to the default password of Mango but still it gave the same error. the username / password are compulsory and cannot be override

is there another basic check or something i can do to ? something to further pinpoint the problem ?

Hi,
Does anybody got experiance with connecting to Spinwave SWGW gateway , when working with the gateway i can connect to it via a browser but cannot connect to it from mango , i try to connect to it as a modbus TCP over the local network. is there anothr way ? the definition of port and ip are correct....

10nx
--udi

mlohbihler 10nx ,

the java -version dos commend gave" java 1.6 .."
but i realized that JAVA_HOME setting was directed to java 1.5.. , after changing that - all matters resolved .

Hi,
i installed:
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)

i used mango 1.4.2 on windows XP
------------------------------------------------------------------------------
and got the following error during tomcat startup
SEVERE: Null component Catalina:type=JspMonitor,name=jsp,WebModule=//localhost/
J2EEApplication=none,J2EEServer=none
11/02/2009 20:11:39 org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory ROOT
java.lang.UnsupportedClassVersionError: Bad version number in .class file
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1

-------------------------------------------------------------------------------
Any ideas ,

Tnx!
--udi


 
Forum Index » Profile for udi » Messages posted by udi
Go to:   
Powered by JForum 2.1.9 © JForum Team