WO2020155911A1 - Positioning chip information processing method and terminal device - Google Patents

Positioning chip information processing method and terminal device Download PDF

Info

Publication number
WO2020155911A1
WO2020155911A1 PCT/CN2019/126613 CN2019126613W WO2020155911A1 WO 2020155911 A1 WO2020155911 A1 WO 2020155911A1 CN 2019126613 W CN2019126613 W CN 2019126613W WO 2020155911 A1 WO2020155911 A1 WO 2020155911A1
Authority
WO
WIPO (PCT)
Prior art keywords
output
information
positioning
sentence
processing
Prior art date
Application number
PCT/CN2019/126613
Other languages
French (fr)
Chinese (zh)
Inventor
谭伟强
Original Assignee
泰斗微电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 泰斗微电子科技有限公司 filed Critical 泰斗微电子科技有限公司
Publication of WO2020155911A1 publication Critical patent/WO2020155911A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/01Satellite radio beacon positioning systems transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/13Receivers
    • G01S19/35Constructional details or hardware or software details of the signal processing chain
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position

Definitions

  • the invention belongs to the technical field of positioning, and in particular relates to a method and terminal equipment for information processing of a positioning chip.
  • the positioning chip generally outputs time, latitude, longitude, altitude, speed, and satellite signals and other related positioning information through the serial port.
  • the default output mode of the positioning chip is NMEA0183 format.
  • the embodiments of the present invention provide a method and terminal equipment for information processing of a positioning chip to solve the problem of the content output by the positioning chip in the prior art.
  • the upper computer needs to perform format conversion before using it, and the upper computer is added.
  • the code and storage resources required for processing reduce the problem of resources for the host computer to process other events.
  • the first aspect of the embodiments of the present invention provides a method for processing information of a positioning chip, including:
  • the output sentence is output.
  • the obtaining information to be output includes:
  • the received satellite signal is decoded, and the decoded satellite positioning information is obtained, where the satellite positioning information is the information to be output.
  • the output sentence includes N fields, each field requires a fixed number of bytes, and the sequence of the N fields is not fixed, and N is greater than or equal to 1.
  • the output sentence includes: sentence start character, time, longitude, latitude, end identifier, and check code fields, as well as fields other than the sentence start character, the end identifier, and the check code.
  • the separator that separates the fields outside the code.
  • the output sentence further includes: at least one field of information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
  • the constructing the information to be output into a fixed-length output sentence according to a preset rule includes:
  • the information to be output is used to assign a value to each field, and the assigned fields constitute an output sentence.
  • the delimiter is a comma, a semicolon, at least one space, or a symbol indicating a delimiting function.
  • a second aspect of the embodiments of the present invention provides an information processing device for a positioning chip, including:
  • a processing module configured to construct the information to be output into fixed-length output sentences according to preset rules
  • the output module is used to output the output sentence.
  • a third aspect of the embodiments of the present invention provides a terminal device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the steps of the method described above for information processing of the positioning chip.
  • a fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it realizes the information processing of the positioning chip as described above. The steps of the method.
  • the embodiment of the present invention has the following beneficial effects: by constructing the information to be output as a fixed-length output sentence according to preset rules; outputting the output sentence, so that the host computer obtains the output of the positioning chip After the statement, no further processing or adjustment is required to support the application requirements of the upper computer, and to a large extent reduce the demand for processing resources of the upper computer.
  • FIG. 1 is a schematic diagram of an implementation flow of a method for processing information of a positioning chip provided by an embodiment of the present invention
  • FIG. 2 is an exemplary diagram of a device for information processing of a positioning chip provided by an embodiment of the present invention
  • Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of the implementation process of a method for processing information of a positioning chip according to an embodiment of the present invention, and the details are as follows:
  • Step 101 Obtain information to be output.
  • the information to be output is positioning information obtained by the positioning chip, and the information to be output includes time information, latitude and longitude information, speed, and so on.
  • Step 101 specifically includes: the positioning chip decodes the received satellite signal, and obtains the decoded satellite positioning information, where the satellite positioning information is the information to be output.
  • the positioning chip decodes the received satellite signal, which specifically includes: the positioning chip decodes the received satellite signal by time decoding and ephemeris decoding, time decoding is decoding time data from the satellite signal, and ephemeris decoding is slave Ephemeris data is decoded from the satellite signal.
  • Ephemeris refers to the precise position or trajectory table of a flying object that changes with time in GPS surveys. It is a function of time.
  • the satellite ephemeris uses the mathematical relationship between the six orbital parameters of Kepler's law to determine the time, coordinates, azimuth, speed and other parameters of the flying body, with extremely high accuracy. Satellite ephemeris information is also called ephemeris.
  • Ephemeris data is used to indicate the predetermined location of a star at regular intervals, or the predetermined location of an artificial satellite at regular intervals.
  • Step 102 Construct the information to be output into a fixed-length output sentence according to a preset rule.
  • the output sentence in step 102 includes N fields, the number of bytes required for each field is fixed, the order between the N fields is not fixed, and the N is greater than or equal to 1.
  • the number of bytes required for each field can be set according to requirements.
  • the format of each output statement is fixed, and the number of bytes required for each field is also fixed.
  • the output sentence includes at least: sentence start character, time, longitude, latitude, end identifier and check code fields, and except for the sentence start character, the end identifier and the check code
  • the separator that separates fields other than those.
  • the output sentence may also include at least one field among information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
  • the embodiment of the present invention uses the output sentence to include 14 fields and 10 separators for detailed description, that is, the output sentence Including: sentence start character, information identifier, time, positioning indication, longitude, latitude, altitude, speed, direction, number of satellites involved in positioning, satellite signal average carrier-to-noise ratio, spare information, end identifier and check code 14 fields , And 10 separators for separating each field except the sentence start character, the end identifier, and the check code.
  • the sentence start character is represented by "$" and represented by 1 byte.
  • the information identifier may be a company name or other fixed-purpose information identifiers, and may be represented by "CCCCC", which is represented by 5 bytes.
  • CCCCC can be TDINF, which represents the company name.
  • the time is represented by “YYYYMMDD” and “hhmmss”.
  • the time can also be expressed in other ways, such as “MMDDYYYY” or “YYYY, MM, DD”.
  • the time is represented by “YYYYMMDD” and "hhmmss” as an example for detailed description.
  • YYYYMMDD YYYY represents the year
  • MM represents the month
  • DD represents the date
  • the “YYYYMMDD” is 8 bytes; for example, “YYYYMMDD” can be 20181126, and 20181126 represents November 26, 2018.
  • the format of the year, month, and day defined in the prior art NMEA is: DDMMYY, which needs to be further processed before output. Add 2000 to the year, and finally use four bytes to represent the year. For example, 2018, compared to the year, month, and day in this embodiment The representation mode of operation is more cumbersome.
  • hh means hours
  • mm means minutes
  • ss means seconds
  • hhmmss is 6 bytes.
  • “hhmmss” can be 123456, and 123456 means 12:34:56.
  • the positioning indication is represented by "A/V", where A indicates that the positioning data is available, and V indicates that the positioning data is not available. Only one byte is included in the output sentence, that is, only A or V is output.
  • the longitude is represented by positive and negative values, a positive value represents east longitude, a negative value represents west longitude, or a positive value represents west longitude, and a negative value represents east longitude and west longitude.
  • a positive value represents the east longitude and a negative value represents the west longitude as an example for detailed description.
  • longitude is expressed as " ⁇ lll.llllll", where "+lll.llllll” means east longitude and "-lll.llllll” means west longitude.
  • the number of digits after the decimal point can be adjusted as needed.
  • the longitude can be +113.431417, which means 113.431417 degrees east longitude.
  • the format of longitude defined in the prior art NMEA is "yyyyy.y", where the first three digits indicate degrees, the last digit and one digit after the decimal point indicate minutes, that is, "yy” means "minutes. minutes", which needs to be changed when outputting.
  • Many codes convert the longitude into the unit "degree. degree” required by the host computer.
  • the latitude is represented by positive and negative values, a positive value represents north latitude, a negative value represents south latitude, or a positive value represents south latitude, and a negative value represents north latitude.
  • a positive value represents north latitude and a negative value represents south latitude as an example for detailed description.
  • the latitude is expressed as " ⁇ yy.yyyyyy", where "+yy.yyyyy” means north latitude and "-yy.yyyyyyy" means south latitude.
  • the number of digits after the decimal point can be adjusted as needed.
  • the latitude can be -23.165448, which means 23.165448 degrees south latitude.
  • the representation format of latitude in the prior art is similar to that of longitude, and multiple format conversions are required to obtain the format required by the host computer. Therefore, the format used in this embodiment is simple to operate and reduces the demand for processing resources of the host computer.
  • the height can be represented by " ⁇ hhhh.h”, which is represented by 7 bytes. It should be noted that the value of the number of digits before and after the decimal point can be set according to specific requirements, and this is only illustrative. For example, the height can be 0025.6.
  • the format length of the prior art is not fixed, and data segmentation is required when reading. Therefore, the format adopted in this embodiment is simple to operate, which reduces the demand for processing resources of the host computer.
  • the speed can be represented by "kkk.k", the unit can be km/h, or m/s, and it can be represented by 5 bytes. It should be noted that the unit can be set according to specific needs, which is only illustrative here. For example, the speed can be 034.1.
  • the length of the speed in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the speed output of the host computer.
  • the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
  • the direction can be represented by "bbb.b", the unit is degree, and it is represented by 5 bytes.
  • the direction can be 173.5.
  • the length of the direction in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the direction output of the host computer.
  • the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
  • the number of satellites participating in positioning is represented by "ss” and represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal.
  • the average carrier-to-noise ratio of the satellite signal is represented by "nn", which is represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal. This field is not defined in the prior art NMEA, and the host computer is required to read multiple satellite signals from multiple GSV sentences to obtain multiple carrier-to-noise ratios, and then calculate the average value of the multiple carrier-to-noise ratios, which increases the host computer Demand for computing resources.
  • the spare information can be represented by "XXXX", which is represented by 4 bytes. Used to output some spare information.
  • the end identifier can be represented by "*" and represented by 1 byte.
  • the check code can be represented by "HH” and represented by 2 bytes.
  • the delimiter is a comma, a semicolon, at least one space, or a symbol representing a delimiting function.
  • a comma is used for division for detailed description.
  • each field in the output sentence except the sentence start character, the end identifier and the check code is separated by a comma, that is, "$CCCCC, YYYYMMDDhhmmss, A/V, ⁇ lll.llllll, ⁇ yy.yyyyyy, ⁇ hhhh.h, kkk.k, bbb.b, ss, nn, XXXX*HH" are separated by 10 commas.
  • this step may specifically include: assigning a value to each field using the information to be output according to each field included in the output sentence and the separator, and the assigned fields constitute an output sentence.
  • Step 103 Output the output sentence.
  • the host computer After the host computer obtains the output sentence output by the positioning chip, it directly reads and then executes the corresponding operation.
  • the information to be output is constructed into a fixed-length output sentence according to a preset rule; the output sentence is output so that the host computer obtains the output sentence of the positioning chip without further Processing or adjustment can support the application requirements of the upper computer and greatly reduce the demand for processing resources of the upper computer.
  • FIG. 2 shows an example diagram of the information processing apparatus of the positioning chip provided in an embodiment of the present invention.
  • the device may include: an acquisition module 201, a processing module 202, and an output module 203.
  • the obtaining module 201 is used to obtain information to be output.
  • the processing module 202 is configured to construct the information to be output into a fixed-length output sentence according to preset rules.
  • the output module 203 is used to output the output sentence.
  • the acquisition module 201 is specifically configured to decode the received satellite signals and acquire decoded satellite positioning information, where the satellite positioning information is the information to be output.
  • the output sentence includes N fields, the number of bytes required to form each field is fixed, the sequence between the N fields is not fixed, and the N is greater than or equal to 1.
  • the number of bytes required for each field can be set according to requirements. When the setting is completed, the format of each output statement is fixed, and the number of bytes required for each field is also fixed. When it is necessary to change the required bytes for each field When counting, you can reset the output sentence.
  • the output sentence includes at least: sentence start character, time, longitude, latitude, end identifier and check code fields, and except for the sentence start character, the end identifier and the check code
  • the separator that separates fields other than those.
  • the output sentence may also include at least one field among information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
  • the embodiment of the present invention uses the output sentence to include 14 fields and 10 separators for detailed description, that is, the output sentence Including: sentence start character, information identifier, time, positioning indication, longitude, latitude, altitude, speed, direction, number of satellites involved in positioning, satellite signal average carrier-to-noise ratio, spare information, end identifier and check code 14 fields , And 10 separators for separating each field except the sentence start character, the end identifier, and the check code.
  • the sentence start character is represented by "$" and represented by 1 byte.
  • the information identifier may be a company name or other fixed-purpose information identifiers, and may be represented by "CCCCC", which is represented by 5 bytes.
  • CCCCC can be TDINF, which represents the company name.
  • the time is represented by “YYYYMMDD” and “hhmmss”.
  • the time can also be expressed in other ways, such as “MMDDYYYY” or “YYYY, MM, DD”.
  • the time is represented by “YYYYMMDD” and "hhmmss” as an example for detailed description.
  • YYYYMMDD YYYY represents the year
  • MM represents the month
  • DD represents the date
  • the “YYYYMMDD” is 8 bytes; for example, “YYYYMMDD” can be 20181126, and 20181126 represents November 26, 2018.
  • the format of the year, month, and day defined in the prior art NMEA is: DDMMYY, which needs to be further processed before output. Add 2000 to the year, and finally use four bytes to represent the year. For example, 2018, compared to the year, month, and day in this embodiment The representation mode of operation is more cumbersome.
  • hh means hours
  • mm means minutes
  • ss means seconds
  • hhmmss is 6 bytes.
  • “hhmmss” can be 123456, and 123456 means 12:34:56.
  • the positioning indication is represented by "A/V", where A indicates that the positioning data is available, and V indicates that the positioning data is not available. Only one byte is included in the output sentence, that is, only A or V is output.
  • the longitude is represented by positive and negative values, a positive value represents east longitude, a negative value represents west longitude, or a positive value represents west longitude, and a negative value represents east longitude and west longitude.
  • a positive value represents the east longitude and a negative value represents the west longitude as an example for detailed description.
  • longitude is expressed as " ⁇ lll.llllll", where "+lll.llllll” means east longitude and "-lll.llllll” means west longitude.
  • the number of digits after the decimal point can be adjusted as needed.
  • the longitude can be +113.431417, which means 113.431417 degrees east longitude.
  • the format of longitude defined in the prior art NMEA is "yyyyy.y", where the first three digits indicate degrees, the last digit and one digit after the decimal point indicate minutes, that is, "yy” means "minutes. minutes", which needs to be changed when outputting.
  • Many codes convert the longitude into the unit "degree. degree” required by the host computer.
  • the latitude is represented by positive and negative values, a positive value represents north latitude, a negative value represents south latitude, or a positive value represents south latitude, and a negative value represents north latitude.
  • a positive value represents north latitude and a negative value represents south latitude as an example for detailed description.
  • the latitude is expressed as " ⁇ yy.yyyyyy", where "+yy.yyyyy” means north latitude and "-yy.yyyyyyy" means south latitude.
  • the number of digits after the decimal point can be adjusted as needed.
  • the latitude can be -23.165448, which means 23.165448 degrees south latitude.
  • the representation format of latitude in the prior art is similar to that of longitude, and multiple format conversions are required to obtain the format required by the host computer. Therefore, the format used in this embodiment is simple to operate and reduces the demand for processing resources of the host computer.
  • the height can be represented by " ⁇ hhhh.h”, which is represented by 7 bytes. It should be noted that the value of the number of digits before and after the decimal point can be set according to specific requirements, and this is only illustrative. For example, the height can be 0025.6.
  • the format length of the prior art is not fixed, and data segmentation is required when reading. Therefore, the format adopted in this embodiment is simple to operate, which reduces the demand for processing resources of the host computer.
  • the speed can be represented by "kkk.k", the unit can be km/h, or m/s, and it can be represented by 5 bytes. It should be noted that the unit can be set according to specific needs, which is only illustrative here. For example, the speed can be 034.1.
  • the length of the speed in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the speed output of the host computer.
  • the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
  • the direction can be represented by "bbb.b", the unit is degree, and it is represented by 5 bytes.
  • the direction can be 173.5.
  • the length of the direction is not fixed, and operations such as rounding should be performed according to the direction output of the host computer.
  • the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
  • the number of satellites participating in positioning is represented by "ss” and represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal.
  • the average carrier-to-noise ratio of the satellite signal is represented by "nn", which is represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal. This field is not defined in the prior art NMEA, and the host computer is required to read multiple satellite signals from multiple GSV sentences to obtain multiple carrier-to-noise ratios, and then calculate the average value of the multiple carrier-to-noise ratios, which increases the host computer Demand for computing resources.
  • the spare information can be represented by "XXXX", which is represented by 4 bytes. Used to output some spare information.
  • the end identifier can be represented by "*" and represented by 1 byte.
  • the check code can be represented by "HH” and represented by 2 bytes.
  • the delimiter is a comma, a semicolon, at least one space, or a symbol representing a delimiting function.
  • a comma is used for division for detailed description.
  • each field in the output sentence except the sentence start character, the end identifier and the check code is separated by a comma, that is, "$CCCCC, YYYYMMDDhhmmss, A/V, ⁇ lll.llllll, ⁇ yy.yyyyyy, ⁇ hhhh.h, kkk.k, bbb.b, ss, nn, XXXX*HH" are separated by 10 commas. .
  • the processing module 203 is specifically configured to use the information to be output to assign a value to each field according to each field included in the output sentence and the separator, and the assigned fields form an output sentence.
  • the processing module constructs the information to be output into a fixed-length output sentence according to preset rules; the output module outputs the output sentence so that the host computer obtains the output sentence of the positioning chip, No further processing or adjustment is required to support the application requirements of the upper computer, and to a large extent reduce the demand for processing resources of the upper computer.
  • Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present invention.
  • the terminal device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and running on the processor 301, such as information processing of a positioning chip program of.
  • the processor 301 executes the computer program 303, the steps in the embodiment of the method for processing the information of the positioning chip are implemented, for example, steps 101 to 103 shown in FIG. 1.
  • the processor 301 executes the computer program 303, the functions of the modules in the foregoing device embodiments, for example, the functions of the modules 201 to 203 shown in FIG. 2 are realized.
  • the computer program 303 may be divided into one or more program modules, and the one or more program modules are stored in the memory 302 and executed by the processor 301 to complete the present invention.
  • the one or more program modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution of the computer program 303 in the information processing device of the positioning chip or the terminal device 3. process.
  • the computer program 303 may be divided into an acquisition module 201, a processing module 202, and an output module 203. The specific functions of each module are shown in FIG. 2 and will not be repeated here.
  • the terminal device 3 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the terminal device may include, but is not limited to, a processor 301 and a memory 302.
  • FIG. 3 is only an example of the terminal device 3, and does not constitute a limitation on the terminal device 3. It may include more or less components than shown in the figure, or a combination of certain components, or different components.
  • the terminal device may also include input and output devices, network access devices, buses, etc.
  • the so-called processor 301 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 302 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3.
  • the memory 302 may also be an external storage device of the terminal device 3, for example, a plug-in hard disk equipped on the terminal device 3, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 302 may also include both an internal storage unit of the terminal device 3 and an external storage device.
  • the memory 302 is used to store the computer program and other programs and data required by the terminal device 3.
  • the memory 302 can also be used to temporarily store data that has been output or will be output.
  • the disclosed device/terminal device and method may be implemented in other ways.
  • the device/terminal device embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the present invention implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program.
  • the computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. .
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • electrical carrier signal telecommunications signal
  • software distribution media etc.
  • the content contained in the computer-readable medium can be appropriately increased or decreased in accordance with the requirements of the legislation and patent practice in the jurisdiction.
  • the computer-readable medium Does not include electrical carrier signals and telecommunication signals.

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • Position Fixing By Use Of Radio Waves (AREA)

