CN116866312A - Automatic searching system for cereal quarantine inspection samples - Google Patents

Automatic searching system for cereal quarantine inspection samples Download PDF

Info

Publication number
CN116866312A
CN116866312A CN202311108599.6A CN202311108599A CN116866312A CN 116866312 A CN116866312 A CN 116866312A CN 202311108599 A CN202311108599 A CN 202311108599A CN 116866312 A CN116866312 A CN 116866312A
Authority
CN
China
Prior art keywords
server
quarantine
sub
sample
warehouse
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.)
Granted
Application number
CN202311108599.6A
Other languages
Chinese (zh)
Other versions
CN116866312B (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.)
Ji'nan Zhongyi Technology Co ltd
Original Assignee
Ji'nan Zhongyi 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 Ji'nan Zhongyi Technology Co ltd filed Critical Ji'nan Zhongyi Technology Co ltd
Priority to CN202311108599.6A priority Critical patent/CN116866312B/en
Publication of CN116866312A publication Critical patent/CN116866312A/en
Application granted granted Critical
Publication of CN116866312B publication Critical patent/CN116866312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/02Agriculture; Fishing; Mining
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/668Internet protocol [IP] address subnets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/69Types of network addresses using geographic information, e.g. room number
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/695Types of network addresses using masks or ranges of addresses

Abstract

The invention relates to the technical field of warehouse searching and discloses an automatic searching system for a cereal quarantine inspection sample. Firstly, distributing IP addresses to each sub-server based on an intelligent cloud server in a DHCP mode; and further, based on the partition of the quarantine warehouse, the sub-servers corresponding to the quarantine warehouse are used for distributing IP addresses to the sample storage boxes in each partition in the quarantine warehouse. And establishing data connection between the intelligent cloud server and the sub-server and between the sub-server and the quarantine warehouse according to the IP address, so as to realize transmission sharing of data information. Furthermore, the user can obtain the IP address which is required to be inquired by scanning the bar code label provided by the intelligent cloud server and iteratively inquire the corresponding cereal quarantine inspection sample information based on the IP address, so that the portability and the instantaneity of cereal quarantine searching are improved.

Description

