-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can't communcate through udp port #28
Comments
hill man, I met this question too, how did you deal with this problem? |
Hi mate, |
Is it essential in HITL mode that all the sensors should be connected to px4? |
I have done the simulation once and I don't really remember if I had the sensors connected. I believe All the sensors data will be simulated. |
OK. Thanks very much! ^-^ |
Hi, I have know the reason why sitl cannot connected by jmavsim. You should clone the jmavsim project from this web https://github.com/PX4/jMAVSim.git (not https://github.com/DrTon/jMAVSim). So the readme file is wrong. |
was you able to compile it ? compile: BUILD FAILED |
May be your jdk version is not right. I installed "jdk-8u60-linux-x64.tar.gz" from here http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html |
I've created a virtual machine running Xubuntu 18.04. According to the instructions, to connect to the wifi I must run the simulator using a different command : sudo make broadcast jmavsim Then I've to set manually a parmeter in the consolle the firtst time. param set MAV_BROADCAST 1 The screen log is this : ninja: Entering directory `/home/dronetest/Firmware/build/posix_sitl_broadcast' | ___ \ \ \ / / / | px4 starting. INFO [Unknown] Calling startup script: bash etc/init.d-posix/rcS 0 make_dirs: compile: create_run_jar: copy_res: BUILD SUCCESSFUL libEGL warning: DRI2: failed to authenticate I've tried with some software ( in java or nodejs) to connect, inside and outside the vm, but the " ECONNREFUSED" is always the result. I've tried also to ping using nmap the port, but for the 14556/7 sudo nmap -p 14556 -sU 192.168.1.200 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-05 02:53 CET PORT STATE SERVICE Nmap done: 1 IP address (1 host up) scanned in 0.93 seconds instead for the 14550/40: sudo nmap -p 14540 -sU 192.168.1.200 Starting Nmap 7.60 ( https://nmap.org ) at 2019-03-05 02:53 CET PORT STATE SERVICE Nmap done: 1 IP address (1 host up) scanned in 0.82 seconds I'm trying now using "https://github.com/kvenux/nodegcs" But the result is the same : ECONNREFUSED Can you help me ? |
I am trying to communicate to vagrant through udp , but I get the below message:
FAHADs-MacBook-Pro:jMAVSim fahadkhamis$ java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560
3D [dev] 1.6.0-pre12-daily-experimental daily
Exception in thread "main" java.io.IOException: jssc.SerialPortException: Port name - /dev/tty.usbmodem1; Method name - openPort(); Exception type - Port not found.
at me.drton.jmavsim.SerialMAVLinkPort.open(SerialMAVLinkPort.java:38)
at me.drton.jmavsim.Simulator.(Simulator.java:110)
at me.drton.jmavsim.Simulator.main(Simulator.java:146)
Caused by: jssc.SerialPortException: Port name - /dev/tty.usbmodem1; Method name - openPort(); Exception type - Port not found.
at jssc.SerialPort.openPort(SerialPort.java:165)
at me.drton.jmavsim.SerialMAVLinkPort.open(SerialMAVLinkPort.java:35)
... 2 more
The text was updated successfully, but these errors were encountered: