Why is this essay continued, not (2), mainly because the positioning information is displayed on the map in (2, and this articleArticleIn the previous article, I wrote about how to implement GPS positioning, but did not write about how to test positioning. Therefore, I would like to add a supplement here. For those who implement the GPS function but cannot test positioning on the simulator, provide some help:
To implement the test, I am using the CMD command line. Here I will perform the test. Of course there are other methods. If there are good ones, I can add them as a supplement.
First, open the command line tool.
Connect to the simulator, and use Telnet to connect.CodeAs follows:
Telnet localhost 5554 (this 5554 is input based on the simulator you started, or it may be other.
Simulator
Command line interface
Enter the GEO fix longitude and press Enter.
The simulator displays the following:
Sometimes you are prompted to enter help when entering the GEO fix command in the command line. You can enter help and then enter this command. Sometimes you need to enter help multiple times. The specific reason is unknown!
If you want to know more, let me know.