Automatic searching system for cereal quarantine inspection samples
Technical Field
The invention relates to the technical field of storage searching, in particular to an automatic searching system for a cereal quarantine inspection sample.
Background
In the grain quarantine inspection sample storage work, the conditions that the quantity of the quarantine inspection samples is too large, and the quarantine inspection samples cannot be found are often generated. Much time, effort and personnel are often spent in order to find a quarantine test sample, causing much trouble to warehouse manager personnel and grain quarantine personnel. Effective quarantine inspection sample management is an important means for cereal quarantiners to increase their competitiveness. Therefore, how to quickly find out the quarantine inspection sample to be found becomes a common concern for quarantine warehouse management departments.
The wireless communication network solution starts to be focused by more and more enterprises, and is also applied to warehouse management, so that the wireless communication technology realizes real-time data transmission while solving the problem of difficulty in searching quarantine warehouse management operators.
According to the distributed cloud sample management method provided in CN111223537A, samples are classified in multiple stages according to multiple labels, and the samples are searched step by step according to the labels during searching, so that the process is complicated; in addition, the management method has great limitation because of a plurality of classifications, and the user is required to submit corresponding limit information of not less than 1 item in the process of searching again.
Disclosure of Invention
Aiming at the defects of the prior art, the invention provides an automatic searching system for cereal grain quarantine inspection samples, which utilizes a radio frequency identification technology to identify and track the quarantine inspection samples to be searched by establishing, storing and classifying the information of the cereal grain quarantine inspection samples in a quarantine warehouse, thereby realizing the rapid querying function of the quarantine inspection samples, improving the management efficiency of the quarantine warehouse and promoting the improvement of the comprehensive management level of the quarantine warehouse.
In order to solve the technical problem of insufficient searching efficiency, the invention provides the following technical scheme:
an automatic searching system for cereal grain quarantine inspection samples comprises: the system comprises a host computer, an intelligent cloud server, a sub-server and a quarantine warehouse;
the host end comprises: the system comprises a management portal, a transmission module and a radio frequency identification module;
further, the management portal is used for providing a user with a mobile phone terminal interface to search the sample data information;
further, the radio frequency identification module is used for scanning a bar code of a cereal quarantine inspection sample;
further, the transmission module is used for being connected with the intelligent cloud server and receiving data information from the intelligent cloud server;
the intelligent cloud server includes: the system comprises a transmission module, a searching module, an address allocation module and a database;
further, the transmission module is used for connecting with a host end and a sub-server according to a TCP/IP protocol and transmitting data;
further, the searching module is used for searching according to the IP address;
further, the address allocation module is used for allocating IP addresses to the host end and the sub-servers;
further, the database is used for storing data information of the cereal grain quarantine inspection sample;
the sub-server includes: the system comprises an address distribution module, a database module and a transmission module;
further, the address allocation module is used for allocating an IP address to each storage box in the quarantine warehouse;
further, the database module is used for storing data information of the cereal grain quarantine inspection sample;
further, the transmission module is used for being connected with a quarantine warehouse and an intelligent cloud server and transmitting data;
the quarantine warehouse comprises: the system comprises a radio frequency identification module, a warehouse-in and warehouse-out management module, a positioning module, a transmission module and a division module;
further, the radio frequency identification module comprises a bar code label and a bar code identifier;
further, the warehouse-in and warehouse-out management module is used for controlling the warehouse-in and warehouse-out process of quarantine inspection samples;
further, the positioning module is used for partitioning the goods shelves in the warehouse and acquiring the position information of the goods shelves;
further, the transmission module is used for transmitting quarantine inspection sample information of the current quarantine warehouse to the sub-server;
further, the dividing module is used for distributing IP addresses according to the storage boxes of quarantine test samples;
the embodiment discloses an automatic searching method for a cereal quarantine inspection sample, which comprises the following steps:
quarantine warehouse partitioning stage:
s1, dividing the shelves by a positioning module in a quarantine warehouse according to the types of grain quarantines, recording the position of each shelf in the division, and transmitting the shelf position information and the corresponding grain type information to a warehouse-in and warehouse-out management module;
s2, planning IP addresses according to the number of the partitions and the number of samples which can be stored in each partition;
s3, a dividing module of the quarantine warehouse allocates an IP address to the goods shelf and each sample storage box in the goods shelf according to the goods shelf classification information and the sample quantity information which can be stored by the goods shelf and determines a subnet mask;
the steps of assigning an IP address and determining a subnet mask are as follows:
establishing a binary value table:
matching the decimal value with the value in the table, finding out one item with the minimum difference between the decimal value and the value in the table, subtracting the two numbers from each other to obtain 1 if the current value is larger than the item, sequentially comparing the subtracted remainder according to the subsequent table items, obtaining 0 if the current value is smaller than the item, and sequentially comparing the subtracted remainder with the subsequent table items of the item;
s31, determining how many partitions exist in the current warehouse, dividing a shelf in each partition into N sub-network segments according to the partition condition, wherein each sub-network segment represents one partition;
s32, determining the number of IP addresses required by each partition according to the number of sample storage boxes in the shelf in each partition;
for N subareas, setting that each subarea contains at most m samples;
obtaining a binary representation of N and a binary representation of m by searching a binary value table;
obtaining the IP address of each sample storage box based on the IP address of the current sub-server;
s34, setting the address of a sub-server to which the current quarantine warehouse belongs as 191.168.128.1;
10 partitions are set in the quarantine warehouse, and 10 obtains a binary number column as 1010 through table lookup;
setting 1010 the partition number of the current quarantine warehouse, which is shown as the 10 th partition;
setting up to 250 samples in each partition, and obtaining a binary number list 11111010 by 250 through table lookup;
set 11111010 to sample serial number, denoted as sample 250;
the binary combination of the partition number + sample sequence number is denoted as 1010 11111010;
the IP address of sample No. 250 of partition 10 is:
each octet is converted to a decimal 191.168.138.251;
Further, since there are set up to 250 samples per partition, 250<256, 256 is the 8 th power of 2, the subnet mask should end with 8 0 s, the remainder being padded with 1 s, consisting of 24 1 s and 8 0 s. The decimal conversion is 255.255.255.0;
s4, after the IP addresses of the sample storage boxes in each partition are determined, the samples are placed into the corresponding sample storage boxes according to the sequence and the types of the sample storage boxes in sequence;
and (3) a quarantine inspection sample warehousing stage:
s1, after a grain quarantine procedure is completed, matching the current grain quarantine information with information in a positioning module by an in-out warehouse management module;
s2, after the matching is successful, the sample is transmitted to a sample storage box in a corresponding area through a conveyor belt;
s3, attaching a corresponding bar code label on the storage box after the storage box is placed in the storage box, and adding information of a current quarantine inspection sample in a database based on the bar code label, wherein the quarantine inspection sample information comprises grain types, grain quarantine information, bar code label numbers and IP addresses of the corresponding sample storage boxes;
s4, after the sample is put in storage, the sample information of the current quarantine inspection sample and the subnet mask are transmitted to a sub-server through a transmission module;
s5, the sub-server stores the basic information of the quarantine inspection sample in a database, gathers the bar code label of the quarantine inspection sample and the IP address of the corresponding bar code label, transmits the summarized bar code label to the intelligent cloud server, and transmits the bar code label of the sample to a host end of a user through the intelligent cloud server;
searching a cereal quarantine inspection sample:
s1, a user scans a bar code label to be queried through a radio frequency identification module in a host end, sends a query command to an intelligent cloud server, and transmits a scanning result to the intelligent cloud server;
s2, after receiving a query command from a host end, the intelligent cloud server matches information of the bar code scanned by the user in a database;
s3, transmitting the IP address obtained by matching to a searching module, and searching through the searching module;
searching the IP address by the searching module:
s31, matching the current IP with the corresponding sub-server, wherein the specific steps are as follows:
setting the IP address currently searched as 191.168.138.12;
the IP addresses of the 4 sub-servers are set as follows:
A:191.168.144.1 B:191.168.160.1 C:191.168.128.1 D:191.168.176.1
the searching module needs to match the current IP with the corresponding sub-server according to the longest prefix matching principle;
because the first 16 bits of the IP addresses of the current 4 sub-servers are the same, only the last 16 bits are needed to be judged;
the binary result of the 16-bit conversion after the A sub-server is as follows: 10010000 00000001;
the post 16-bit conversion binary result of the B sub-server is as follows: 10100000 00000001;
the 16-bit conversion binary result after the C sub-server is: 10000000 00000001;
the post 16-bit conversion binary result of the D sub-server is as follows: 10110000 00000001;
the 16-bit conversion binary result after the current IP is: 10001010 00001100;
the current IP is the same as the first 20 bits of the C sub-server, the first 19 bits of the C sub-server and the first 18 bits of the B, D sub-server;
the current IP belongs to the C sub-server;
s32, calculating a partition number and a sample serial number in the current IP according to the subnet mask stored in the current sub-server based on the current sub-server;
the steps of calculating the partition number and the sample serial number according to the subnet mask are as follows:
the IP address and the subnet mask phase are combined with the dividable area code;
the IP address is: 191.168.138.12 subnet mask is: 255.255.255.0;
the conversion into binary bitwise and result is:
&the method comprises the following steps: 1&1=1、1&0=0、0&1=0、0&0=0;
The IP was converted to decimal, divisible partition number 138, and was initially 128, so the IP belongs to partition 10;
then inverting the subnet mask according to the bit and the IP address phase and obtaining a sample serial number;
the subnet mask bit-wise inverting yields 0.0.0.255 with the IP address phase and results:
since all 0's represent local addresses are not used in the computer network and 1's represent server addresses, the current warehouse sample serial number needs to be subtracted from the sample serial number calculation;
a sample number of 12, which represents the IP, is converted to a decimal available number of 11;
s4, after the IP address matching is completed, the sub-server transmits all data information corresponding to the IP address to the intelligent cloud server;
s5, forwarding the data transmitted by the sub-server to a host end of the user.
Compared with the prior art, the invention provides an automatic searching system for cereal quarantine inspection samples, which has the following beneficial effects:
according to the invention, by partitioning in advance and providing a unique bar code label for each sample storage box, the rapidness and reliability of searching for the quarantine inspection samples are improved, and the searching efficiency of the cereal quarantine inspection samples is improved.
The invention realizes the partition management of the warehouse by partitioning the quarantine warehouse in advance, distributing a corresponding number of sample storage boxes for each partition and distributing a corresponding IP address for each sample storage box.
According to the invention, samples are placed into the corresponding sample storage boxes according to the classification of the samples during sample storage, and the bar codes are attached to the sample storage boxes, so that the reliability of sample storage is ensured.
According to the invention, the sample information, the corresponding IP address and the bar code information are transmitted to the server for storage, so that the searching efficiency is improved and the safety of data is ensured.
According to the invention, through scanning of the labels by the user and real-time query of the IP address obtained by scanning by the intelligent cloud server, the efficiency of sample searching is optimized, and the accuracy of sample searching is improved.
Drawings
FIG. 1 is a schematic diagram of a user sample information searching flow structure according to the present invention;
FIG. 2 is a schematic diagram of a quarantine warehouse partition flow structure of the invention;
FIG. 3 is a schematic diagram of a grain quarantine inspection sample warehousing flow path structure according to the invention;
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
An automatic searching system for cereal grain quarantine inspection samples comprises: the system comprises a host computer, an intelligent cloud server, a sub-server and a quarantine warehouse;
the host end comprises: the system comprises a management portal, a transmission module and a radio frequency identification module;
further, the management portal is used for providing a user with a mobile phone terminal interface to search the sample data information;
further, the radio frequency identification module is used for scanning a bar code of a cereal quarantine inspection sample;
further, the transmission module is used for being connected with the intelligent cloud server and receiving data information from the intelligent cloud server;
the intelligent cloud server includes: the system comprises a transmission module, a searching module, an address allocation module and a database;
further, the transmission module is used for connecting with a host end and a sub-server according to a TCP/IP protocol and transmitting data;
further, the searching module is used for searching according to the IP address;
further, the address allocation module is used for allocating IP addresses to the host end and the sub-servers;
further, the database is used for storing data information of the cereal grain quarantine inspection sample;
the sub-server includes: the system comprises an address distribution module, a database module and a transmission module;
further, the address allocation module is used for allocating an IP address to each storage box in the quarantine warehouse;
further, the database module is used for storing data information of the cereal grain quarantine inspection sample;
further, the transmission module is used for being connected with a quarantine warehouse and an intelligent cloud server and transmitting data;
the quarantine warehouse comprises: the system comprises a radio frequency identification module, a warehouse-in and warehouse-out management module, a positioning module, a transmission module and a division module;
further, the radio frequency identification module comprises a bar code label and a bar code identifier;
further, the warehouse-in and warehouse-out management module is used for controlling the warehouse-in and warehouse-out process of quarantine inspection samples;
further, the positioning module is used for partitioning the goods shelves in the warehouse and acquiring the position information of the goods shelves;
further, the transmission module is used for transmitting quarantine inspection sample information of the current quarantine warehouse to the sub-server;
further, the dividing module is used for distributing IP addresses according to the storage boxes of quarantine test samples;
the embodiment discloses an automatic searching method for a cereal quarantine inspection sample, which comprises the following steps:
quarantine warehouse partitioning stage:
s1, dividing the shelves by a positioning module in a quarantine warehouse according to the types of grain quarantines, recording the position of each shelf in the division, and transmitting the shelf position information and the corresponding grain type information to a warehouse-in and warehouse-out management module;
s2, planning IP addresses according to the number of the partitions and the number of samples which can be stored in each partition;
s3, a dividing module of the quarantine warehouse allocates an IP address to the goods shelf and each sample storage box in the goods shelf according to the goods shelf classification information and the sample quantity information which can be stored by the goods shelf and determines a subnet mask;
the steps of assigning an IP address and determining a subnet mask are as follows:
establishing a binary value table:
matching the decimal value with the value in the table, finding out one item with the minimum difference between the decimal value and the value in the table, subtracting the two numbers from each other to obtain 1 if the current value is larger than the item, sequentially comparing the subtracted remainder according to the subsequent table items, obtaining 0 if the current value is smaller than the item, and sequentially comparing the subtracted remainder with the subsequent table items of the item;
s31, determining how many partitions exist in the current warehouse, dividing a shelf in each partition into N sub-network segments according to the partition condition, wherein each sub-network segment represents one partition;
s32, determining the number of IP addresses required by each partition according to the number of sample storage boxes in the shelf in each partition;
for N subareas, setting that each subarea contains at most m samples;
obtaining a binary representation of N and a binary representation of m by searching a binary value table;
obtaining the IP address of each sample storage box based on the IP address of the current sub-server;
s34, setting the address of a sub-server to which the current quarantine warehouse belongs as 191.168.128.1;
10 partitions are set in the quarantine warehouse, and 10 obtains a binary number column as 1010 through table lookup;
setting 1010 the partition number of the current quarantine warehouse, which is shown as the 10 th partition;
setting up to 250 samples in each partition, and obtaining a binary number list 11111010 by 250 through table lookup;
set 11111010 to sample serial number, denoted as sample 250;
the binary combination of the partition number + sample sequence number is denoted as 1010 11111010;
the IP address of sample No. 250 of partition 10 is:
191.168.138.251 converted into a decimal every eight bits;
further, since there are set up to 250 samples per partition, 250<256, 256 is the 8 th power of 2, the subnet mask should end with 8 0 s, the remainder being padded with 1 s, consisting of 24 1 s and 8 0 s. The decimal conversion is 255.255.255.0;
s4, after the IP addresses of the sample storage boxes in each partition are determined, the samples are placed into the corresponding sample storage boxes according to the sequence and the types of the sample storage boxes in sequence;
and (3) a quarantine inspection sample warehousing stage:
s1, after a grain quarantine procedure is completed, matching the current grain quarantine information with information in a positioning module by an in-out warehouse management module;
s2, after the matching is successful, the sample is transmitted to a sample storage box in a corresponding area through a conveyor belt;
s3, attaching a corresponding bar code label on the storage box after the storage box is placed in the storage box, and adding information of a current quarantine inspection sample in a database based on the bar code label, wherein the quarantine inspection sample information comprises grain types, grain quarantine information, bar code label numbers and IP addresses of the corresponding sample storage boxes;
s4, after the sample is put in storage, the sample information of the current quarantine inspection sample and the subnet mask are transmitted to a sub-server through a transmission module;
s5, the sub-server stores the basic information of the quarantine inspection sample in a database, gathers the bar code label of the quarantine inspection sample and the IP address of the corresponding bar code label, transmits the summarized bar code label to the intelligent cloud server, and transmits the bar code label of the sample to a host end of a user through the intelligent cloud server;
searching a cereal quarantine inspection sample:
s1, a user scans a bar code label to be queried through a radio frequency identification module in a host end, sends a query command to an intelligent cloud server, and transmits a scanning result to the intelligent cloud server;
s2, after receiving a query command from a host end, the intelligent cloud server matches information of the bar code scanned by the user in a database;
s3, transmitting the IP address obtained by matching to a searching module, and searching through the searching module;
searching the IP address by the searching module:
s31, matching the current IP with the corresponding sub-server, wherein the specific steps are as follows:
setting the IP address currently searched as 191.168.138.12;
the IP addresses of the 4 sub-servers are set as follows:
A:191.168.144.1 B:191.168.160.1 C:191.168.128.1 D:191.168.176.1
the searching module needs to match the current IP with the corresponding sub-server according to the longest prefix matching principle;
because the first 16 bits of the IP addresses of the current 4 sub-servers are the same, only the last 16 bits are needed to be judged;
the binary result of the 16-bit conversion after the A sub-server is as follows: 10010000 00000001;
the post 16-bit conversion binary result of the B sub-server is as follows: 10100000 00000001;
the 16-bit conversion binary result after the C sub-server is: 10000000 00000001;
the post 16-bit conversion binary result of the D sub-server is as follows: 10110000 00000001;
the 16-bit conversion binary result after the current IP is: 10001010 00001100;
the current IP is the same as the first 20 bits of the C sub-server, the first 19 bits of the C sub-server and the first 18 bits of the B, D sub-server;
the current IP belongs to the C sub-server;
s32, calculating a partition number and a sample serial number in the current IP according to the subnet mask stored in the current sub-server based on the current sub-server;
the steps of calculating the partition number and the sample serial number according to the subnet mask are as follows:
the IP address and the subnet mask phase are combined with the dividable area code;
the IP address is: 191.168.138.12 subnet mask is: 255.255.255.0;
the conversion into binary bitwise and result is:
&the method comprises the following steps: 1&1=1、1&0=0、0&1=0、0&0=0;
The IP was converted to decimal, divisible partition number 138, and was initially 128, so the IP belongs to partition 10;
then inverting the subnet mask according to the bit and the IP address phase and obtaining a sample serial number;
the subnet mask bit-wise inverting yields 0.0.0.255 with the IP address phase and results:
since all 0's represent local addresses are not used in the computer network and 1's represent server addresses, the current warehouse sample serial number needs to be subtracted from the sample serial number calculation;
a sample number of 12, which represents the IP, is converted to a decimal available number of 11;
s4, after the IP address matching is completed, the sub-server transmits all data information corresponding to the IP address to the intelligent cloud server;
s5, forwarding the data transmitted by the sub-server to a host end of the user.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (8)

