Hi Andres,
I added inbound and outbound rules (allow all traffic) for sumo-gui.exe,
sumo.exe and Matlab.exe. I also took all the rules which seem to work for
SUMO 0.25.0 and changed their path from 0.25.0 to 0.28.0 and even tried to
completely disabled the windows 7 firewall but when I run traci_test.m the
console looks always like this:


Loading configuration... done.
***Starting server on port 8873 ***
Loading net-file from
'D:/aktiv/SitInt/sumo-0.28.0/tools/contributed/traci4matla
b/examples/inter_palmas/tls_actuated/inter_palmas.net.xml'... done (3ms).
Loading additional-files from
'D:/aktiv/SitInt/sumo-0.28.0/tools/contributed/tra
ci4matlab/examples/inter_palmas/tls_actuated/../inter_palmas.poly.xml'...
done (
6ms).
Loading additional-files from
'D:/aktiv/SitInt/sumo-0.28.0/tools/contributed/tra
ci4matlab/examples/inter_palmas/tls_actuated/../inter_palmas_bus_stops.add.xml'.
.. done (1ms).
Loading done.
Simulation started with time: 50400.00

>>> here it waits until all 10 connection attempts have passed, which takes
around 20 seconds <<<

Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).
DijkstraRouterTT answered 2 queries and explored 36.50 edges on average.
DijkstraRouterTT spent 0ms answering queries (0.00ms on average).





And Matlab error looks like this:

MATLAB:UndefinedFunctionUndefined function 'DataReader' for input arguments
of type 'java.io.DataInputStream'.
Struct contents reference from a non-struct array object.

Error in traci.sendExact (line 19)
activeConnection.dos.writeInt(len);

Error in traci.getVersion (line 23)
result = traci.sendExact();

Error in traci.init

Error in traci_test (line 19)
[traciVersion,sumoVersion] = traci.init();



The Matlab-Error is related to the missing DOS I've mentioned before.
We have tested this on two different machines but get the same result ob
both.


That is the status up to now. I will keep trying to fix this and keep you
updated.

Best regards,
Marcus


2016-11-01 18:46 GMT+01:00 Marcus Müller <[email protected]>:

> Hi Andres,
> Thank you very much for your quick reply.
> I remember that I was asked in the past to add a permission automatically
> by the firewall (windows 7). After the automatic prompt everything worked
> fine. As this promt didn't came up this time, I manually added an exception
> in the win7 firewall, but the error was the same.
> But I will play around with the firewall a little bit more, as from your
> report it seems to be clearly related to the firewall. This would also make
> sense as the "peer shut down" probably is due to the fact that no
> communication to the server is possible.
> Probably the missing dataoutputstream is also caused by the fact that no
> outbound connection from Matlab to Sumo can be opened.
>
> I'll keep you updated,
> Thanks a lot,
> Marcus
>
> > Am 01.11.2016 um 13:02 schrieb Andres Felipe Acosta Gil <
> [email protected]>:
> >
> > Dear Marcus.
> >
> > I just ran the traci_test.m example and found a similar behavior. The
> > traci.init command makes several connection attempts and in one of them,
> > the windows firewall asked me to add the exception. After that, the
> example
> > behaved as expected. Are you running traci4matlab on Windows 10? Could
> you
> > verify the appropriate exception on the Windows Firewall?? My SUMO
> version
> > is 0.27.1
> >
> > Regards.
> >
> >
> >>
> >> ---------- Forwarded message ----------
> >> From: Marcus M?ller <[email protected]>
> >> Date: 2016-11-01 15:11 GMT+01:00
> >> Subject: Connection Refused - Peer Shutdown - Traci4Matlab traci_test.m
> >> To: sumo-user <[email protected]>, Andres Felipe Acosta
> Gil
> >> <
> >> [email protected]>
> >>
> >>
> >> Dear Sumo friends and experts,
> >>
> >> first I want to thank Jakob and his team for the latest release of SUMO
> >> 0.28.0. The release notes look like a x-mas wish list to me. Great Work!
> >>
> >> Unfortunately me and my colleagues are not able to upgrade to the latest
> >> version since 0.27 because since then we are not able to get the
> >> Traci4Matlab wrapper working.
> >>
> >> If I try to run the traci_test.m from the contributed\traci4matlab\
> >> examples
> >> folder the following error occurs: (Going back to 0.26 the same code
> works
> >> perfectly)
> >>
> >> Loading done.
> >> Simulation started with time: 50400.00
> >> Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
> >>
> >> Within Matlab the error is described as:
> >>
> >> Error using traci.Socket/connect (line 25)
> >> Java exception occurred:
> >> java.net.ConnectException: Connection refused: connect
> >>
> >>
> >> This happened in the past when the TraCi default port was changed from
> 8813
> >> to 8873, so I tried to make sure that nothing is wrong the port. I set
> the
> >> --remote-port argument but still got the same error.
> >>
> >> In Matlab I could trace down the problem until the init.m where the
> >> connections array does not contain a "dataoutputstream (dos)" after the
> >> connection has been set up:
> >>
> >> socket: [1?1 java.net.Socket]
> >> dis: [1?1 java.io.DataInputStream]
> >> dos: []
> >> dataReader: []
> >>
> >> Has anyone experienced this issue and can help me with this?
> >>
> >> Thank you very much,
> >> Marcus
> > --
> > Andres Felipe Acosta Gil, MSc student - Software developer
> > Universidad Nacional de Colombia - Medellín
> > Facultad de Minas
> > Tel: +57 (4) 4255295
> > Institutional e-mail: [email protected]
> > ------------------------------------------------------------
> ------------------
> > Developer Access Program for Intel Xeon Phi Processors
> > Access to Intel Xeon Phi processor-based developer platforms.
> > With one year of Intel Parallel Studio XE.
> > Training and support from Colfax.
> > Order your platform today. http://sdm.link/xeonphi
> > _______________________________________________
> > sumo-user mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/sumo-user
>
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to