Ok, figured it out.
The "bool initFromDisplayString = default(true)" prevented the InitialX/Y parameters from being used.
After changing it to false, I could, finally, position them where I wanted.
Now, the TCP connection between the RSU and the car gets established, apparently, as seen on this piece of output shown in OMNeT++/Tkenv:
"** Event #121 T=2.005651626442 scenario.rsu[0].tcp (TCP, id=11), on `tcpseg(l=200)' (TCPSegment, id=140)
Seg arrived: .1025 > .1000: [500001..500201) (l=200) ack 500556 win 7504
TCB: snd_una=500556 snd_nxt=500556 snd_max=500556 snd_wnd=7504 rcv_nxt=500001 rcv_wnd=7504 snd_cwnd=536 rto=3 ssthresh=65535
rcv_nxt changed to 500201, (delayed ACK disabled) sending ACK now
Sending: .1000 > .1025: ack 500201 win 7504
Staying in state: ESTABLISHED (no FSM event)"
After a few events, this occurs on host[0] (a car):
"** Event #141 T=2.00651385879 scenario.host[0].tcp (TCP, id=30), on `ACK' (TCPSegment, id=157)
Seg arrived: .1000 > .1025: ack 500201 win 7504
TCB: snd_una=500001 snd_nxt=500201 snd_max=500201 snd_wnd=7504 rcv_nxt=500556 rcv_wnd=7504 snd_cwnd=536 rto=3 ssthresh=65535
Updating send window from segment: new wnd=7504
Round-trip time measured on rtseq=500001: 3ms
Measured RTT=3.413929394ms, updated SRTT=0.426741174ms, new RTO=2627.133705874ms
ACK acks all outstanding segments, cancel REXMIT timer
cwnd <= ssthresh: Slow Start: increasing cwnd by one SMSS bytes to cwnd=1072
Staying in state: ESTABLISHED (no FSM event)"
After that things get really confusing, because more cars enter the scenario, more messages are exchanged, etc...
So, the simulation doesn't crash and runs until the end, but the application is not transmitting data. I think that's because there's a problem with my settings somewhere on the lower layers.
Both, car and rsu, modules have these submodules this:
networkLayer: NetworkLayer {
parameters:
proxyARP = false;
@display("p=304,327;q=queue");
gates:
ifIn[1];
ifOut[1];
}
wlan: Ieee80211Nic {
parameters:
@display("p=304,461;q=queue");
}
Also, TCPBasicClientApp, wich runs on the cars, use the symbolic connectAddress parameter "rsu[*]". and bytecount dataTransferMode.
These are the information that I think may be related to the problem.
Do you have any idea about what might be wrong with the scenario?
Thanks a lot for the immense help.
Best,
Márcio Vinícius Barbosa