Abstract

A positioning chip information processing method and a terminal device, the method comprising: obtaining information to be output (101); in accordance with preset rules, structuring the information to be output as an output statement of a fixed length (102); outputting the output statement (103). It is thus possible to solve the problem in the prior art in which an upper computer must perform format conversion prior to being able to use content output by a positioning chip, increasing the amount of code and storage resources required for upper computer processing. The present invention thus reduces the code and storage resources required for upper computer processing, and reduces the upper computer resources used for processing other events.

Description

定位芯片的信息处理的方法及终端设备Information processing method for positioning chip and terminal equipment 技术领域Technical field
本发明属于定位技术领域,尤其涉及一种定位芯片的信息处理的方法及终端设备。The invention belongs to the technical field of positioning, and in particular relates to a method and terminal equipment for information processing of a positioning chip.
背景技术Background technique
定位芯片一般通过串口输出时间、经纬度、高度、速度以及卫星信号等相关定位信息,定位芯片的默认输出方式为NMEA0183格式。上位机接收到定位芯片输出的信息后提取所需要的信息,并进行格式转换,之后进行对应的处理。The positioning chip generally outputs time, latitude, longitude, altitude, speed, and satellite signals and other related positioning information through the serial port. The default output mode of the positioning chip is NMEA0183 format. After receiving the information output by the positioning chip, the upper computer extracts the required information, performs format conversion, and then performs corresponding processing.
在应用设备中,如定位手表、追踪器等,上位机定位芯片多数会选择低功耗的型号。该类型的定位芯片资源不是太多,用于存放代码的Flash和内存RAM的存储空间都很少。然而,定位芯片所输出的内容,上位机使用之前需要先进行格式转换,增加了上位机处理所需的代码和存储资源,减少了上位机处理其它事件的资源。In application equipment, such as positioning watches, trackers, etc., most of the upper computer positioning chips will choose low-power models. This type of positioning chip resource is not too much, and the storage space of Flash and memory RAM used to store the code is very small. However, to locate the content output by the chip, the host computer needs to perform format conversion before using it, which increases the code and storage resources required for the host computer to process and reduces the host computer's resources for processing other events.
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种定位芯片的信息处理的方法及终端设备,以解决现有技术中定位芯片所输出的内容,上位机使用之前需要先进行格式转换,增加了上位机处理所需的代码和存储资源,减少了上位机处理其它事件的资源的问题。In view of this, the embodiments of the present invention provide a method and terminal equipment for information processing of a positioning chip to solve the problem of the content output by the positioning chip in the prior art. The upper computer needs to perform format conversion before using it, and the upper computer is added. The code and storage resources required for processing reduce the problem of resources for the host computer to process other events.
本发明实施例的第一方面提供了一种定位芯片的信息处理的方法,包括:The first aspect of the embodiments of the present invention provides a method for processing information of a positioning chip, including:
获取待输出信息;Obtain the information to be output;
根据预设规则,将所述待输出信息构造为固定长度的输出语句;According to preset rules, constructing the information to be output into fixed-length output sentences;
输出所述输出语句。The output sentence is output.
在一实施例中,所述获取待输出信息,包括:In an embodiment, the obtaining information to be output includes:
将接收到的卫星信号进行解码,获取解码后的卫星定位信息,所述卫星定位信息为所述待输出信息。The received satellite signal is decoded, and the decoded satellite positioning information is obtained, where the satellite positioning information is the information to be output.
在一实施例中,所述输出语句中包含N个字段,每个字段所需字节数固定,所述N个字段之间的顺序不固定,N大于或等于1。In an embodiment, the output sentence includes N fields, each field requires a fixed number of bytes, and the sequence of the N fields is not fixed, and N is greater than or equal to 1.
在一实施例中,所述输出语句中包括:语句起始符、时间、经度、纬度、结束标识和校验码字段,以及除所述语句起始符、所述结束标识和所述校验码之外的各字段之间进行分隔的分割符。In an embodiment, the output sentence includes: sentence start character, time, longitude, latitude, end identifier, and check code fields, as well as fields other than the sentence start character, the end identifier, and the check code. The separator that separates the fields outside the code.
在一实施例中,所述输出语句中还包括:信息标识、定位指示、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比和备用信息中至少一个字段。In an embodiment, the output sentence further includes: at least one field of information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
在一实施例中,所述根据预设规则,将所述待输出信息构造为固定长度的输出语句,包括:In an embodiment, the constructing the information to be output into a fixed-length output sentence according to a preset rule includes:
根据所述输出语句中包括的各个字段和所述分割符,采用所述待输出信息为每个字段赋值,赋值后的字段构成输出语句。According to each field included in the output sentence and the separator, the information to be output is used to assign a value to each field, and the assigned fields constitute an output sentence.
在一实施例中,所述分割符为逗号,分号,至少一个空格或者表示分割作用的符号。In one embodiment, the delimiter is a comma, a semicolon, at least one space, or a symbol indicating a delimiting function.
本发明实施例的第二方面提供了一种定位芯片的信息处理的装置,包括:A second aspect of the embodiments of the present invention provides an information processing device for a positioning chip, including:
获取模块,用于获取待输出信息;Obtaining module for obtaining information to be output;
处理模块,用于根据预设规则,将所述待输出信息构造为固定长度的输出语句;A processing module, configured to construct the information to be output into fixed-length output sentences according to preset rules;
输出模块,用于输出所述输出语句。The output module is used to output the output sentence.
本发明实施例的第三方面提供了一种终端设备,包括:存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如上述定位芯片的信息处理所述方法的步骤。A third aspect of the embodiments of the present invention provides a terminal device, including: a memory, a processor, and a computer program stored in the memory and running on the processor, and the processor executes the computer program When realizing the steps of the method described above for information processing of the positioning chip.
本发明实施例的第四方面提供了一种计算机可读存储介质,包括:所述计 算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现如上述定位芯片的信息处理所述方法的步骤。A fourth aspect of the embodiments of the present invention provides a computer-readable storage medium, including: the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it realizes the information processing of the positioning chip as described above. The steps of the method.
本发明实施例与现有技术相比存在的有益效果是:通过根据预设规则,将所述待输出信息构造为固定长度的输出语句;输出所述输出语句,使得上位机获得定位芯片的输出语句之后,不需要进行进一步处理或者调整,即可支持上位机的应用需求,并且能够在很大限度上降低上位机处理资源的需求。Compared with the prior art, the embodiment of the present invention has the following beneficial effects: by constructing the information to be output as a fixed-length output sentence according to preset rules; outputting the output sentence, so that the host computer obtains the output of the positioning chip After the statement, no further processing or adjustment is required to support the application requirements of the upper computer, and to a large extent reduce the demand for processing resources of the upper computer.
附图说明Description of the drawings
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly explain the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings needed in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only of the present invention. For some embodiments, for those of ordinary skill in the art, other drawings may be obtained based on these drawings without creative labor.
图1是本发明实施例提供的定位芯片的信息处理的方法的实现流程示意图;FIG. 1 is a schematic diagram of an implementation flow of a method for processing information of a positioning chip provided by an embodiment of the present invention;
图2是本发明实施例提供的定位芯片的信息处理的装置的示例图;FIG. 2 is an exemplary diagram of a device for information processing of a positioning chip provided by an embodiment of the present invention;
图3是本发明实施例提供的终端设备的示意图。Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present invention.
具体实施方式detailed description
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本发明实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本发明。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本发明的描述。In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of the present invention.
为了说明本发明所述的技术方案,下面通过具体实施例来进行说明。In order to illustrate the technical solution of the present invention, specific embodiments are used for description below.
图1为本发明实施例提供的定位芯片的信息处理的方法的实现流程示意图,详述如下:FIG. 1 is a schematic diagram of the implementation process of a method for processing information of a positioning chip according to an embodiment of the present invention, and the details are as follows:
步骤101,获取待输出信息。Step 101: Obtain information to be output.
可选的,待输出信息为定位芯片获取的定位信息,待输出信息包括时间信息、经纬度信息、速度等等。步骤101具体包括:定位芯片将接收到的卫星信号进行解码,获取解码后的卫星定位信息,所述卫星定位信息为所述待输出信息。Optionally, the information to be output is positioning information obtained by the positioning chip, and the information to be output includes time information, latitude and longitude information, speed, and so on. Step 101 specifically includes: the positioning chip decodes the received satellite signal, and obtains the decoded satellite positioning information, where the satellite positioning information is the information to be output.
进一步的,定位芯片将接收到的卫星信号进行解码,具体包括:定位芯片将接收到的卫星信号进行时间解码和星历解码,时间解码为从卫星信号中解码出时间数据,星历解码为从卫星信号中解码出星历数据。Further, the positioning chip decodes the received satellite signal, which specifically includes: the positioning chip decodes the received satellite signal by time decoding and ephemeris decoding, time decoding is decoding time data from the satellite signal, and ephemeris decoding is slave Ephemeris data is decoded from the satellite signal.
星历是指在GPS测量中,飞行体运行随时间而变的精确位置或轨迹表,它是时间的函数。卫星星历以开普勒定律的6个轨道参数之间的数学关系确定飞行体的时间、坐标、方位、速度等各项参数,具有极高的精度。卫星星历信息也称为星历表,用星历表数据说明每隔一定时间某星体预定所在位置,或每隔一定时间某人造卫星预定所在位置。Ephemeris refers to the precise position or trajectory table of a flying object that changes with time in GPS surveys. It is a function of time. The satellite ephemeris uses the mathematical relationship between the six orbital parameters of Kepler's law to determine the time, coordinates, azimuth, speed and other parameters of the flying body, with extremely high accuracy. Satellite ephemeris information is also called ephemeris. Ephemeris data is used to indicate the predetermined location of a star at regular intervals, or the predetermined location of an artificial satellite at regular intervals.
步骤102,根据预设规则,将所述待输出信息构造为固定长度的输出语句。Step 102: Construct the information to be output into a fixed-length output sentence according to a preset rule.
可选的,步骤102中输出语句中包含N个字段,每个字段所需字节数固定,所述N个字段之间的顺序不固定,所述N大于或等于1。每个字段所需字节数可以根据需求进行设定,当设定完成后则每次输出语句的格式固定、每个字段所需字节数也固定,当需要改变每个字段所需字节数时,则可以重新设定输出语句。Optionally, the output sentence in step 102 includes N fields, the number of bytes required for each field is fixed, the order between the N fields is not fixed, and the N is greater than or equal to 1. The number of bytes required for each field can be set according to requirements. When the setting is completed, the format of each output statement is fixed, and the number of bytes required for each field is also fixed. When it is necessary to change the required bytes for each field When counting, you can reset the output sentence.
可选的,所述输出语句中至少包括:语句起始符、时间、经度、纬度、结束标识和校验码字段,以及除所述语句起始符、所述结束标识和所述校验码之外的各字段之间进行分隔的分割符。Optionally, the output sentence includes at least: sentence start character, time, longitude, latitude, end identifier and check code fields, and except for the sentence start character, the end identifier and the check code The separator that separates fields other than those.
进一步的,所述输出语句还可以包括:信息标识、定位指示、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比和备用信息中至少一个字段。Further, the output sentence may also include at least one field among information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
可选的,由于输出语句中的14个字段和10个分割符可以覆盖绝大部分的应用,因此本发明实施例以输出语句包括14个字段和10个分割符,进行详细描述,即输出语句包括:语句起始符、信息标识、时间、定位指示、经度、纬 度、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比、备用信息、结束标识和校验码14个字段,以及除所述语句起始符、所述结束标识和所述校验码之外的各字段之间进行分隔的10个分割符。Optionally, since the 14 fields and 10 separators in the output sentence can cover most applications, the embodiment of the present invention uses the output sentence to include 14 fields and 10 separators for detailed description, that is, the output sentence Including: sentence start character, information identifier, time, positioning indication, longitude, latitude, altitude, speed, direction, number of satellites involved in positioning, satellite signal average carrier-to-noise ratio, spare information, end identifier and check code 14 fields , And 10 separators for separating each field except the sentence start character, the end identifier, and the check code.
所述语句起始符采用“$”表示,用1个字节表示。The sentence start character is represented by "$" and represented by 1 byte.
所述信息标识可以为公司名称或者其他固定用途的信息标识,可以采用“CCCCC”表示,用5个字节表示。例如,CCCCC可以为TDINF,表示公司名称。The information identifier may be a company name or other fixed-purpose information identifiers, and may be represented by "CCCCC", which is represented by 5 bytes. For example, CCCCC can be TDINF, which represents the company name.
可选的,所述时间采用“YYYYMMDD”和“hhmmss”表示,可选的,时间还可以采用别的表达方式,例如采用“MMDDYYYY”表示,或者采用“YYYY,MM,DD”表示。在本实施例中以时间采用“YYYYMMDD”和“hhmmss”表示为例进行详细描述。所述“YYYYMMDD”中YYYY表示年份,MM表示月份,DD表示日期,所述“YYYYMMDD”为8个字节;例如,“YYYYMMDD”可以为20181126,20181126表示2018年11月26日。现有技术NMEA中定义年月日的格式为:DDMMYY,在输出之前需要进一步处理,在年份上加上2000,最终用四个字节表示年份,例如2018,相比本实施例中年月日的表示方式操作较为繁琐。Optionally, the time is represented by "YYYYMMDD" and "hhmmss". Optionally, the time can also be expressed in other ways, such as "MMDDYYYY" or "YYYY, MM, DD". In this embodiment, the time is represented by "YYYYMMDD" and "hhmmss" as an example for detailed description. In the “YYYYMMDD”, YYYY represents the year, MM represents the month, and DD represents the date, and the “YYYYMMDD” is 8 bytes; for example, “YYYYMMDD” can be 20181126, and 20181126 represents November 26, 2018. The format of the year, month, and day defined in the prior art NMEA is: DDMMYY, which needs to be further processed before output. Add 2000 to the year, and finally use four bytes to represent the year. For example, 2018, compared to the year, month, and day in this embodiment The representation mode of operation is more cumbersome.
所述“hhmmss”中hh表示时,mm表示分,ss表示秒,所述“hhmmss”为6个字节,例如,“hhmmss”可以为123456,123456表示12时34分56秒。In the "hhmmss", hh means hours, mm means minutes, ss means seconds, and the "hhmmss" is 6 bytes. For example, "hhmmss" can be 123456, and 123456 means 12:34:56.
所述定位指示采用“A/V”表示,其中,A表示定位数据可用,V表示定位数据不可用。在输出语句中仅包含1个字节,即仅输出A或者V。The positioning indication is represented by "A/V", where A indicates that the positioning data is available, and V indicates that the positioning data is not available. Only one byte is included in the output sentence, that is, only A or V is output.
可选的,所述经度采用正负值表示,正值表示东经,负值表示西经,或者正值表示西经,负值表示东经西经。在本实施例中以正值表示东经,负值表示西经为例进行详细描述。例如,经度表示为“±lll.llllll”,其中,“﹢lll.llllll”表示东经,“﹣lll.llllll”表示西经,需要注意的是,小数点后的位数可以根据需要进行调整。例如,经度可以为﹢113.431417,表示东经113.431417度。现有技术NMEA中定义经度的格式为“yyyyy.y”,其中前三位表示度,后一位以及小数 点后一位表示分,即“y.y”表示“分.分”,在输出时需要更多的代码将经度转换为上位机所需要的单位“度.度”。例如,获取到的经度信息为“float y=11325.86096”,需要做如下转换:degy=y/100+(y-y/100)/60.0,这样需要经过多次除法操作,很大程度上增加了上位机的处理资源要求。另外,还需要通过读取NMEA的标识符“E”或者“W”判断这个值是东经还是西经,操作及其繁琐。而采用本实施例提供的方案通过正负标号直接判断是东经还是西经,直接读取经度值就可以输出。Optionally, the longitude is represented by positive and negative values, a positive value represents east longitude, a negative value represents west longitude, or a positive value represents west longitude, and a negative value represents east longitude and west longitude. In this embodiment, a positive value represents the east longitude and a negative value represents the west longitude as an example for detailed description. For example, longitude is expressed as "±lll.llllll", where "﹢lll.llllll" means east longitude and "﹣lll.llllll" means west longitude. It should be noted that the number of digits after the decimal point can be adjusted as needed. For example, the longitude can be +113.431417, which means 113.431417 degrees east longitude. The format of longitude defined in the prior art NMEA is "yyyyy.y", where the first three digits indicate degrees, the last digit and one digit after the decimal point indicate minutes, that is, "yy" means "minutes. minutes", which needs to be changed when outputting. Many codes convert the longitude into the unit "degree. degree" required by the host computer. For example, the acquired longitude information is "float y=11325.86096", which needs to be converted as follows: degy=y/100+(yy/100)/60.0, which requires multiple division operations, which greatly increases the host computer Processing resource requirements. In addition, it is necessary to read the NMEA identifier "E" or "W" to determine whether the value is the east longitude or the west longitude. The operation is extremely complicated. However, the solution provided in this embodiment is used to directly determine whether it is east longitude or west longitude through positive and negative signs, and the longitude value can be directly read to output.
可选的,所述纬度采用正负值表示,正值表示北纬,负值表示南纬,或者正值表示南纬,负值表示北纬。在本实施例中以正值表示北纬,负值表示南纬为例进行详细描述。例如纬度表示为“±yy.yyyyyy”,其中,“﹢yy.yyyyyy”表示北纬,“﹣yy.yyyyyy”表示南纬,需要注意的是,小数点后的位数可以根据需要进行调整。例如,纬度可以为﹣23.165448,表示南纬23.165448度。现有技术中纬度的表示格式与经度相似,也需要经过多次格式转换才可以得到上位机所需的格式,因此本实施例采用的格式操作简单,降低了上位机处理资源的需求。Optionally, the latitude is represented by positive and negative values, a positive value represents north latitude, a negative value represents south latitude, or a positive value represents south latitude, and a negative value represents north latitude. In this embodiment, a positive value represents north latitude and a negative value represents south latitude as an example for detailed description. For example, the latitude is expressed as "±yy.yyyyyy", where "﹢yy.yyyyyy" means north latitude and "﹣yy.yyyyyy" means south latitude. It should be noted that the number of digits after the decimal point can be adjusted as needed. For example, the latitude can be -23.165448, which means 23.165448 degrees south latitude. The representation format of latitude in the prior art is similar to that of longitude, and multiple format conversions are required to obtain the format required by the host computer. Therefore, the format used in this embodiment is simple to operate and reduces the demand for processing resources of the host computer.
所述高度可以采用“±hhhh.h”表示,用7个字节表示。需要注意的是,小数点前后的位数的取值可以根据具体需求进行设定,在此仅作示例性说明。例如,高度可以为0025.6。现有技术高度的格式长度不固定,读取时需要进行数据分割,因此本实施例采用的格式操作简单,降低了上位机处理资源的需求。The height can be represented by "±hhhh.h", which is represented by 7 bytes. It should be noted that the value of the number of digits before and after the decimal point can be set according to specific requirements, and this is only illustrative. For example, the height can be 0025.6. The format length of the prior art is not fixed, and data segmentation is required when reading. Therefore, the format adopted in this embodiment is simple to operate, which reduces the demand for processing resources of the host computer.
所述速度可以采用“kkk.k”表示,单位可以为km/h,也可以为m/s,用5个字节表示。需要注意的是,单位可以根据具体需求进行设定,在此仅作示例性说明。例如,速度可以为034.1。现有技术NMEA中速度的长度不固定,需要根据上位机的速度输出进行四舍五入等操作,而本实施例提供的方案可以直接获取和使用,提高处理速度,并且降低了上位机处理资源的需求。The speed can be represented by "kkk.k", the unit can be km/h, or m/s, and it can be represented by 5 bytes. It should be noted that the unit can be set according to specific needs, which is only illustrative here. For example, the speed can be 034.1. The length of the speed in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the speed output of the host computer. However, the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
所述方向可以采用“bbb.b”表示,单位为度,用5个字节表示。例如,方向可以为173.5。现有技术NMEA中方向的长度不固定,需要根据上位机的方向输出进行四舍五入等操作,而本实施例提供的方案可以直接获取和使用,提 高处理速度,并且降低了上位机处理资源的需求。The direction can be represented by "bbb.b", the unit is degree, and it is represented by 5 bytes. For example, the direction can be 173.5. The length of the direction in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the direction output of the host computer. However, the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
所述参与定位卫星个数采用“ss”表示,用2个字节表示。用于综合判断卫星信号强弱。The number of satellites participating in positioning is represented by "ss" and represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal.
所述卫星信号平均载噪比采用“nn”表示,用2个字节表示。用于综合判断卫星信号强弱。现有技术NMEA中并未定义此字段,需要上位机从多个GSV语句中分别读取多个卫星信号获取多个载噪比,再计算多个载噪比的平均值,增大了上位机的计算资源的需求。The average carrier-to-noise ratio of the satellite signal is represented by "nn", which is represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal. This field is not defined in the prior art NMEA, and the host computer is required to read multiple satellite signals from multiple GSV sentences to obtain multiple carrier-to-noise ratios, and then calculate the average value of the multiple carrier-to-noise ratios, which increases the host computer Demand for computing resources.
所述备用信息可以采用“XXXX”表示,用4个字节表示。用于输出一些备用信息。The spare information can be represented by "XXXX", which is represented by 4 bytes. Used to output some spare information.
所述结束标识可以采用“*”表示,用1个字节表示。The end identifier can be represented by "*" and represented by 1 byte.
所述校验码可以采用“HH”表示,用2个字节表示。The check code can be represented by "HH" and represented by 2 bytes.
进一步的,所述分割符为逗号,分号,至少一个空格或者表示分割作用的符号。在本实施例中以逗号进行分割进行详细说明。例如输出语句中除所述语句起始符、所述结束标识和所述校验码之外的各字段之间用逗号进行分隔,即“$CCCCC,YYYYMMDDhhmmss,A/V,±lll.llllll,±yy.yyyyyy,±hhhh.h,kkk.k,bbb.b,ss,nn,XXXX*HH”采用10个逗号进行分隔。Further, the delimiter is a comma, a semicolon, at least one space, or a symbol representing a delimiting function. In this embodiment, a comma is used for division for detailed description. For example, each field in the output sentence except the sentence start character, the end identifier and the check code is separated by a comma, that is, "$CCCCC, YYYYMMDDhhmmss, A/V, ±lll.llllll, ±yy.yyyyyy, ±hhhh.h, kkk.k, bbb.b, ss, nn, XXXX*HH" are separated by 10 commas.
进一步的,本步骤具体可以包括:根据所述输出语句中包括的各个字段和所述分割符,采用所述待输出信息为每个字段赋值,赋值后的字段构成输出语句。Further, this step may specifically include: assigning a value to each field using the information to be output according to each field included in the output sentence and the separator, and the assigned fields constitute an output sentence.
步骤103,输出所述输出语句。Step 103: Output the output sentence.
上位机获得定位芯片输出的输出语句之后,直接读取然后执行对应的操作。After the host computer obtains the output sentence output by the positioning chip, it directly reads and then executes the corresponding operation.
上述定位芯片的信息处理的方法,通过根据预设规则,将所述待输出信息构造为固定长度的输出语句;输出所述输出语句,使得上位机获得定位芯片的输出语句之后,不需要进行进一步处理或者调整,即可支持上位机的应用需求,并且在很大限度上降低上位机处理资源的需求。In the above method for processing information of the positioning chip, the information to be output is constructed into a fixed-length output sentence according to a preset rule; the output sentence is output so that the host computer obtains the output sentence of the positioning chip without further Processing or adjustment can support the application requirements of the upper computer and greatly reduce the demand for processing resources of the upper computer.
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后, 各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
对应于上文实施例所述的定位芯片的信息处理的方法,图2示出了本发明实施例提供的定位芯片的信息处理的装置的示例图。如图2所示,该装置可以包括:获取模块201,处理模块202,输出模块203。Corresponding to the information processing method of the positioning chip described in the above embodiment, FIG. 2 shows an example diagram of the information processing apparatus of the positioning chip provided in an embodiment of the present invention. As shown in FIG. 2, the device may include: an acquisition module 201, a processing module 202, and an output module 203.
获取模块201,用于获取待输出信息。The obtaining module 201 is used to obtain information to be output.
处理模块202,用于根据预设规则,将所述待输出信息构造为固定长度的输出语句。The processing module 202 is configured to construct the information to be output into a fixed-length output sentence according to preset rules.
输出模块203,用于输出所述输出语句。The output module 203 is used to output the output sentence.
可选的,所述获取模块201,具体用于将接收到的卫星信号进行解码,获取解码后的卫星定位信息,所述卫星定位信息为所述待输出信息。Optionally, the acquisition module 201 is specifically configured to decode the received satellite signals and acquire decoded satellite positioning information, where the satellite positioning information is the information to be output.
可选的,所述输出语句中包含N个字段,构成每个字段所需字节数固定,所述N个字段之间的顺序不固定,所述N大于或等于1。每个字段所需字节数可以根据需求进行设定,当设定完成后则每次输出语句的格式固定、每个字段所需字节数也固定,当需要改变每个字段所需字节数时,则可以重新设定输出语句。Optionally, the output sentence includes N fields, the number of bytes required to form each field is fixed, the sequence between the N fields is not fixed, and the N is greater than or equal to 1. The number of bytes required for each field can be set according to requirements. When the setting is completed, the format of each output statement is fixed, and the number of bytes required for each field is also fixed. When it is necessary to change the required bytes for each field When counting, you can reset the output sentence.
可选的,所述输出语句中至少包括:语句起始符、时间、经度、纬度、结束标识和校验码字段,以及除所述语句起始符、所述结束标识和所述校验码之外的各字段之间进行分隔的分割符。Optionally, the output sentence includes at least: sentence start character, time, longitude, latitude, end identifier and check code fields, and except for the sentence start character, the end identifier and the check code The separator that separates fields other than those.
进一步的,所述输出语句还可以包括:信息标识、定位指示、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比和备用信息中至少一个字段。Further, the output sentence may also include at least one field among information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, average carrier-to-noise ratio of satellite signals, and standby information.
可选的,由于输出语句中的14个字段和10个分割符可以覆盖绝大部分的应用,因此本发明实施例以输出语句包括14个字段和10个分割符,进行详细描述,即输出语句包括:语句起始符、信息标识、时间、定位指示、经度、纬度、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比、备用信息、结束标识和校验码14个字段,以及除所述语句起始符、所述结束标识和所述校 验码之外的各字段之间进行分隔的10个分割符。Optionally, since the 14 fields and 10 separators in the output sentence can cover most applications, the embodiment of the present invention uses the output sentence to include 14 fields and 10 separators for detailed description, that is, the output sentence Including: sentence start character, information identifier, time, positioning indication, longitude, latitude, altitude, speed, direction, number of satellites involved in positioning, satellite signal average carrier-to-noise ratio, spare information, end identifier and check code 14 fields , And 10 separators for separating each field except the sentence start character, the end identifier, and the check code.
可选的,所述语句起始符采用“$”表示,用1个字节表示。Optionally, the sentence start character is represented by "$" and represented by 1 byte.
所述信息标识可以为公司名称或者其他固定用途的信息标识,可以采用“CCCCC”表示,用5个字节表示。例如,CCCCC可以为TDINF,表示公司名称。The information identifier may be a company name or other fixed-purpose information identifiers, and may be represented by "CCCCC", which is represented by 5 bytes. For example, CCCCC can be TDINF, which represents the company name.
可选的,所述时间采用“YYYYMMDD”和“hhmmss”表示,可选的,时间还可以采用别的表达方式,例如采用“MMDDYYYY”表示,或者采用“YYYY,MM,DD”表示。在本实施例中以时间采用“YYYYMMDD”和“hhmmss”表示为例进行详细描述。所述“YYYYMMDD”中YYYY表示年份,MM表示月份,DD表示日期,所述“YYYYMMDD”为8个字节;例如,“YYYYMMDD”可以为20181126,20181126表示2018年11月26日。现有技术NMEA中定义年月日的格式为:DDMMYY,在输出之前需要进一步处理,在年份上加上2000,最终用四个字节表示年份,例如2018,相比本实施例中年月日的表示方式操作较为繁琐。Optionally, the time is represented by "YYYYMMDD" and "hhmmss". Optionally, the time can also be expressed in other ways, such as "MMDDYYYY" or "YYYY, MM, DD". In this embodiment, the time is represented by "YYYYMMDD" and "hhmmss" as an example for detailed description. In the “YYYYMMDD”, YYYY represents the year, MM represents the month, and DD represents the date, and the “YYYYMMDD” is 8 bytes; for example, “YYYYMMDD” can be 20181126, and 20181126 represents November 26, 2018. The format of the year, month, and day defined in the prior art NMEA is: DDMMYY, which needs to be further processed before output. Add 2000 to the year, and finally use four bytes to represent the year. For example, 2018, compared to the year, month, and day in this embodiment The representation mode of operation is more cumbersome.
所述“hhmmss”中hh表示时,mm表示分,ss表示秒,所述“hhmmss”为6个字节,例如,“hhmmss”可以为123456,123456表示12时34分56秒。In the "hhmmss", hh means hours, mm means minutes, ss means seconds, and the "hhmmss" is 6 bytes. For example, "hhmmss" can be 123456, and 123456 means 12:34:56.
所述定位指示采用“A/V”表示,其中,A表示定位数据可用,V表示定位数据不可用。在输出语句中仅包含1个字节,即仅输出A或者V。The positioning indication is represented by "A/V", where A indicates that the positioning data is available, and V indicates that the positioning data is not available. Only one byte is included in the output sentence, that is, only A or V is output.
可选的,所述经度采用正负值表示,正值表示东经,负值表示西经,或者正值表示西经,负值表示东经西经。在本实施例中以正值表示东经,负值表示西经为例进行详细描述。例如,经度表示为“±lll.llllll”,其中,“﹢lll.llllll”表示东经,“﹣lll.llllll”表示西经,需要注意的是,小数点后的位数可以根据需要进行调整。例如,经度可以为﹢113.431417,表示东经113.431417度。现有技术NMEA中定义经度的格式为“yyyyy.y”,其中前三位表示度,后一位以及小数点后一位表示分,即“y.y”表示“分.分”,在输出时需要更多的代码将经度转换为上位机所需要的单位“度.度”。例如,获取到的经度信息为“float  y=11325.86096”,需要做如下转换:degy=y/100+(y-y/100)/60.0,这样需要经过多次除法操作,很大程度上增加了上位机的处理资源要求。另外,还需要通过读取NMEA的标识符“E”或者“W”判断这个值是东经还是西经,操作及其繁琐。而采用本实施例提供的方案通过正负标号直接判断是东经还是西经,直接读取经度值就可以输出。Optionally, the longitude is represented by positive and negative values, a positive value represents east longitude, a negative value represents west longitude, or a positive value represents west longitude, and a negative value represents east longitude and west longitude. In this embodiment, a positive value represents the east longitude and a negative value represents the west longitude as an example for detailed description. For example, longitude is expressed as "±lll.llllll", where "﹢lll.llllll" means east longitude and "﹣lll.llllll" means west longitude. It should be noted that the number of digits after the decimal point can be adjusted as needed. For example, the longitude can be +113.431417, which means 113.431417 degrees east longitude. The format of longitude defined in the prior art NMEA is "yyyyy.y", where the first three digits indicate degrees, the last digit and one digit after the decimal point indicate minutes, that is, "yy" means "minutes. minutes", which needs to be changed when outputting. Many codes convert the longitude into the unit "degree. degree" required by the host computer. For example, the acquired longitude information is "float y=11325.86096", which needs to be converted as follows: degy=y/100+(yy/100)/60.0, which requires multiple division operations, which greatly increases the host computer Processing resource requirements. In addition, it is necessary to read the NMEA identifier "E" or "W" to determine whether the value is the east longitude or the west longitude. The operation is extremely complicated. However, the solution provided in this embodiment is used to directly determine whether it is east longitude or west longitude through positive and negative signs, and the longitude value can be directly read to output.
可选的,所述纬度采用正负值表示,正值表示北纬,负值表示南纬,或者正值表示南纬,负值表示北纬。在本实施例中以正值表示北纬,负值表示南纬为例进行详细描述。例如纬度表示为“±yy.yyyyyy”,其中,“﹢yy.yyyyyy”表示北纬,“﹣yy.yyyyyy”表示南纬,需要注意的是,小数点后的位数可以根据需要进行调整。例如,纬度可以为﹣23.165448,表示南纬23.165448度。现有技术中纬度的表示格式与经度相似,也需要经过多次格式转换才可以得到上位机所需的格式,因此本实施例采用的格式操作简单,降低了上位机处理资源的需求。Optionally, the latitude is represented by positive and negative values, a positive value represents north latitude, a negative value represents south latitude, or a positive value represents south latitude, and a negative value represents north latitude. In this embodiment, a positive value represents north latitude and a negative value represents south latitude as an example for detailed description. For example, the latitude is expressed as "±yy.yyyyyy", where "﹢yy.yyyyyy" means north latitude and "﹣yy.yyyyyy" means south latitude. It should be noted that the number of digits after the decimal point can be adjusted as needed. For example, the latitude can be -23.165448, which means 23.165448 degrees south latitude. The representation format of latitude in the prior art is similar to that of longitude, and multiple format conversions are required to obtain the format required by the host computer. Therefore, the format used in this embodiment is simple to operate and reduces the demand for processing resources of the host computer.
所述高度可以采用“±hhhh.h”表示,用7个字节表示。需要注意的是,小数点前后的位数的取值可以根据具体需求进行设定,在此仅作示例性说明。例如,高度可以为0025.6。现有技术高度的格式长度不固定,读取时需要进行数据分割,因此本实施例采用的格式操作简单,降低了上位机处理资源的需求。The height can be represented by "±hhhh.h", which is represented by 7 bytes. It should be noted that the value of the number of digits before and after the decimal point can be set according to specific requirements, and this is only illustrative. For example, the height can be 0025.6. The format length of the prior art is not fixed, and data segmentation is required when reading. Therefore, the format adopted in this embodiment is simple to operate, which reduces the demand for processing resources of the host computer.
所述速度可以采用“kkk.k”表示,单位可以为km/h,也可以为m/s,用5个字节表示。需要注意的是,单位可以根据具体需求进行设定,在此仅作示例性说明。例如,速度可以为034.1。现有技术NMEA中速度的长度不固定,需要根据上位机的速度输出进行四舍五入等操作,而本实施例提供的方案可以直接获取和使用,提高处理速度,并且降低了上位机处理资源的需求。The speed can be represented by "kkk.k", the unit can be km/h, or m/s, and it can be represented by 5 bytes. It should be noted that the unit can be set according to specific needs, which is only illustrative here. For example, the speed can be 034.1. The length of the speed in the prior art NMEA is not fixed, and operations such as rounding should be performed according to the speed output of the host computer. However, the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
所述方向可以采用“bbb.b”表示,单位为度,用5个字节表示。例如,方向可以为173.5。现有技术NMEA中方向的长度不固定,需要根据上位机的方向输出进行四舍五入等操作,而本实施例提供的方案可以直接获取和使用,提高处理速度,并且降低了上位机处理资源的需求。The direction can be represented by "bbb.b", the unit is degree, and it is represented by 5 bytes. For example, the direction can be 173.5. In the prior art NMEA, the length of the direction is not fixed, and operations such as rounding should be performed according to the direction output of the host computer. However, the solution provided in this embodiment can be directly obtained and used, which improves the processing speed and reduces the demand for processing resources of the host computer.
所述参与定位卫星个数采用“ss”表示,用2个字节表示。用于综合判断 卫星信号强弱。The number of satellites participating in positioning is represented by "ss" and represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal.
所述卫星信号平均载噪比采用“nn”表示,用2个字节表示。用于综合判断卫星信号强弱。现有技术NMEA中并未定义此字段,需要上位机从多个GSV语句中分别读取多个卫星信号获取多个载噪比,再计算多个载噪比的平均值,增大了上位机的计算资源的需求。The average carrier-to-noise ratio of the satellite signal is represented by "nn", which is represented by 2 bytes. Used to comprehensively judge the strength of the satellite signal. This field is not defined in the prior art NMEA, and the host computer is required to read multiple satellite signals from multiple GSV sentences to obtain multiple carrier-to-noise ratios, and then calculate the average value of the multiple carrier-to-noise ratios, which increases the host computer Demand for computing resources.
所述备用信息可以采用“XXXX”表示,用4个字节表示。用于输出一些备用信息。The spare information can be represented by "XXXX", which is represented by 4 bytes. Used to output some spare information.
所述结束标识可以采用“*”表示,用1个字节表示。The end identifier can be represented by "*" and represented by 1 byte.
所述校验码可以采用“HH”表示,用2个字节表示。The check code can be represented by "HH" and represented by 2 bytes.
进一步的,所述分割符为逗号,分号,至少一个空格或者表示分割作用的符号。在本实施例中以逗号进行分割进行详细说明。例如输出语句中除所述语句起始符、所述结束标识和所述校验码之外的各字段之间用逗号进行分隔,即“$CCCCC,YYYYMMDDhhmmss,A/V,±lll.llllll,±yy.yyyyyy,±hhhh.h,kkk.k,bbb.b,ss,nn,XXXX*HH”采用10个逗号进行分隔。。Further, the delimiter is a comma, a semicolon, at least one space, or a symbol representing a delimiting function. In this embodiment, a comma is used for division for detailed description. For example, each field in the output sentence except the sentence start character, the end identifier and the check code is separated by a comma, that is, "$CCCCC, YYYYMMDDhhmmss, A/V, ±lll.llllll, ±yy.yyyyyy, ±hhhh.h, kkk.k, bbb.b, ss, nn, XXXX*HH" are separated by 10 commas. .
可选的,所述处理模块203,具体用于根据所述输出语句中包括的各个字段和所述分割符,采用所述待输出信息为每个字段赋值,赋值后的字段构成输出语句。Optionally, the processing module 203 is specifically configured to use the information to be output to assign a value to each field according to each field included in the output sentence and the separator, and the assigned fields form an output sentence.
上述定位芯片的信息处理的装置,通过根据预设规则,处理模块将所述待输出信息构造为固定长度的输出语句;输出模块输出所述输出语句,使得上位机获得定位芯片的输出语句之后,不需要进行进一步处理或者调整,即可支持上位机的应用需求,并且在很大程度上降低上位机处理资源的需求。In the above-mentioned information processing device for positioning chip, the processing module constructs the information to be output into a fixed-length output sentence according to preset rules; the output module outputs the output sentence so that the host computer obtains the output sentence of the positioning chip, No further processing or adjustment is required to support the application requirements of the upper computer, and to a large extent reduce the demand for processing resources of the upper computer.
图3是本发明一实施例提供的终端设备的示意图。如图3所示,该实施例的终端设备3包括:处理器301、存储器302以及存储在所述存储器302中并可在所述处理器301上运行的计算机程序303,例如定位芯片的信息处理的程序。所述处理器301执行所述计算机程序303时实现上述定位芯片的信息处理的方法实施例中的步骤,例如图1所示的步骤101至103。所述处理器301执 行所述计算机程序303时实现上述各装置实施例中各模块的功能,例如图2所示模块201至203的功能。Fig. 3 is a schematic diagram of a terminal device provided by an embodiment of the present invention. As shown in FIG. 3, the terminal device 3 of this embodiment includes: a processor 301, a memory 302, and a computer program 303 stored in the memory 302 and running on the processor 301, such as information processing of a positioning chip program of. When the processor 301 executes the computer program 303, the steps in the embodiment of the method for processing the information of the positioning chip are implemented, for example, steps 101 to 103 shown in FIG. 1. When the processor 301 executes the computer program 303, the functions of the modules in the foregoing device embodiments, for example, the functions of the modules 201 to 203 shown in FIG. 2 are realized.
示例性的,所述计算机程序303可以被分割成一个或多个程序模块,所述一个或者多个程序模块被存储在所述存储器302中,并由所述处理器301执行,以完成本发明。所述一个或多个程序模块可以是能够完成特定功能的一系列计算机程序指令段,该指令段用于描述所述计算机程序303在所述定位芯片的信息处理的装置或者终端设备3中的执行过程。例如,所述计算机程序303可以被分割成获取模块201,处理模块202,输出模块203,各模块具体功能如图2所示,在此不再一一赘述。Exemplarily, the computer program 303 may be divided into one or more program modules, and the one or more program modules are stored in the memory 302 and executed by the processor 301 to complete the present invention. . The one or more program modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution of the computer program 303 in the information processing device of the positioning chip or the terminal device 3. process. For example, the computer program 303 may be divided into an acquisition module 201, a processing module 202, and an output module 203. The specific functions of each module are shown in FIG. 2 and will not be repeated here.
所述终端设备3可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述终端设备可包括,但不仅限于,处理器301、存储器302。本领域技术人员可以理解,图3仅仅是终端设备3的示例,并不构成对终端设备3的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述终端设备还可以包括输入输出设备、网络接入设备、总线等。The terminal device 3 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The terminal device may include, but is not limited to, a processor 301 and a memory 302. Those skilled in the art can understand that FIG. 3 is only an example of the terminal device 3, and does not constitute a limitation on the terminal device 3. It may include more or less components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
所称处理器301可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。The so-called processor 301 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
所述存储器302可以是所述终端设备3的内部存储单元,例如终端设备3的硬盘或内存。所述存储器302也可以是所述终端设备3的外部存储设备,例如所述终端设备3上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器302还可以既包括所述终端设备3的内部存储单元也包括外部存储设备。所述存储器302用于存储所述计算机程序以及所述终端设备3所需的其他程序 和数据。所述存储器302还可以用于暂时地存储已经输出或者将要输出的数据。The memory 302 may be an internal storage unit of the terminal device 3, such as a hard disk or memory of the terminal device 3. The memory 302 may also be an external storage device of the terminal device 3, for example, a plug-in hard disk equipped on the terminal device 3, a smart memory card (Smart Media Card, SMC), and a Secure Digital (SD) Card, Flash Card, etc. Further, the memory 302 may also include both an internal storage unit of the terminal device 3 and an external storage device. The memory 302 is used to store the computer program and other programs and data required by the terminal device 3. The memory 302 can also be used to temporarily store data that has been output or will be output.
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and conciseness of description, only the division of the above functional units and modules is used as an example. In actual applications, the above functions can be allocated to different functional units, Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Formal realization can also be realized in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not detailed or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。A person of ordinary skill in the art may be aware that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered as going beyond the scope of the present invention.
在本发明所提供的实施例中,应该理解到,所揭露的装置/终端设备和方法,可以通过其它的方式实现。例如,以上所描述的装置/终端设备实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。In the embodiments provided by the present invention, it should be understood that the disclosed device/terminal device and method may be implemented in other ways. For example, the device/terminal device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units. Or components can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the various embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
所述集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实现上述实施例方法中的全部或部分流程,也可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述计算机可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,计算机可读介质不包括电载波信号和电信信号。If the integrated module/unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the present invention implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, it can implement the steps of the foregoing method embodiments. . Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory) , Random Access Memory (RAM, Random Access Memory), electrical carrier signal, telecommunications signal, and software distribution media, etc. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased in accordance with the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
以上所述实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围,均应包含在本发明的保护范围之内。The above-mentioned embodiments are only used to illustrate the technical solutions of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that it can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should be included in Within the protection scope of the present invention.