1. An automatic searching method for a cereal grain quarantine inspection sample is characterized by comprising the following steps:
s1, partitioning a quarantine warehouse according to grain types;
s2, after the quarantine warehouse is partitioned, quarantine inspection samples after the quarantine procedure is completed are stored in corresponding sample storage boxes according to grain type arrangement;
s3, after the quarantine test samples are put in storage, bar code labels are attached to the corresponding sample storage boxes, and the information of the quarantine test samples is stored in a database;
s4, information in the database is summarized and transmitted to a sub-server, and the sub-server transmits bar codes and IP address information in the information to the intelligent cloud server after processing;
s5, the intelligent cloud server forwards the information from the sub-server to the user;
s6, the user can query the data transmitted by the intelligent cloud server in real time;
the method comprises the steps of carrying out partition management on all sample storage boxes to be stored in a quarantine warehouse, wherein each area is used as a subnet area, calculating the number of the sample storage boxes in the area, further distributing corresponding IP addresses for each sample storage box, realizing sample management by distributing corresponding IP addresses for each storage box, and distributing the IP addresses, wherein the steps of:
s21, the sub-server acquires the IP address of the sub-server and divides the area according to the IP address of the sub-server;
s22, calculating the existence of a plurality of subareas in the current warehouse and calculating the number of sample storage boxes in each subarea;
s23, establishing a binary value table, and converting the calculated partition number and sample storage number into binary values;
s24, combining the converted binary system to obtain a binary system, and converting the IP address of the sub-server into 2 system;
s25, adding the obtained binary number sequence and the binary number sequence of the sub-server to obtain the IP address of each sample storage box.
2. The automatic searching method for cereal grain quarantine inspection samples according to claim 1, wherein the method comprises the following steps:
establishing a binary value table:
matching the decimal value with the value in the table, finding out one item with the minimum difference between the decimal value and the value in the table, subtracting the two numbers from each other to obtain 1 if the current value is larger than the item, sequentially comparing the subtracted remainder according to the subsequent table items, obtaining 0 if the current value is smaller than the item, and sequentially comparing the subtracted remainder with the subsequent table items of the item;
setting a subnet mask, and determining the partition where the IP address is and the sample number through the subnet mask and the IP address phase.
3. The automatic searching method for cereal grain quarantine inspection samples according to claim 2, wherein searching the sample information contained in the IP by the IP address comprises the steps of:
matching with the corresponding sub-server based on the current IP;
matching the current IP with the corresponding sub-server according to the longest prefix matching principle;
based on the current sub-server, determining the partition and the sample number of the sub-network mask stored in the current sub-server;
the steps of calculating the partition number and the sample serial number according to the subnet mask are as follows:
dividing the IP address and the subnet mask layer into a partition number, subtracting the initial number from the obtained partition number to determine the partition number of the current sample;
and then inverting the subnet mask by bits and the IP address phase to obtain the sample number.
4. The automatic searching method for cereal grain quarantine inspection samples according to claim 1, wherein the sub-server obtains the own IP address of the sub-server from the intelligent cloud server by adopting a DHCP dynamic IP address obtaining mode; and the sub-server distributes IP for the sample storage box in the current management area according to the IP and the Internet equipment condition.
5. The automatic searching method for cereal grain quarantine inspection samples according to claim 1, wherein after obtaining the IP, a data transmission connection between the intelligent cloud server and the sub-server and between the quarantine warehouse and the corresponding sub-server is established by adopting a TCP/IP mode.
6. A system for implementing the automated inspection sample lookup method of cereal grains of any of claims 1-5. The method is characterized in that: the system comprises a host end, an intelligent cloud server, a sub-server and a quarantine warehouse;
the host side comprises: a transmission module, a radio frequency identification module;
the radio frequency identification module is used for scanning a bar code of a cereal quarantine inspection sample;
the transmission module is used for being connected with the intelligent cloud server and receiving data information from the intelligent cloud server;
the intelligent cloud server comprises a transmission module, a searching module, an address distribution module and a database;
the transmission module is used for connecting with the host end and the sub-server according to the TCP/IP protocol and transmitting data;
the address allocation module is used for allocating IP addresses to the host end and the sub-servers;
the searching module is used for searching according to the IP address;
the database is used for storing data information of the cereal quarantine inspection sample;
the sub-server includes: the system comprises an address distribution module, a database module and a transmission module;
the address allocation module is used for allocating an IP address to each storage box in the quarantine warehouse;
the database module is used for storing data information of the cereal quarantine inspection sample;
the transmission module is used for connecting with the quarantine warehouse and the intelligent cloud server and transmitting data;
the quarantine warehouse comprises: the system comprises an input-output management module, a positioning module, a transmission module and a division module;
the warehouse-in and warehouse-out management module is used for controlling the warehouse-in and warehouse-out process of quarantine inspection samples;
the positioning module is used for partitioning the goods shelves in the warehouse and acquiring the position information of the goods shelves;
the transmission module is used for transmitting quarantine inspection sample information of the current quarantine warehouse to the sub-server;
the dividing module is used for distributing IP addresses according to storage shelves of quarantine test samples.
7. The system of claim 6, further comprising a management portal for displaying the retrieved quarantine inspection sample information data.
8. The system of claim 6, wherein the lookup module retrieves an IP address comprises the steps of:
matching the current IP with the corresponding sub-server;
based on the current sub-server, the partition number and sample sequence number in the current IP are calculated from the subnet mask stored in the current sub-server.
CN202311108599.6A 2023-08-31 2023-08-31 Automatic searching system for cereal quarantine inspection samples Active CN116866312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311108599.6A CN116866312B (en) 2023-08-31 2023-08-31 Automatic searching system for cereal quarantine inspection samples

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311108599.6A CN116866312B (en) 2023-08-31 2023-08-31 Automatic searching system for cereal quarantine inspection samples

