LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Product name Description LS20030-2R GPS smart antenna module/USB,9600BPS,30x30mm LS20031-2R GPS smart antenna module/TTL,9600BPS,30x30mm LS20032-2R GPS smart antenna module/RS232,9600BPS,30x30mm LS20033-2R GPS smart antenna module/TTL,9600BPS,35x16mm Version 0.1 Datasheet of GPS smart antenna module, LS20030~3-2R 1 Introduction LS20030~3-2R series products are complete GPS smart antenna modules, including an embedded antenna and GPS receiver circuits, designed for a broad spectrum of OEM system applications. The product is based on the proven technology found in LOCOSYS 66 channel GPS SMD type receivers MC-1513-2R that use MediaTek chip solution. The GPS smart antenna will acquire a lot of satellites at a time while providing fast time-to-first-fix and low power consumption. Besides, it can provide you with superior sensitivity and performance even in urban canyon and dense foliage environment. Its far-reaching capability meets the sensitivity requirements of car navigation as well as other location-based applications. 2 Features MediaTek high sensitivity solution Support 66-channel GPS Fast TTFF at low signal level Built-in 12 multi-ton active interference canceller Up to 10 Hz update rate Capable of SBAS (WAAS, EGNOS, MSAS) Support Japan QZSS Indoor and outdoor multi-path detection and compensation Build-in micro battery to reserve system data for rapid satellite acquisition (not in LS20033-2R) LED indicator for GPS fix or not fix (not in LS20033-2R) Page 1/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com 3 Application Personal positioning and navigation Automotive navigation Marine navigation Fig 3-1 System block diagram of LS20030-2R Fig 3-2 System block diagram of LS20031-2R Page 2/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Fig 3-3 System block diagram of LS20032-2R Fig 3-4 System block diagram of LS20033-2R Page 3/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com 4 GPS receiver Chip MediaTek MT3337 Frequency L1 1575.42MHz, C/A code Channels Support 66 channels (22 Tracking, 66 Acquisition) Update rate 1Hz default, up to 10Hz Acquisition Time Position Accuracy Hot start (Open Sky) < 1s (typical) Cold Start (Open Sky) 32s (typical) Autonomous 3m (2D RMS) SBAS 2.5m (depends on accuracy of correction data) Datum WGS-84 (default) Max. Altitude < 50,000 m Max. Velocity < 515 m/s Protocol Support NMEA 0183 ver 3.01 9600 bps(1), 8 data bits, no parity, 1 stop bits (default) 1Hz: GGA, GSA, GSV, RMC Note 1: Both baud rate and output message rate are changeable by software command. 5 Software interface 5.1 NMEA output message Table 5.1-1 NMEA output message NMEA record Description GGA Global positioning system fixed data GLL Geographic position - latitude/longitude GSA GNSS DOP and active satellites GSV GNSS satellites in view RMC Recommended minimum specific GNSS data VTG Course over ground and ground speed GGA--- Global Positioning System Fixed Data Table 5.1-2 contains the values for the following example: $GPGGA,053740.000,2503.6319,N,12136.0099,E,1,08,1.1,63.8,M,15.2,M,,0000*64 Table5.1- 2 GGA Data Format Name Example Units Description Message ID $GPGGA GGA protocol header UTC Time 053740.000 hhmmss.sss Latitude 2503.6319 ddmm.mmmm N/S indicator N N=north or S=south Page 4/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Longitude 12136.0099 dddmm.mmmm E/W Indicator E E=east or W=west Position Fix Indicator 1 See Table 5.1-3 Satellites Used 08 Range 0 to 12 HDOP 1.1 Horizontal Dilution of Precision MSL Altitude 63.8 mters Units M mters Geoid Separation 15.2 mters Units M mters Age of Diff. Corr. second Diff. Ref. Station ID 0000 Checksum *64 <CR> <LF> Null fields when DGPS is not used End of message termination Table 5.1-3 Position Fix Indicators Value Description 0 Fix not available or invalid 1 GPS SPS Mode, fix valid 2 Differential GPS, SPS Mode, fix valid 3-5 Not supported 6 Dead Reckoning Mode, fix valid GLL--- Geographic Position – Latitude/Longitude Table 5.1-4 contains the values for the following example: $GPGLL,2503.6319,N,12136.0099,E,053740.000,A,A*52 Table 5.1-4 GLL Data Format Name Example Units Description Message ID $GPGLL GLL protocol header Latitude 2503.6319 ddmm.mmmm N/S indicator N N=north or S=south Longitude 12136.0099 dddmm.mmmm E/W indicator E E=east or W=west UTC Time 053740.000 hhmmss.sss Status A A=data valid or V=data not valid Mode A Checksum *52 A=autonomous, D=DGPS, E=DR, N=Data not valid, R=Coarse Position, S=Simulator Page 5/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com <CR> <LF> End of message termination GSA---GNSS DOP and Active Satellites Table 5.1-5 contains the values for the following example: $GPGSA,A,3,24,07,17,11,28,08,20,04,,,,,2.0,1.1,1.7*35 Table 5.1-5 GSA Data Format Name Example Units Description Message ID $GPGSA GSA protocol header Mode 1 A See Table 5.1-6 Mode 2 3 See Table 5.1-7 ID of satellite used 24 Sv on Channel 1 ID of satellite used 07 Sv on Channel 2 …. …. ID of satellite used Sv on Channel 12 PDOP 2.0 Position Dilution of Precision HDOP 1.1 Horizontal Dilution of Precision VDOP 1.7 Vertical Dilution of Precision Checksum *35 <CR> <LF> End of message termination Table 5.1-6 Mode 1 Value Description M Manual- forced to operate in 2D or 3D mode A Automatic-allowed to automatically switch 2D/3D Table 5.1-7 Mode 2 Value Description 1 Fix not available 2 2D 3 3D GSV---GNSS Satellites in View Table 5.1-8 contains the values for the following example: $GPGSV,3,1,12,28,81,285,42,24,67,302,46,31,54,354,,20,51,077,46*73 $GPGSV,3,2,12,17,41,328,45,07,32,315,45,04,31,250,40,11,25,046,41*75 $GPGSV,3,3,12,08,22,214,38,27,08,190,16,19,05,092,33,23,04,127,*7B Table 5.1-8 GSV Data Format Name Example Message ID $GPGSV Units Description GSV protocol header Page 6/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Total number of messages1 3 Range 1 to 4 Message number1 1 Range 1 to 4 Satellites in view 12 Satellite ID 28 Elevation 81 degrees Channel 1 (Range 00 to 90) Azimuth 285 degrees Channel 1 (Range 000 to 359) SNR (C/No) 42 dB-Hz Channel 1 (Range 00 to 99, null when not tracking) Satellite ID 20 Elevation 51 degrees Channel 4 (Range 00 to 90) Azimuth 077 degrees Channel 4 (Range 000 to 359) SNR (C/No) 46 dB-Hz Channel 4 (Range 00 to 99, null when not tracking) Checksum *73 Channel 1 (Range 01 to 196) Channel 4 (Range 01 to 196) <CR> <LF> End of message termination 1. Depending on the number of satellites tracked multiple messages of GSV data may be required. RMC---Recommended Minimum Specific GNSS Data Table 5.1-9 contains the values for the following example: $GPRMC,053740.000,A,2503.6319,N,12136.0099,E,2.69,79.65,100106,,,A*53 Table 5.1-9 RMC Data Format Name Example Message ID $GPRMC RMC protocol header UTC Time 053740.000 hhmmss.sss Status A A=data valid or V=data not valid Latitude 2503.6319 ddmm.mmmm N/S Indicator N N=north or S=south Longitude 12136.0099 dddmm.mmmm E/W Indicator E E=east or W=west Speed over ground 2.69 knots Course over ground 79.65 degrees Date 100106 Description True ddmmyy degrees Magnetic variation Variation sense E=east or W=west (Not shown) Mode A Checksum *53 <CR> <LF> Units A=autonomous, D=DGPS, E=DR, N=Data not valid, R=Coarse Position, S=Simulator End of message termination Page 7/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com VTG---Course Over Ground and Ground Speed Table 5.1-10 contains the values for the following example: $GPVTG,79.65,T,,M,2.69,N,5.0,K,A*38 Table 5.1-10 VTG Data Format Name Example Message ID $GPVTG Course over ground 79.65 Reference T Units VTG protocol header degrees Reference M Speed over ground 2.69 Units N Speed over ground 5.0 Units K Mode A Checksum *38 Measured heading True degrees Course over ground Description Measured heading Magnetic knots Measured speed Knots km/hr Measured speed Kilometer per hour A=autonomous, D=DGPS, E=DR, N=Data not valid, R=Coarse Position, S=Simulator <CR> <LF> End of message termination 5.2 Proprietary NMEA input message Please refer to MTK proprietary message. 5.3 Examples to configure the power mode of GPS module The GPS module supports different power modes that user can configure by issuing software commands. 5.3.1 Standby mode User can issue software command to make GPS module go into standby mode that consumes less than 200uA current. GPS module will be awaked when receiving any byte. The following flow chart is an example to make GPS module go into standby mode and then wake up. Page 8/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Start GPS module is powered on and in normal operation mode Change GPS to standby mode Wake up GPS module unsigned char StandbyMode[] = {"$PMTK161,0*28\x0D\x0A"}; Yes Issue any byte to wake up GPS module No GPS module will return {"$PMTK010,002*2D\x0D\x0A"} and start normal operation. End 5.3.2 Periodic mode When GPS module is commanded to periodic mode, it will be in operation and standby periodically. Its status of power consumption is as below chart. The following flow chart is an example to make GPS module go into periodic mode Page 9/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com and then back to normal operation mode. Start GPS module is powered on Change GPS to periodic mode with 3000ms on and 12000ms standby if position fix is available, otherwise (18000, 72000) ms will be applied. unsigned char PeriodicMode[] = {"$PMTK225,2,3000,12000,18000,72000*15\x0D\x0A"}; Note: minimum on time is 2000ms. maximum standby time is 518400000ms (6 days) GPS module will return message "$PMTK001,225,3*35\x0D\x0A" if command is accepted. Set GPS to normal operation mode? Yes GPS is in standby now Yes Issue any byte to GPS and wait it awake No No Issue command of normal operation mode unsigned char NormalMode[] = {"$PMTK225,0*2B\x0D\x0A"}; GPS module will return message "$PMTK001,225,3*35\x0D\x0A" if command is accepted. End GPS is in periodic mode End GPS is in normal mode 5.3.3 AlwaysLocateTM mode AlwaysLocateTM is an intelligent controller of periodic mode. Depending on the environment and motion conditions, GPS module can adaptively adjust working/standby time to achieve balance of positioning accuracy and power consumption. In this mode, the host CPU does not need to control GPS module until the host CPU needs the GPS position data. The following flow chart is an example to make GPS module go into AlwaysLocateTm mode and then back to normal operation mode. Page 10/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Note: AlwaysLocateTM is a trade mark of MTK. Start GPS module is powered on Change GPS to AlwaysLocate mode unsigned char AlwaysLocateMode[] = {"$PMTK225,8*23\x0D\x0A"}; Yes GPS module will return message "$PMTK001,225,3*35\x0D\x0A" if command is accepted. Request a GPS position data No Yes Issue any byte to get GPS position data No Set GPS to normal operation mode? Change GPS back to AlwaysLocate mode Yes Issue any byte to GPS and wait it awake No Set GPS to normal operation mode unsigned char NormalMode[] = {"$PMTK225,0*2B\x0D\x0A"}; End GPS is in normal mode 5.4 Examples to configure the update rate of GPS module The GPS module supports up to 10Hz update rate that user can configure by issuing Page 11/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com software commands. Note that the configurations by software commands are stored in the battery-backed SRAM that is powered through VBACKUP pin. Once it drains out, the default/factory settings will be applied. Due to the transmitting capacity per second of the current baud rate, GPS module has to be changed to higher baud rate for high update rate of position fix. The user can use the following software commands to change baud rate. Baud rate Software command Factory default $PMTK251,0*28<CR><LF> 4800 $PMTK251,4800*14<CR><LF> 9600 $PMTK251,9600*17<CR><LF> 19200 $PMTK251,19200*22<CR><LF> 38400 $PMTK251,38400*27<CR><LF> 57600 $PMTK251,57600*2C<CR><LF> 115200 $PMTK251,115200*1F<CR><LF> Note: <CR> means Carriage Return, i.e. 0x0D in hexadecimal. <LF> means Line Feed, i.e. 0x0A in hexadecimal. If the user does not want to change baud rate, you can reduce the output NMEA sentences by the following software commands. NMEA sentence Software command Factory default $PMTK314,-1*04<CR><LF> Only GLL at 1Hz $PMTK314,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only RMC at 1Hz $PMTK314,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only VTG at 1Hz $PMTK314,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only GGA at 1Hz $PMTK314,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only GSA at 1Hz $PMTK314,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only GSV at 1Hz $PMTK314,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0*29<CR><LF> Only ZDA at 1Hz $PMTK314,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0*29<CR><LF> RMC, GGA, GSA at 1Hz and GSV at $PMTK314,0,1,0,1,1,5,0,0,0,0,0,0,0,0,0,0,0,0,0*2C<CR><LF> 0.2Hz If the command is correct and executed, GPS module will output message $PMTK001,314,3*36<CR><LF> After the GPS module is changed to higher baud rate or reduced NMEA sentence, the user can configure it to high update rate of position fix by the following commands. Interval of position fix Software command Page 12/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Every 100ms (10Hz)(1) $PMTK220,100*2F<CR><LF> Every 200ms (5Hz) $PMTK220,200*2C<CR><LF> Every 500ms (2Hz) $PMTK220,500*2B<CR><LF> Every 1000ms (1Hz) $PMTK220,1000*1F<CR><LF> (2) Every 2000ms (0.5Hz) $PMTK220,2000*1C<CR><LF> If the command is correct and executed, GPS module will output message $PMTK001,220,3*30<CR><LF> Note 1: The minimum interval of position fix is 100ms, i.e. the maximum update rate is 10Hz. Note 2: The current consumption is the same with the update rate of 1Hz. 5.5 Configure the static navigation parameter The output position of GPS module will keep the same and output speed will be zero if the actual speed is below the threshold of the static navigation parameter. This is useful for different applications. For example, the car stopped at a red light will get stationary GPS position if the threshold is 1.5m/s. It is better to disable this function by setting threshold to 0 for pedestrian navigation. This function is default disabled. The format of the software command is as below. $PMTK386,speed threshold*checksum<CR><LF> The unit of speed threshold is meter per second. The range of speed threshold is from 0.1m/s to 2.0m/s. Value 0 is to disable the function. Page 13/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Start Change static navigation to 1.5m/s threshold unsigned char SpeedThreshold1_5[] = {"$PMTK386,1.5*39\x0D\x0A"}; GPS module will return message "$PMTK001,386,3*3D\x0D\x0A" if command is accepted. Disable static navigation function? Yes Set 0 threshold No unsigned char SpeedThreshold0[] = {"$PMTK386,0*23\x0D\x0A"}; GPS module will return message "$PMTK001,386,3*3D\x0D\x0A" if command is accepted. End Page 14/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com 6 LED indicator The red LED is an indicator of GPS positioning status. In continuous power mode, it flashes once per second when position is fixed. Otherwise it is off. The timing in detail is as below. Fig 6.1 LED indicator of GPS positioning status 7 Pin assignment and descriptions Fig 7.1 Pin assignment of LS20030-2R, LS20031-2R and LS20032-2R Page 15/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Fig 7.2 Pin assignment of LS20033-2R LS20030-2R Pin # Name 1 VBUS 2 D- D- line 3 D+ D+ line 4 GND P Ground 5 Shield P Ground USB power input Type Description 1 VCC P Power input 2 RX I Data input (TTL level) 3 TX O Data output (TTL level) 4 GND P Ground 5 GND P Ground LS20032-2R Pin # Name P LS20031-2R Pin # Name Type Description Type Description 1 VCC P Power input 2 RX I Data input (RS232 level) 3 TX O Data output (RS232 level) 4 GND P Ground 5 GND P Ground LS20033-2R Pin # Name Type Description Page 16/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com 8 1 VCC P Power input 2 GND P Ground 3 TX O Data output (TTL level) 4 RX I Data input (TTL level) 5 GPS LED O LED indicator. See Fig 6.1 6 VBACKUP P Backup battery supply voltage DC & Temperature characteristics 8.1 DC Electrical characteristics Parameter Input voltage Symbol Product Min. Typ. Max. VCC LS20030-2R LS20031-2R LS20032-2R LS20033-2R 4.75 3 4 5 3.3 5 5.25 4.3 6 3 3.3 4.3 Input Backup Battery Voltage VBACKUP LS20033-2R Input current High Level Input Voltage Icc VI H 2 LS20030-2R LS20031-2R LS20032-2R 30(1) 14(1) 20(1) LS20033-2R 16(1) 2.0 3.6 LS20031-2R LS20033-2R -0.3 0.8 -1 1 1 VI L High Level Input Current IIH Low Level Input Current IIL LS20031-2R LS20033-2R -1 High Level Output Voltage VOH LS20031-2R LS20033-2R 2.4 Low Level Output Voltage VOL High Level Output Current IOH Low Level Output Current IOL LS20031-2R LS20033-2R 0.4 LS20033-2R LS20033-2R LS20031-2R LS20033-2R V V V uA uA V LS20031-2R LS20031-2R V mA LS20031-2R LS20033-2R Low Level Input Voltage 1. 4.3 Units 2 2 V mA mA Measured when position fix is available and input voltage is 3.3V. Page 17/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com 8.2 Temperature characteristics Parameter 9 Symbol Product Min. Typ. Max. Operating Temperature Topr LS20030-2R ~LS20033-2R -40 - 85 Storage Temperature Tstg LS20030-2R ~LS20033-2R -40 25 85 Units ℃ ℃ Mechanical specification LS20030-2R Page 18/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com LS20031-2R, LS20032-2R Page 19/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com LS20033-2R The 6-pin connector is belonging to Wafer series connector and its pitch is 1.0mm. There is a supplier called Cherng Weei Technology Corp. http://www.cwe.com.tw and its part number is CSH-W10R-06TR for you reference. Page 20/21 © 2012 LOCOSYS Technology Inc. LOCOSYS Technology Inc. 20F.-13, No.79, Sec. 1, Xintai 5th Rd., Xizhi District, New Taipei City 221, Taiwan ℡ 886-2-8698-3698 886-2-8698-3699 www.locosystech.com Document change list Revision 0.1 Preliminary Page 21/21 © 2012 LOCOSYS Technology Inc.