Claims (10)

  1. 一种定位芯片的信息处理的方法,其特征在于,包括:A method for information processing of a positioning chip, characterized in that it comprises:
    获取待输出信息;Obtain the information to be output;
    根据预设规则,将所述待输出信息构造为固定长度的输出语句;According to preset rules, constructing the information to be output into fixed-length output sentences;
    输出所述输出语句。The output sentence is output.
  2. 如权利要求1所述的定位芯片的信息处理的方法,其特征在于,所述获取待输出信息,包括:The method for processing information of a positioning chip according to claim 1, wherein said obtaining the information to be output comprises:
    将接收到的卫星信号进行解码,获取解码后的卫星定位信息,所述卫星定位信息为所述待输出信息。The received satellite signal is decoded, and the decoded satellite positioning information is obtained, where the satellite positioning information is the information to be output.
  3. 如权利要求2所述的定位芯片的信息处理的方法,其特征在于,所述输出语句中包含N个字段,每个字段所需字节数固定,所述N个字段之间的顺序不固定,N大于或等于1。The method for information processing of a positioning chip according to claim 2, wherein the output sentence contains N fields, each field requires a fixed number of bytes, and the order between the N fields is not fixed , N is greater than or equal to 1.
  4. 如权利要求3所述的定位芯片的信息处理的方法,其特征在于,所述输出语句中包括:语句起始符、时间、经度、纬度、结束标识和校验码字段,以及除所述语句起始符、所述结束标识和所述校验码之外的各字段之间进行分隔的分割符。The method for processing information of a positioning chip according to claim 3, wherein the output sentence includes: sentence start character, time, longitude, latitude, end identifier and check code fields, and except for the sentence A separator that separates fields other than the start character, the end identifier, and the check code.
  5. 如权利要求4所述的定位芯片的信息处理的方法,其特征在于,所述输出语句中还包括:信息标识、定位指示、高度、速度、方向、参与定位卫星个数、卫星信号平均载噪比和备用信息中至少一个字段。The method for information processing of a positioning chip according to claim 4, wherein the output sentence further includes: information identification, positioning indication, altitude, speed, direction, number of satellites participating in positioning, and average carrier noise of satellite signals At least one field in the ratio and spare information.
  6. 如权利要求5所述的定位芯片的信息处理的方法,其特征在于,所述根据预设规则,将所述待输出信息构造为固定长度的输出语句,包括:8. The method for processing information of a positioning chip according to claim 5, wherein said constructing said information to be output into a fixed-length output sentence according to a preset rule comprises:
    根据所述输出语句中包括的各个字段和所述分割符,采用所述待输出信息为每个字段赋值,赋值后的字段构成输出语句。According to each field included in the output sentence and the separator, the information to be output is used to assign a value to each field, and the assigned fields constitute an output sentence.
  7. 如权利要求6所述的定位芯片的信息处理的方法,其特征在于,所述分割符为逗号,分号,至少一个空格或者表示分割作用的符号。The method for processing information of a positioning chip according to claim 6, wherein the separator is a comma, a semicolon, at least one space, or a symbol representing a division effect.
  8. 一种定位芯片的信息处理的装置,其特征在于,包括:An information processing device for positioning a chip, characterized in that it comprises:
    获取模块,用于获取待输出信息;Obtaining module for obtaining information to be output;
    处理模块,用于根据预设规则,将所述待输出信息构造为固定长度的输出语句;A processing module, configured to construct the information to be output into fixed-length output sentences according to preset rules;
    输出模块,用于输出所述输出语句。The output module is used to output the output sentence.
  9. 一种终端设备,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如权利要求1至7任一项所述方法的步骤。A terminal device, comprising a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor executes the computer program as claimed in claims 1 to 7 Steps of any of the methods.
  10. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述方法的步骤。A computer-readable storage medium storing a computer program, wherein the computer program implements the steps of the method according to any one of claims 1 to 7 when the computer program is executed by a processor.
