GENIVI / genivi-vehicle-simulator

An open source vehicle simulator
Other
100 stars 52 forks source link

The streaming data #9

Open wallacewangchao opened 7 years ago

wallacewangchao commented 7 years ago

Hello there, I am currently using the simulator for my PhD research. I downloaded two end user applications, one screen for main PC, another is the console. I set the ip address to my own machine in the "network_settings" file. When I opened the two application in the same PC. The console is adjusted according to the selection of vehicle. However, when I run the car, the speed meter doesn't change. It seems that there is no streaming data transferred. From another pc, I ping the ip address at the port 8088, it is not opened, neither.

On the other side, when I opened the admin page by browser at the address: localhost:8087 I can select the car, but can't know the position of the car on the map, neither the log of the infractions.

3 4

Need I set other stuff of the networking for the streaming? Thanks in advance!

ericblade commented 7 years ago

I haven't really used the browser feature much, so I'm not 100% sure, but I think you need to open the browser while the simulator game is still in the first part of the car select screen, otherwise the browser app will not be synchronized correctly with the simulator. There may also be javascript errors in some versions of browsers, you might have a look at the developer console in the browser, and see if anything went wrong on browser side.

Not familiar with whatever might be on port 8088, I don't see anything. Sorry if you're not a coder :) but if you have a look at DataStreamServer.cs , it's connecting to somewhere on ports 9000 or 9001. (of course, just because I'm not familiar with anything on port 8088 doesn't mean there isn't anything.. but a quick search of the source code doesn't show any occurrences of that number)

ericblade commented 6 years ago

All of those connections are outgoing -- they expect somebody to be listening on those hosts/ports, accepting the connections, and consuming the data. I can assure you it works :)

adam-burns commented 6 years ago

Hi ericblade,

Ahh, OK. So the data 'client' is the TCP server!

Thanks for the tip! (sorry, I moved my comment as I reconsidered my issue was quite distinct from the existing one!).

Thanks again, I will report results back in the new issue I created.