Trouble getting hedgehog position with C library

Frequent questions asked online, offline, in forums are answered here
nuaalqx
Posts: 3
Joined: Mon Jul 17, 2017 12:25 pm

Trouble getting hedgehog position with C library

Postby nuaalqx » Tue Jul 18, 2017 6:03 am

Holle,
I used the C lib and example to build a project to get hedgehog position via USB. The project was built successfully, and the serial port was successfully opened, but there was no data received by it,and I checked the port parameter, there was no problem. When I ran dashboard.exe, the beacon's position could be got successfully. The running result of the project is as follows.
yunxingjieguo.PNG
yunxingjieguo.PNG (18.1 KiB) Viewed 836 times

Please help me, thanks!

smoker77
Posts: 96
Joined: Sat Feb 06, 2016 4:03 pm

Re: Trouble getting hedgehog position with C library

Postby smoker77 » Tue Jul 18, 2017 12:13 pm

Hello,
Is your map frozen? After building the map you should press the button 'freeze map' in bottom right side of the map. This stops detection of relative position of stationary beacons and starts output of positioning data for mobile beacons.
If the trouble will continue, can you share screenshot of the dashboard?

nuaalqx
Posts: 3
Joined: Mon Jul 17, 2017 12:25 pm

Re: Trouble getting hedgehog position with C library

Postby nuaalqx » Wed Jul 19, 2017 4:49 am

Hello,
I have frozen the map, but the trouble continues, here is the screenshot:
dashboard.PNG
dashboard.PNG (113.83 KiB) Viewed 806 times

nuaalqx
Posts: 3
Joined: Mon Jul 17, 2017 12:25 pm

Re: Trouble getting hedgehog position with C library

Postby nuaalqx » Thu Jul 20, 2017 11:23 am

Hello,
I fixed the problem by disabling high resolution mode, thanks for your help, but there is one more question: would you please tell me what instruction is sent to start output of positioning data for mobile beacons when pessing the button "freeze map" and "unfreeze map"?
Best Regards,
nuaalqx

smoker77
Posts: 96
Joined: Sat Feb 06, 2016 4:03 pm

Re: Trouble getting hedgehog position with C library

Postby smoker77 » Thu Jul 20, 2017 8:54 pm

Hello,
Yes, previous versions of the example could not receive data in high resolution format.
New version can read data both in high and low resolution modes.
The example is here:
http://www.marvelmind.com/downloads/201 ... xample.zip

When freezing the map, dashboard sends the command to modem according to this protocol:
http://www.marvelmind.com/downloads/mod ... _01_27.pdf
Two commands should be sent for starting transmission of data.
First is writing submap configuration according to section 3.2.
The bit for freezing submap is in control word described in 3.3.
Second command is "writing modem configuration" according to section 2.2.
The bit "power save mode" should be set in control word described in section 2.3.


Return to “FAQ”

Who is online

Users browsing this forum: Bing [Bot] and 2 guests