PCT/CN2019/126613 2019-01-31 2019-12-19 Positioning chip information processing method and terminal device WO2020155911A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910099451.8 2019-01-31
CN201910099451.8A CN109828290A (en) 2019-01-31 2019-01-31 The method and terminal device of the information processing of positioning chip

Publications (1)

Publication Number Publication Date
WO2020155911A1 true WO2020155911A1 (en) 2020-08-06

Family

ID=66862078

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/126613 WO2020155911A1 (en) 2019-01-31 2019-12-19 Positioning chip information processing method and terminal device

Country Status (2)

Country Link
CN (1) CN109828290A (en)
WO (1) WO2020155911A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109828290A (en) * 2019-01-31 2019-05-31 泰斗微电子科技有限公司 The method and terminal device of the information processing of positioning chip
CN112347801A (en) * 2020-10-27 2021-02-09 任玉海 Electronic chip information data analysis method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090091496A1 (en) * 2007-10-08 2009-04-09 Whitehead Michael L Gnss receiver and external storage device system and gnss data processing method
CN101446635A (en) * 2007-11-28 2009-06-03 中国科学院微电子研究所 Super low-power-consumption low-cost GPS chip framework for mobile facility
CN103399329A (en) * 2013-08-20 2013-11-20 中国科学院微电子研究所 GNSS (global navigation satellite system) receiver and intermediate frequency data processing method thereof
CN104656103A (en) * 2015-01-26 2015-05-27 东南大学 Wireless GPS positioning system and method based on Android mobile terminal
CN105005059A (en) * 2015-06-26 2015-10-28 泰斗微电子科技有限公司 Transmission method for original observed quantity data in ANDROID terminal, and corresponding terminal
CN107966721A (en) * 2018-01-08 2018-04-27 鞍山师范学院 A kind of Portable external Beidou navigation device based on Android terminal
CN109828290A (en) * 2019-01-31 2019-05-31 泰斗微电子科技有限公司 The method and terminal device of the information processing of positioning chip

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1619257A (en) * 2004-08-25 2005-05-25 天津汽车检测中心 Global positioning system and test detecting device for road
JP5374703B2 (en) * 2007-11-30 2013-12-25 測位衛星技術株式会社 Position information providing system and indoor transmitter
CN101527055A (en) * 2009-04-08 2009-09-09 北京四维图新科技股份有限公司 Operation monitoring method and operation monitoring system
CN102546812A (en) * 2012-01-18 2012-07-04 合众思壮北斗导航有限公司 Data transmission method, application server and system
CN103499975B (en) * 2013-10-18 2016-03-16 中测新图(北京)遥感技术有限责任公司 Based on the monitoring unmanned method and system of big-dipper satellite
DE102015111726A1 (en) * 2014-07-18 2016-01-21 Andre HERZOG Method for automating a process in construction machines and construction equipment as well as commercial vehicles for the transport of piece goods and / or bulk goods
CN105468797B (en) * 2014-08-22 2019-10-22 深圳市中兴微电子技术有限公司 A kind of information processing method and device
CN104950317A (en) * 2015-05-06 2015-09-30 青岛晓龙仪器有限公司 Ocean buoy realizing communication through Beidou satellite navigation system and using method of ocean buoy
CN105425253A (en) * 2015-12-02 2016-03-23 惠州Tcl移动通信有限公司 GPS information acquisition method and intelligent terminal
CN108776699B (en) * 2018-06-08 2021-06-08 北京华云星地通科技有限公司 Method and device for processing meteorological data and satellite remote sensing data

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090091496A1 (en) * 2007-10-08 2009-04-09 Whitehead Michael L Gnss receiver and external storage device system and gnss data processing method
CN101446635A (en) * 2007-11-28 2009-06-03 中国科学院微电子研究所 Super low-power-consumption low-cost GPS chip framework for mobile facility
CN103399329A (en) * 2013-08-20 2013-11-20 中国科学院微电子研究所 GNSS (global navigation satellite system) receiver and intermediate frequency data processing method thereof
CN104656103A (en) * 2015-01-26 2015-05-27 东南大学 Wireless GPS positioning system and method based on Android mobile terminal
CN105005059A (en) * 2015-06-26 2015-10-28 泰斗微电子科技有限公司 Transmission method for original observed quantity data in ANDROID terminal, and corresponding terminal
CN107966721A (en) * 2018-01-08 2018-04-27 鞍山师范学院 A kind of Portable external Beidou navigation device based on Android terminal
CN109828290A (en) * 2019-01-31 2019-05-31 泰斗微电子科技有限公司 The method and terminal device of the information processing of positioning chip

Also Published As

Publication number Publication date
CN109828290A (en) 2019-05-31

Similar Documents

Publication Publication Date Title
WO2020155911A1 (en) Positioning chip information processing method and terminal device
US20230041991A1 (en) Density-based dynamic geohash
CN111767144B (en) Transaction route determination method, device, equipment and system for transaction data
CN112667415B (en) Data calling method and device, readable storage medium and electronic equipment
CN109471893B (en) Network data query method, equipment and computer readable storage medium
CN110619039A (en) Method and device for checking house property information, storage medium and electronic equipment
CN110134721B (en) Data statistics method and device based on bitmap and electronic equipment
CN110995849B (en) Transmission and storage method of vector data position information
CN114265966A (en) Data processing method and device, electronic equipment and storage medium
CN111611337B (en) Terminal data processing system
CN113869455A (en) Unsupervised clustering method and device, electronic equipment and medium
CN108665221B (en) Performance data processing method and device, computer equipment and readable medium
CN104461451A (en) Longitude, latitude and altitude data processing method suitable for 8-bit single chip microcomputer
WO2023045873A1 (en) Application program translation method and apparatus
CN118036592A (en) Regional membership error correction method, system, storage medium and electronic equipment
CN114566244B (en) Electronic medical record quality evaluation method, device and computer readable storage medium
US20210311970A1 (en) Methods and system of using n-gram analysis to discover points of interest in a given geographic region
CN116910107B (en) Track data extraction method, track calculation method, track data extraction device, track data storage medium and track calculation device
CN112073202B (en) Information generation method and device, electronic equipment and computer readable medium
CN115792983A (en) Grid coding and code conversion method of GNSS differential enhanced service
CN116431630A (en) Data processing method based on privacy calculation and related equipment
CN114253977A (en) Data processing method and device, electronic equipment and storage medium
CN117478723A (en) Data transmission method, device, equipment and storage medium
CN116561077A (en) dbf file importing method, device, equipment and storage medium
CN110751565A (en) Data calculation method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19913861

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19913861

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 19913861

Country of ref document: EP

Kind code of ref document: A1