Trouble getting hedgehog position with C library

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

Trouble getting hedgehog position with C library

Post by nuaalqx »

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 5462 times
Please help me, thanks!

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

Re: Trouble getting hedgehog position with C library

Post by smoker77 »

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

Post by nuaalqx »

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

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

Re: Trouble getting hedgehog position with C library

Post by nuaalqx »

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: 327
Joined: Sat Feb 06, 2016 4:03 pm

Re: Trouble getting hedgehog position with C library

Post by smoker77 »

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.

Post Reply