CN105653288B - A kind of method and apparatus of module product software automatic identification hardware - Google Patents

A kind of method and apparatus of module product software automatic identification hardware Download PDF

Info

Publication number
CN105653288B
CN105653288B CN201511030784.3A CN201511030784A CN105653288B CN 105653288 B CN105653288 B CN 105653288B CN 201511030784 A CN201511030784 A CN 201511030784A CN 105653288 B CN105653288 B CN 105653288B
Authority
CN
China
Prior art keywords
frequency range
hardware
qcn
band information
automatic identification
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201511030784.3A
Other languages
Chinese (zh)
Other versions
CN105653288A (en
Inventor
杨兰全
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gosuncn IOT Technology Co.,Ltd.
Original Assignee
Gaoxing Wulian Technology Co Ltd
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 Gaoxing Wulian Technology Co Ltd filed Critical Gaoxing Wulian Technology Co Ltd
Priority to CN201511030784.3A priority Critical patent/CN105653288B/en
Publication of CN105653288A publication Critical patent/CN105653288A/en
Application granted granted Critical
Publication of CN105653288B publication Critical patent/CN105653288B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management

Abstract

The invention discloses a kind of method and apparatus of module product software automatic identification hardware, includes the logic level for reading the frequency range detection pin of all hardware, inquire frequency range map real table, obtain the corresponding band information of hardware;According to band information obtained, the corresponding QCN of each frequency range is set and is saved.The present invention realizes that corresponding QCN is arranged in same set of software code, the hardware of automatic identification different radio frequency frequency range, so that the production of module, upgrading, the maintenance of software code become simple, reliable.

Description

A kind of method and apparatus of module product software automatic identification hardware
Technical field
The present invention relates to a kind of method and apparatus of module product software automatic identification hardware.
Background technique
Different country and area are often sold to a module product, but the communication of every country, area distribution Frequency range may be different, this just needs to issue the version of different communication frequency range, to adapt to local network.It is answered in traditional module In, for the hardware of different frequency range, there is corresponding software version, as shown in Figure 1.From schematic diagram it can be seen that, this mould Formula have the shortcomings that two it is main:
1. a hardware and software version more than, in production and software upgrade process, their corresponding relationship is easy to mistake.
2. software version is more, the workload of software programming and maintenance is increased.
Summary of the invention
The present invention provides a kind of method and apparatus of module product software automatic identification hardware, it is intended to solve the prior art In, same module product is easy to happen the problem of corresponding mistake there are multiple software versions and hardware in escalation process, and needs Software version write respectively to different hardware, the problem of the heavy workload of software programming and maintenance.
In order to solve the above problem, the present invention provides a kind of method of module product software automatic identification hardware, includes:
The logic level for reading the frequency range detection pin of all hardware, inquires frequency range map real table, it is corresponding to obtain hardware Band information;
According to band information obtained, the corresponding QCN of each frequency range is set and is saved.
Further, the frequency range detection pin of different hardware is provided with different frequency range configuration resistance.
Further, resistance also is configured comprising detection frequency range, when mistake occurs for frequency range configuration resistance, starting configuration resistance More positive order;
Further, in the case where configuring resistance corrigendum, software is instructed by AT deletes former band information file, reads Frequency range detects the new logic level of pin, inquires frequency range map real table, obtains the corresponding new band information of hardware, setting The corresponding QCN of the frequency range is simultaneously saved.
Further, the band information file can be checked in file system, or be inquired by AT instruction.
And in order to solve the above problem, the present invention provides a kind of device of module product software automatic identification hardware, packet Contain:
Band information obtains module, and the frequency range for reading all hardware detects the logic level of pin, and inquiry frequency range is reflected Truth table is penetrated, the corresponding band information of hardware is obtained;
QCN setup module, for the corresponding QCN of the frequency range being arranged and saves according to band information obtained.
Further, the frequency range detection pin of different hardware is provided with different frequency range configuration resistance.
Further, also comprising configuration resistance detection module, whether the frequency range configuration resistance for detecting hardware is correct, and When mistake occurs for frequency range configuration resistance, the instruction of starting change frequency range configuration resistance.
It further, also include QCN correction module, for being referred to after being set as correct frequency range configuration resistance by AT It enables and deletes former band information file, read the new logic level of frequency range detection pin, inquire frequency range map real table, obtain hard The corresponding new band information of part is arranged the corresponding QCN of the frequency range and saves according to new band information obtained.
Further, the band information file can be checked in file system, or be inquired by AT instruction.
The method and apparatus for the module product software automatic identification hardware that the present invention realizes, using same set of software code, The hardware of automatic identification different radio frequency frequency range, is arranged corresponding QCN, so that the production of module, upgrading, the maintenance of software code becomes It obtains simply, reliably.
Detailed description of the invention
Fig. 1 is module product software existing in the prior art and hardware correspondence diagram;
Fig. 2 is a kind of method flow signal for module product software automatic identification hardware that the embodiment of the present invention one provides Figure;
Fig. 3 is a kind of method flow signal of module product software automatic identification hardware provided by Embodiment 2 of the present invention Figure;
Fig. 4 is a kind of apparatus structure signal for module product software automatic identification hardware that the embodiment of the present invention three provides Figure;
Fig. 5 is a kind of apparatus structure schematic diagram for module product software automatic identification hardware that inventive embodiments four provide;
Fig. 6 is invention software schematic diagram corresponding with hardware relationship.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element Be conducive to explanation of the invention, itself there is no specific meanings.Therefore, " module " can mixedly make with " component " With.
Embodiment one
A kind of method that the embodiment of the present invention one provides module product software automatic identification hardware includes with reference to Fig. 2:
S101 reads the logic level of the frequency range detection pin of all hardware, inquires frequency range map real table, obtain hardware Corresponding band information.
As shown in fig. 6, each hardware is both provided with a configuration resistance, due to the difference of the configuration resistance of different hardware, The frequency range detection pin voltage of each hardware is different, so each frequency range detection pin voltage can represent the hardware version.It reads The logic level of frequency range detection pin is taken, if having 4 kinds of combinations using 2 pins, the range of value is 0b00-0b11, if Using 3 pins, then share 8 kinds of combinations, the range of value is 0b000-0b111, according to band support number choose frequency range Detect the number of pin.Frequency range map real table, for the corresponding band information of different frequency range detection pin voltage and QCN to be arranged The one-to-one relationship of file detects the logical value of pin according to the frequency range of reading, corresponding frequency range is found in truth table Information, so inquiry frequency range map real table, can get the corresponding band information of hardware.
S102 is arranged the corresponding QCN of the frequency range and saves according to the corresponding band information of hardware obtained.
Specifically, corresponding QCN is arranged for each band information obtained, then the band information that QCN is arranged is saved In band information file.Same software reads different Q CN, that is, can recognize the corresponding hardware version of different Q CN, and described in generation The corresponding upgrade software code of hardware version smoothly carries out software upgrading for the corresponding hardware.
When carrying out software upgrading to hardware every time, first detect whether there are QCN message file, when there are QCN texts for confirmation When part, then detect whether that there are the corresponding band information files of QCN file, as the QCN and corresponding band information file In the presence of all, software upgrading can be directly carried out, to be every according to this method if QCN or band information file are not present The corresponding QCN file of a hardware setting.
The method of the software automatic identification hardware of implementation above uses same set of software generation when upgrading to hardware Code, software, which passes through, identifies QCN, the hardware of automatic identification different radio frequency frequency range, so that the production of module, upgrading, software code Maintenance becomes simple, reliable.The process for eliminating artificial corresponding identification software and hardware is avoided and some is produced due to wrong version Raw staging error problem.
Embodiment two
A kind of method that the present embodiment two provides module product software automatic identification hardware includes with reference to Fig. 3:
S201 checks that frequency range configures resistance;
Specifically, the frequency range detection pin of each hardware is provided with corresponding frequency range configuration resistance, the frequency between hardware Section configuration resistance is different, so keep the frequency range pin voltage of different hardware different, institute's pin voltage generation in different frequency bands The different hardware of table.Resistance is configured by detection frequency range, would know that the communication frequency band information of the hardware, and judge the band information Whether configured QCN file configures correctly.
S202 judges whether frequency range configuration resistance is correct, if configuration is correct, executes S205, if incorrect, holds Row S203;
S203, the instruction of starting change frequency range configuration resistance;
S204 is instructed by AT and is deleted band information file;
Specifically, by AT instruction delete be configured mistake QCN band information file.
S205 reads the logic level of frequency range detection pin, inquires frequency range map real table, obtains the corresponding communication of hardware Band information;
Specifically, software reading is the frequency range detection pin logic level for correcting frequency range configuration resistance, then inquire frequently Section map real table obtains the corresponding correct band information of hardware.
S206 is arranged the corresponding QCN of the frequency range and saves according to band information obtained.
Specifically, corresponding QCN is arranged for the hardware band information, then protects according to the correct band information of acquisition The band information is deposited in band information file.
The method of the software automatic identification hardware of implementation above is possible to the frequency range provided with mistake in hardware and configures resistance When, resistance is configured by corrigendum frequency range, the corresponding QCN of band information is reset, realizes error correction, and to hard after corrigendum Part carries out automatic identification.
Embodiment three
The device that the present embodiment three provides a kind of module product software automatic identification hardware includes with reference to Fig. 4: frequency range letter Breath obtains module 10, QCN setup module 20.
Band information obtains module 10, and the logic level of pin is detected for reading frequency range, inquires frequency range map real table, Obtain the corresponding band information of hardware.
Specifically, each hardware is both provided with a configuration resistance, due to configuring the difference of resistance, the frequency range of each hardware It is all different to detect pin voltage.Frequency range map real table, for the frequency range detection pin voltage and QCN file to be arranged one by one Corresponding relationship.Band information obtains the logic level that module 10 reads frequency range detection pin, inquires frequency range map real table, can obtain Obtain the corresponding band information of hardware.
QCN setup module 20, for the corresponding QCN of the frequency range being arranged and saves according to band information obtained.
Specifically, QCN setup module 20 is that band information obtains each band information setting of the acquisition of module 10 accordingly Then the band information that QCN is arranged is stored in band information file by QCN.Software reads QCN, can obtain described QCN pairs The hardware answered, and smoothly software upgrading is carried out for the corresponding hardware.
When carrying out software upgrading to hardware every time, first detect whether there are QCN message file, when there are QCN texts for confirmation When part, then detect whether that there are the corresponding band information files of QCN file, as the QCN and corresponding band information file In the presence of all, software upgrading can be directly carried out, to be every according to this method if QCN or band information file are not present Corresponding QCN file is arranged in the band information of a hardware.
The device of the software automatic identification hardware of implementation above uses same set of software generation when upgrading to hardware Code, software, which passes through, identifies QCN, the hardware of automatic identification different radio frequency frequency range, so that the production of module, upgrading, software code Maintenance becomes simple, reliable.The process for eliminating artificial corresponding identification software and hardware is avoided and some is produced due to wrong version Raw staging error problem.
Example IV
The device that the present embodiment four provides a kind of module product software automatic identification hardware includes with reference to Fig. 5: frequency range letter Breath obtains module 10, QCN setup module 20, and configuration resistance detection module 30 and QCN correction module 40.
Since band information acquisition module 10, QCN setup module 20 are identical as embodiment three, resistance inspection is described in this emphasis Survey module 30 and QCN correction module 40.
Resistance detection module 30 is configured, it is whether correct that the frequency range for detecting hardware configures resistance, and configures electricity in frequency range When mistake occurs for resistance, the instruction of starting change frequency range configuration resistance.
QCN correction module 40, for being instructed by AT and deleting former frequency range letter after being set as correct frequency range configuration resistance File is ceased, the new logic level of frequency range detection pin is read, inquires frequency range map real table, obtains the corresponding new frequency of hardware Segment information is arranged the corresponding QCN of the frequency range and saves according to new band information obtained.
Specifically, the frequency range detection pin of each hardware is provided with corresponding frequency range configuration resistance, so detection hardware The pin voltage of frequency range, different frequency range pin voltages represent different hardware.Configuration resistance detection module 30 detects frequency range and matches Resistance is set, judges whether configured QCN file configures correctly.If it is incorrect that frequency range configures resistance, start change frequency range Configure the instruction of resistance.After configuring correct frequency range configuration resistance for the hardware frequency range, QCN correction module 40 is deleted by AT instruction Except former band information file, the new logic level of frequency range detection pin is read, frequency range map real table is inquired, obtains hardware pair The new band information answered is arranged the corresponding QCN of the frequency range and saves according to new band information obtained.Then software Hardware is identified again through QCN and generates the software update code of corresponding hardware.
The device of the software automatic identification hardware of implementation above is possible to the frequency range provided with mistake in hardware and configures resistance When, resistance is configured by corrigendum frequency range, QCN is reset, realizes error correction, and known automatically to the hardware after corrigendum Not, software upgrading then is carried out to correct hardware.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in a storage medium In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of module product software automatic identification hardware, it is characterised in that include:
The logic level for reading all hardware frequency range detection pin, inquires frequency range map real table, obtains the corresponding frequency range of hardware Information;
According to band information obtained, the corresponding QCN of each frequency range is set and is saved;
Same software reads the different QCN, to identify hardware version corresponding to the different QCN, generate with it is described The corresponding upgrade software code of hardware version;
Software upgrading is carried out to corresponding hardware according to the upgrade software code.
2. the method for module product software automatic identification hardware according to claim 1, which is characterized in that different hardware Frequency range detection pin is provided with different frequency range configuration resistance.
3. the method for module product software automatic identification hardware according to claim 2, which is characterized in that also comprising step Rapid: detection frequency range configures resistance, judges whether frequency range configuration resistance is correct;When mistake occurs for frequency range configuration resistance, starting is matched Set resistance more positive order.
4. the method for module product software automatic identification hardware according to claim 3, which is characterized in that also comprising step Suddenly, it in the case where the instruction of starting change frequency range configuration resistance, is instructed by AT and deletes former band information file, read frequency range The new logic level of pin is detected, frequency range map real table is inquired, the corresponding new band information of hardware is obtained, which is set The corresponding QCN of section is simultaneously saved.
5. the method for module product software automatic identification hardware according to claim 1, which is characterized in that the frequency range Message file can be checked in file system, or be inquired by AT instruction.
6. a kind of device of module product software automatic identification hardware, it is characterised in that include:
Band information obtains module, and the logic level of frequency range detection pin is read for software, frequency range map real table is inquired, obtains Obtain the corresponding band information of hardware;
QCN setup module, for the corresponding QCN of the frequency range being arranged and saves according to band information obtained, same software is read The different QCN is taken, to identify hardware version corresponding to the different QCN, is generated corresponding with the hardware version Upgrade software code;
Software upgrading is carried out to corresponding hardware according to the upgrade software code.
7. the device of module product software automatic identification hardware according to claim 6, which is characterized in that different hardware Frequency range detection pin is provided with different frequency range configuration resistance.
8. the device of module product software automatic identification hardware according to claim 6, which is characterized in that also comprising configuration Resistance detection module, whether the frequency range for detecting hardware configures resistance correct, and when mistake occurs for frequency range configuration resistance, opens The instruction of dynamic change frequency range configuration resistance.
9. the device of module product software automatic identification hardware according to claim 8, which is characterized in that also include QCN Correction module, for being instructed by AT and deleting former band information file, read frequency after being set as correct frequency range configuration resistance The new logic level of section detection pin, inquires frequency range map real table, the corresponding new band information of hardware is obtained, according to institute The new band information obtained, is arranged the corresponding QCN of the frequency range and saves.
10. the device of module product software automatic identification hardware according to claim 6, which is characterized in that the frequency Segment information file can be checked in file system, or be inquired by AT instruction.
CN201511030784.3A 2015-12-31 2015-12-31 A kind of method and apparatus of module product software automatic identification hardware Active CN105653288B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511030784.3A CN105653288B (en) 2015-12-31 2015-12-31 A kind of method and apparatus of module product software automatic identification hardware

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511030784.3A CN105653288B (en) 2015-12-31 2015-12-31 A kind of method and apparatus of module product software automatic identification hardware

Publications (2)

Publication Number Publication Date
CN105653288A CN105653288A (en) 2016-06-08
CN105653288B true CN105653288B (en) 2019-06-21

Family

ID=56491186

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511030784.3A Active CN105653288B (en) 2015-12-31 2015-12-31 A kind of method and apparatus of module product software automatic identification hardware

Country Status (1)

Country Link
CN (1) CN105653288B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106294687A (en) * 2016-08-08 2017-01-04 深圳酷比通信股份有限公司 The processing method of a kind of inquiry mobile phone mainboard project support frequency range and system
CN108551346B (en) * 2018-04-17 2020-08-18 深圳市沃特沃德股份有限公司 Method and device for controlling frequency band in communication terminal
CN109639309B (en) * 2018-12-10 2021-01-05 惠州Tcl移动通信有限公司 Frequency band acquisition method of terminal equipment, terminal equipment and storage medium
CN111176702B (en) * 2019-12-16 2023-08-08 京信网络系统股份有限公司 Firmware upgrading method, device, computer equipment and storage medium
CN113660045A (en) * 2021-07-15 2021-11-16 上海移远通信技术股份有限公司 Communication module detection method, mobile terminal, electronic device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882940A (en) * 2010-06-24 2010-11-10 复旦大学 Ultra-wideband multi-mode automatic identification dual-link radio-frequency receiver front-end chip
CN103675531A (en) * 2013-11-27 2014-03-26 华为终端有限公司 Circuit for recognizing classes of devices, circuit board, terminal equipment and signal controller
CN105101479A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Adaptive configuration method and device for network frequency band of mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882940A (en) * 2010-06-24 2010-11-10 复旦大学 Ultra-wideband multi-mode automatic identification dual-link radio-frequency receiver front-end chip
CN103675531A (en) * 2013-11-27 2014-03-26 华为终端有限公司 Circuit for recognizing classes of devices, circuit board, terminal equipment and signal controller
CN105101479A (en) * 2015-05-29 2015-11-25 努比亚技术有限公司 Adaptive configuration method and device for network frequency band of mobile terminal

Also Published As

Publication number Publication date
CN105653288A (en) 2016-06-08

Similar Documents

Publication Publication Date Title
CN105653288B (en) A kind of method and apparatus of module product software automatic identification hardware
CN109101381A (en) Configuration file update method, system, electronic equipment and storage medium
CN104850301A (en) Method and system for classifying application icons on system desktop
CN105760184A (en) Method and device for loading component
CN107193612A (en) The version upgrading method and device of a kind of mobile terminal
CN103458004A (en) Internet of things-based device subscription information changing method and equipment
CN104461667A (en) Root method and device for intelligent terminal
CN101661396A (en) Testing system and method thereof for quickly obtaining testing programs to test mainboard
US9846609B2 (en) System and method for testing configuration and operation of I/O devices
CN105354702A (en) Conflict detection method and device for schedules
CN117033251B (en) Regression testing method and device for multi-version system of mobile electronic equipment
CN102026144A (en) Roaming performance test method, equipment and system thereof
CN106919407B (en) The method that computer embeds product information synchronized update
CN104270269A (en) Method for automatically configuring network cards
CN111880754A (en) Automatic test method, medium, computer device and system for printing device
CN110401934B (en) Method for managing equipment, management equipment and computer readable storage medium
US8412180B2 (en) Method for generating a signal train which can be played back on a tester for testing a mobile radio
CN104536897A (en) Automatic testing method and system based on keyword
CN103914377A (en) Interface testing method and device
CN101426220A (en) Method, apparatus and system for base station cutover
CN103428745A (en) Test system and test method of Cu interface between UICC (Universal Integrated Circuit Card) and WCDMA (Wideband Code Division Multiple Access) mobile terminal
CN108132793A (en) Transmission, upgrade method and the device of eMMC online upgrading files
US9930521B2 (en) Method for updating preferred roaming list of UIM card
US20200396294A1 (en) Measurement cloud setup for coupling measurement device settings across multiple instruments and/or measurement sites and corresponding handling method
CN107291610A (en) Testing case management and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: MINDRAY building, 518000 Guangdong city of Shenzhen province Nanshan District Guangdong streets high-tech industrial park of science and technology 12 South Road 2 B zone C

Applicant after: Shenzhen Zhongxing Wulian Technology Co.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District High-tech Park North Beihuan Road No. 9018 building A block 9 layer's innovation

Applicant before: SHENZHEN ZTEWELINK TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 518000 Guangdong, Shenzhen, Nanshan District, Guangdong Province, Nanshan District high tech Industrial Park, South Korea 12 road, MINDRAY Building 2 floor B area, zone 12

Applicant after: Gaoxing Wulian Technology Co.,Ltd.

Address before: 518000 Guangdong, Shenzhen, Nanshan District, Guangdong Province, Nanshan District high tech Industrial Park, South Korea 12 road, MINDRAY Building 2 floor B area, zone 12

Applicant before: Shenzhen Zhongxing Wulian Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 606, block a, sharing building, No. 78, Keyuan North Road, songpingshan community, Xili street, Nanshan District, Shenzhen, Guangdong

Patentee after: Gosuncn IOT Technology Co.,Ltd.

Address before: 518000 Guangdong, Shenzhen, Nanshan District, Guangdong Province, Nanshan District high tech Industrial Park, South Korea 12 road, MINDRAY Building 2 floor B area, zone 12

Patentee before: Gaoxing Wulian Technology Co.,Ltd.

CP03 Change of name, title or address