Publications (2)

Publication Number Publication Date
CN116866312A true CN116866312A (en) 2023-10-10
CN116866312B CN116866312B (en) 2023-11-17

Family

ID=88232654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311108599.6A Active CN116866312B (en) 2023-08-31 2023-08-31 Automatic searching system for cereal quarantine inspection samples

Country Status (1)

Country Link
CN (1) CN116866312B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195937A (en) * 2010-03-10 2011-09-21 鸿富锦精密工业(深圳)有限公司 Machine station positioning system and method
CN105763670A (en) * 2016-04-08 2016-07-13 北京搜狐新媒体信息技术有限公司 Method and device for allocating IP address to container
CN106251108A (en) * 2016-08-03 2016-12-21 杭州图钉网络科技有限公司 A kind of leaflet intelligent warehousing system and management method
CN106504155A (en) * 2016-10-20 2017-03-15 徐州赛欧电子科技有限公司 A kind of intelligent medicine fetching system and control method
CN109741081A (en) * 2019-02-27 2019-05-10 贵州黔昊农业科技发展有限公司 A kind of agricultural product quality supervision traceability system based on block chain
CN111223537A (en) * 2020-01-14 2020-06-02 北京唐颐惠康生物医学技术有限公司 Distributed cloud sample management method and system
CN111652337A (en) * 2020-05-25 2020-09-11 内蒙古农业大学 Novel audible electronic nutrition label for food and information processing method
KR20210136234A (en) * 2020-05-07 2021-11-17 임대환 Method And System for Managing Distribution based on Cyber Physical System

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102195937A (en) * 2010-03-10 2011-09-21 鸿富锦精密工业(深圳)有限公司 Machine station positioning system and method
CN105763670A (en) * 2016-04-08 2016-07-13 北京搜狐新媒体信息技术有限公司 Method and device for allocating IP address to container
CN106251108A (en) * 2016-08-03 2016-12-21 杭州图钉网络科技有限公司 A kind of leaflet intelligent warehousing system and management method
CN106504155A (en) * 2016-10-20 2017-03-15 徐州赛欧电子科技有限公司 A kind of intelligent medicine fetching system and control method
CN109741081A (en) * 2019-02-27 2019-05-10 贵州黔昊农业科技发展有限公司 A kind of agricultural product quality supervision traceability system based on block chain
CN111223537A (en) * 2020-01-14 2020-06-02 北京唐颐惠康生物医学技术有限公司 Distributed cloud sample management method and system
KR20210136234A (en) * 2020-05-07 2021-11-17 임대환 Method And System for Managing Distribution based on Cyber Physical System
CN111652337A (en) * 2020-05-25 2020-09-11 内蒙古农业大学 Novel audible electronic nutrition label for food and information processing method

