EHS8 and GPS Configuration (JSR179 Java Location API) | Telit Cinterion IoT Developer Community
May 18, 2019 - 7:41pm, 17466 views
Hello,
For testing the GPS Engine on the concept board using the JSR179, do we need to configure any settings via AT commands before using JSR179? If not, what sort of GPS configuration does it configure to if its not using A-GPS? Is it using Local GPS?
Also, do we need to buy an external antenna when using GPS on this concept board?
Thanks,
Jason
Hello,
If you use Java code with JSR179 to request the location you don't need to use AT commands to activate GPS engine. However A-GPS configuration is only possible via AT commands.
You need to connect an external GPS antenna.
Best regards,
Bartłomiej
Thanks!
So its not possible to configure A-GPS by issuing AT Commands in Java before letting JSR179 activate GPS? Does this mean, that JSR179 only activates GPS in standalone mode?
Also, does the EHS8 GPS module not have an internal antenna?
Regards,
Jason
It is possible to execute AT commands from Java, there is a dedicated API for this. The module does not have GPS antenna buitl-in.
Regards,
Bartłomiej
I am aware its possible to execute AT commands from Java. What I am not sure about is, if I execute any AT commands to GPS in Java before using any API from JSR179, how will this affect the GPS data returned from JSR179? Will this be from A-GPS configuration or in standalone (Engine 3)?
And is it also possible to switch off antenna and GPS using AT Command in a MIDlet after using JSR179 API calls?
Thanks for your help, really appreciated!
Jason
Hello,
JSR179 and AT commands are the two possible ways of controlling GPS but they cannot be used at the same time. JSR179 does not require any activation or deactivation with AT commands. While JSR179 is used it is not possible to use GPS with AT commands. SGPSC command does not reflect the GPS engine state while it is being used by JSR179. So deactivation GPS with the command after JSR179 API calls will also not work.
While A-GPS is used (with AT commands) the the PDP context assigned to this service cannot be shared.
I have tested GPS with JSR179 with A-GPS configured with AT commands and did not observe A-GPS being used in such a scenario while it was used while controlling GPS with AT commands only. I'll try to confirm this and let you know here.
In case of AT commands the following example shows A-GPS usage:
AT+CGDCONT=1,"IP","CMNET"
OK
AT^SGPSDNS=1,1
OK
AT+CGACT=1,1
OK
AT^SGPSC="Assist/Address","FQDN","supl.google.com",
"7276"
^SGPSC: "Assist/Address","FQDN","supl.google.com","7276"
OK
AT^SGPSC="Assist/Connection",1,0
^SGPSC: "Assist/Connection"
OK
AT^SGPSC="Engine",2
^SGPSC: "Engine",1
OK
Best regards,
Bartłomiej
Thanks very much for this information Bartłomiej. Did you manage to see whether GPS engine can be powered on and off using AT Commands while using JSR179, or are they managed separately again?
Hello,
GPS engine can only be used exclusively by AT commands or Java API. So whether it is being used by JSR179 it will not be possible to activate it with AT commands.
Regards,
Bartłomiej
Within the comment of an example given in the WTK, it mentions the following config for AT Commands:
By default these values are not set. So, in real life, how does one restart the module to activate the above config settings? On the board, I just press the off and then start button to 'restart'. Is there a specific AT Command where one can do this without user intervention, or am I misunderstanding the instruction?
Thanks!
Hello,
These are the settings for hardware configuration of GPS antenna circuit, related to the connected antenna type. They have some default values and the setting is non-volatile so it only ***** to be set once. It is possible to reboot the module with an AT command when for example a setting that ***** restart is changed (AT+CFUN=1,1). You can also shut down the module with AT^SMSO command.
Best regards,
Bartłomiej
Hello,
I brought an external antenna for testing with the concept board. However, I am still not getting a GPS fix. The only value I get are the GPGSV values. Is there a specific spec to the antenna I must get? The one I got has a 5m cable which can extend to outside of the window, 1575.42MHz frequency with 28dB peak gain. I tried to access from AT commands and Java API with setting fix waiting time to 5000 secs and still nothing.
I also activated the external antenna and set power on via AT commands. Any ideas?
Thanks.
Pages