Also Published As

Publication number Publication date
CN116866312B (en) 2023-11-17

Similar Documents

Publication Publication Date Title
CN102523314B (en) Identify the method and apparatus of efficient destination server
CN104732368A (en) Order route system and method
US20070143236A1 (en) Methods and apparatus for automatic classification of text messages into plural categories
CN101841520A (en) Domain name system and information processing method and device for domain name system
CN107562743B (en) Data storage method and device, and data search request processing method and device
CN104378452A (en) Method, device and system for domain name resolution
CN112347377A (en) IP address field searching method, service scheduling method, device and electronic equipment
CN101043346A (en) Method and system for adding label for contacts
CN104820643A (en) Method and apparatus for establishing connection between user equipment and smart device
CN108268216B (en) Data processing method, device and server
CN108694533A (en) Stock-taking system
CN105630804A (en) Associated address determination method and apparatus
CN102307250A (en) Method and device for searching IP (Internet Protocol) address
CN107644017A (en) The querying method and device of journal file
CN116866312B (en) Automatic searching system for cereal quarantine inspection samples
CN110365541B (en) Method for generating corresponding relation in gateway, and method and device for sending instruction
CN105392117A (en) Method and device for querying short-distance object
CN102542307A (en) Method, equipment and system for checking and examining product information
US10025859B2 (en) Method and system for second-degree friend query
CN112202610B (en) Terminal model identification system and identification method based on MAC address
CN102195937A (en) Machine station positioning system and method
CN115002656A (en) Method and device for determining distribution address
CN109889448B (en) Method and device for shunting network traffic
CN111615174B (en) Method for identifying wireless network, terminal device and computer readable storage medium
CN113992579A (en) Routing table entry storage method, routing table entry searching method and routing table entry searching device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant