Technical requirements for information sensoring for meat and vegetable distribution traceability system
Some standard content:
1CS 65. 020, 20
People's Republic of China Domestic Trade Industry Standard SB/T10682—2012
Technical requirements for information sensoring for meat and vegetable distribution traceability system Issued on 2012-03-15
Ministry of Commerce of the People's Republic of China
Implementation on 2012-06-01
This standard was drafted in accordance with the rules given in GB/T1.1—2009. This standard was proposed and funded by the Ministry of Commerce of the People's Republic of China. Drafting unit of this standard: China Agricultural University Drafters of this standard: Ma Daokun, Li Daoliang, Ding Qisheng, Zhang Haodian, Wei Renshang. SB/T10682-2012
1 Scope
Technical requirements for information perception in meat and vegetable circulation traceability system
This standard specifies the basic requirements for sensor equipment and radio frequency technology used in meat and vegetable circulation traceability system. This standard is applicable to information collection in meat and vegetable circulation traceability system. 2 Normative references
SB/T 10682—2012
The following documents are indispensable for the application of this document. For all active references, only the dated versions apply to this document. For undated references, the latest versions (including all amendments) apply to this document. GB/T7722 Electronic table scale
GB/T 7723
Fixed electronic weighing instrumentbzxZ.net
GB/T7724 Electronic weighing instrument
GB/T7551 Weighing sensor
1S07816 International standard for smart card
IEEE802.15.4/ZigBee short-distance optical communication protocolIEEE1451.2 Networked intelligent sensor connection standardISO 10536: Identification card-contactless integrated circuit cardISO7816: Identification card-integrated circuit card with contactsISO 7816-1: specifies the physical characteristics of the card.ISO7816-2: specifies the size and location of the card.ISO7816-3: specifies the electrical signal and transmission protocol of the card.ISO7816-1: specifies the commands for the industry conversion of the card3 Terms and definitions
The following terms and definitions apply to this document. 3.1
Intelligent traceability scale is an electronic scale that integrates weighing, contactless IC card reading and writing, voucher printing and other functions, and can receive and transmit relevant information through wired or wireless methods. At the same time, the weighing instrument (terminal) can be connected to a printer to print traceability tickets. 3.2
Intelligent reader and writer terminal is a mobile or fixed device that has functions such as barcode reading, RFI and IC card reading and writing, handwriting input, etc. and can transmit information through wireless or wired methods.
Radio frequency identification
Radio frequency identification is a contactless motion identification technology. It can automatically identify the target object and obtain relevant data through radio frequency signals. It can identify high-speed moving objects and can identify multiple tags at the same time. It is quick and convenient to operate. 1
SB/T 10682--2012
Integrated circuit cardIntegrated circuit card is a card that records and transmits information by embedding one or more integrated circuit chips on polyvinyl chloride (PVC, a plastic product) material. The size complies with international standards (such as IS07810). 3.5
Smart card CPU card
The integrated circuit in the card has a microprocessor CPU, a memory unit (including random access memory RAM, program memory ROM (FI.ASH), user data memory EEFROM) and a core operating system (COS). It not only has data storage functions, but also has command processing and data security protection functions. 3.6
Service cardservice card
Identity certificate and record held by meat and vegetable circulation operators, and carrier for transmitting transaction process information. In accordance with the information recording format and encryption rules stipulated by the Ministry of Commerce, it is supervised by the upper-level commercial management departments of the pilot cities and uniformly distributed to meat and vegetable operators. Generally, IC-card or CPU-card is adopted, with unified identification and style nationwide. Information is initialized by the circulation node traceability subsystem and used nationwide. 4 Storage medium
4.1 Technical specification requirements
4. 1. 1 IC card
(1) Model: Milareane IC S50, Mifarcune IC S70 card; (2) Storage capacity: 8Kbit;
(3) Operating frequency: 13.56MHz;
(1) Communication speed: 106Kboud;
(5) Read and write run-off: 2.5cm-~10cm; (6) Read time: 1mS~2mS
(7) Operating temperature: -20℃~85℃, (8) Erasing and writing times: >100000 times;
(9) Data preservation: >10 years;
(10) Specifications; IS0 standard card 85.5×54×0.80/thick-card 85.6×54×1.80 tmm;(11) Packaging material: PVC, PET. 0.13 copper coin;(12) Packaging process: ultrasonic automatic wire implantation/dynamic welding:(13) Manufacturing standard: ISO10536:
(14) Area division: EEPROM is divided into 16 sectors, each sector consists of 4 blocks, each block has 16 bytes, and block 3 of each sector (i.e. the fourth block) contains the password A (6 bytes), access control (4 bytes) and password B (6 bytes) of the sector. It is a special block, and the other three blocks are general data blocks:
(15) IC card writing instructions: 1C card starts writing from absolute block number 1. 4. 1.2 CPU card
(1) ISO 10536, ISO 7816, ISO 7816 1, ISO 7816-2, ISO 7816-3, ISO 7816-4;
(2) ROM: 32K;
(3) RAM: 256 bytes;
(4) EEPROM: at least 8K bytes;
(5) Erase and write life: more than 100,000 times;
(6) Data retention time: 10 years;
(7) Operating voltage: 5V + 10%
(8) Working current: less than 10mA;
(9) Operating temperature: -25℃~85℃;
(10) Storage temperature: -40℃~85℃;
(11) Communication protocol: ISO 7816,T=,T=1;(12)FMCOS is recommended for COS of CPU card;SB/T10682—2012
(13)The storage area is divided by the file system, the reading and writing of data information is controlled by COS, and the information clearing plan adopts cyclic erasure (14)The information reading and writing encryption method uses multiple keys and dynamic keys;(15) COS is stored in ROM, RAM is the data buffer area, and user data, encrypted information, etc. are stored in EEPROM. 4.1.3RFID tag
(1)Operating frequency: 13.56MHz or 915MHz;(2)Protocol: IS0-18000;
(3)Memory shape: EEPROM, readable/erasable;(4)Storage capacity: 96-bit EPC code, 61-bit unique ID number, 224-bit user data area;4.2Service card information storage format
4.2.1S50 Card writing standard
Table 1 Operator information
Absolute block number
Absolute block number
REC*8+12
REC*8113
E-body code
Operator name
Operator name
ID number
ID number
Contact phone number
Transaction month
Transaction number
Transaction party
Supplier customer code
Commodity code
Writing position
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the third position of the block
Table 2 Transaction details
Write position
Starting from the th position of the block
Starting from the ninth position
Starting from the fastest position
Starting from the first position of the block
Starting from the first position of the block
Expanded by city
Card issuance number
Refer to coding specifications
Name of the cardholder
Total 32 digits
Total 18 digits
Mobile or landline
YYYYMMDD
Up to 4 transactions
"1\ represents wholesale,
"2\ represents retail
Refer to coding specifications
Refer to coding specifications
SB/T 10682—2012
Absolute block number
REC*8+13
REC *8+13
REC * 8+-14
REC*8+16
REC *8+17
REC*8+17
REC*8+ 17
REC*8- 18||t t||REC*81 20
REC*8+20
REC 8+21
Brand code
Name of supplier
(Name of farm)
Name of supplier
(Name of farm)
Name of supplier
(Name of farm)
Transaction weight
Transaction quantity
Transaction amount
Traceability code
Batch code
Table 2 (continued)
Writing position
Starting from the ninth position of the block
Starting from the eleventh position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block
Starting from the first position of the block| |tt||Starting from the fifth digit
Starting from the ninth digit of the block
Starting from the -th digit of the block
Starting from the -th digit of the block
Starting from the eighth digit of the block
Starting from the 1st digit of the block
Brand code
Write to the supplier when retailing
Write to the breeding farm when wholesale
Total 38 digits
Total 20 digits
Total 16 digits
Driver when wholesale
Write to the person when wholesale
Refer to the shortened code specification
8*8+1*8
Note: This standard includes card writing at the wholesale and retail links. *The mark indicates that the content of the block can be converted into an integer in hexadecimal to save space. REC represents the transaction number 1. Two digits are reserved for the brand code, which can be defined by each city. If not needed, it can be defaulted to \00". The transaction quantity, transaction weight, and transaction amount are all stored in numbers. The transaction quantity of live pigs may be 0.5 heads. In this case, it is generally converted into an integer and stored as 0.5×10. The maximum transaction quantity for each transaction is 429496729.5 heads; similarly, the transaction amount is stored with 2 digits after the decimal point. , can be multiplied by 100 and then converted into an integer for storage. The traceability code is 20 digits long. Since it is all numbers, but the maximum supported by the 8-byte long integer is 18446744073709551615, the number of digits may not be sufficient. Consider splitting the traceability code into two parts, namely 18-1-2, that is, the first 18 digits plus the last 2 digits. In this way, only 8 bytes plus 1 byte, a total of 9 bytes, are needed for storage. Every three sectors are stored as a transaction record in a loop, and finally a sector is reserved for expansion. 4. 2.2 CPU card writing standard
4.2.2.1 Card structure
The file is under the MF main directory. See Table 3.
Table 3 CPU card standard structure
File description
User basic information file
Transaction statistics file
Transaction information file
Extended file
File name
Size (bytes)
10 000
All file reading and writing operations require a key. The file security mechanism is guaranteed by an external authentication key, and the key is marked 0XO. The default key can be determined by the Ministry of Commerce, and its length is 32 bits. All operations are performed using fixed-length writes in character format. If the field is not filled with enough content, it is filled with spaces.
iKAoNiiKAa-
4.2.2.2 Card Content
SB/T10682—2012
The user definition information that needs to be included in the internal card is divided into two parts: user basic information and transaction information. Among them, the length of user basic information is set to 120 bytes, as shown in Table 4. Table 4 Basic user information
Card type
Customer principal code
Customer name
Customer ID card
Customer contact number
Customer type
Specify the purpose of the card, using characters, for example, vegetables are represented by SC, meat is represented by RT
Card number
Use encoding standards
Customer type, for example, 01 represents the buyer, 2 represents the seller, and 03 represents the seller
Length (character book)
User transaction information is divided into two parts, of which the first part is transaction statistics information, with a length set to 20 bytes, including transaction date (8 bytes, format YYYYMMIDD), transaction number (2 bytes, stored in integer), transaction type (1 byte) transaction market principal code (4 bytes) Table 5 Transaction statistics
Transaction period
Number of transactions
Transaction method
Transaction period; format (YYYYMMDI)
No more than 50
For example, vegetables: 1 represents the origin of the product, 2 represents the upstream wholesale farm
For meat: 1 represents wholesale, 2 represents retail Length (section)
The second part is the transaction details data, which is a cyclic content, with a length of 10,000 bytes, and each record length is 200 bytes. If the number of digits is insufficient, add spaces, and a total of 50 records can be written. Table 6 Transaction details data
Tracing code
Batch code
For each transaction, follow the & coding rules to write the traceability code. No matter meat or vegetables, no new tracking code is generated in the retail stage, and the tracking code generated during the last wholesale is used. The batch code is established for the first batch of vegetables.The code used to distinguish batches when recording accounts shall be implemented in accordance with the rules of the Coding Regulations. For meat, the batches shall be distinguished by the quarantine certificate number of the origin of pigs or the quarantine certificate number of meat products. Length (bytes)
SB/T 10682—2012
Seller's main body code
Seller's main body name
Production base name
Market code where the transaction occurred
Production base name
Commodity unified code
Origin unified code
Transaction quantity
Transaction weight
Transaction unit price
Table 6 (continued)
Record the main body code of the seller. For example; when wholesale meat and vegetables are sold in the wholesale market, record the wholesaler code
Record the main name of the seller. For example: when wholesale meat and vegetables are sold in the wholesale market, record the name of the wholesaler
Record the name of the pig breeding base or the vegetable and plant baseRecord the code of the market where the meat and vegetable transaction takes place. It may be the code of the slaughterhouse, the wholesale market, or the distribution company
Record the name of the market where the meat transaction takes place. It may be the name of the slaughterhouse, the wholesale market, or the distribution company
Generate a unified commodity code according to the coding rulesGenerate a unified origin code according to the coding rulesRecord the quantity of the commodity traded in this transaction
Record the weight of the commodity traded in this transaction
Record the transaction price of the commodity in this transactionWhen wholesale meat requires
Length (words)
Note: The transaction quantity is the number of pieces, expressed as an integer. The transaction weight and transaction amount can retain 2 decimal places and can be multiplied by 100 and then converted into an integer for storage. 4.2.2.3
Extension file
This part is 1 096 bytes long and has not been used before the month. It is used for future expansion of the system. 4.3 Technical requirements for information storage
4.3.1 Space allocation
Basic information storage must start from the effective header of this type of storage medium. The organization of other parts is parsed by white description. 4.3.2 Encryption method
The communication between the card and the reader adopts the internationally accepted 1DES and RES confidential cross algorithm. 4.3.3 Addition and deletion rules
Transaction record requirements When the card memory is full, the previously recorded information is overwritten in chronological order, and the recorded data is deleted cyclically. Support commands to eliminate the entire transaction record space. 5 Sensing equipment
5.1 Intelligent Chaoyuan scale
5.1.1 Measurement requirements
As a weighing and measuring tool, electronic scales belong to national mandatory inspection equipment. It must comply with relevant national standards and be equipped with a verification certificate issued by a provincial or higher quality inspection department. (1) Manufacturing enterprise: Manufacturing metering instrument certificate; (2) Electronic scale: "Measuring instrument type approval certificate"; (3) Electronic scale: GB/T 7722, GB/T 7723; (1) Electronic weighing instrument (terminal): GB/T7724; (5) Weighing sensor: GB/T7551.
5.1.2 Environmental adaptability requirements
SB/T 10682—2012
The terminal (instrument) and the scale sensor must meet the IP68 protection level to meet the harsh environment of meat and vegetable circulation.
According to food safety and hygiene requirements, if the scale is in direct contact with the agricultural products being weighed, the scale is required to use a stainless steel table. 5.1.3 Functional requirements
(1) Weighing display function;
(2) Electronic settlement transaction function;
(3) Support barcode printing;
(4) Able to exchange with the node system in real time through wireless or wired mode; (5) Have good functional extensibility.
5.1.4 Communication requirements
Support one of the transaction modes specified in this standard, including MifarconcIC S50, MifareuncICS70 card, CPU card or UHF915MHz1SO-180006C RFID tag, and use with IC card and CPU card. 5.2 Other intelligent reading and writing terminals
5.2.1 Environmental adaptability requirements
In order to meet the harsh use environment requirements in the meat and vegetable circulation field, the reading and writing terminal must meet the following basic conditions: (1) Operating temperature: -25℃ to 85℃:
(2 Storage temperature: -40℃ to 85℃;
(3) Humidity: 5%RH~95RH (no condensation); (4) Protection level: IP64,
5.2.2 Functional requirements
(1) It must support the reading and writing of IC cards and CPU cards specified in this standard, and can optionally support other - one or more reading methods, such as one-dimensional, two-dimensional barcode scanning. RFID tags, etc.
(2) Support one or more communication transmission methods, such as; GPRS/Zigbee/WiFi/433M/Bluetooth/USB/UART/Ethernet, etc. (3) The operation is friendly and has good functional extensibility.RFID tags, etc.
(2) Support one or more communication transmission methods, such as; GPRS/Zigbee/WiFi/433M/Bluetooth/USB/UART/Ethernet, etc. (3) Friendly operation and good functional scalability.RFID tags, etc.
(2) Support one or more communication transmission methods, such as; GPRS/Zigbee/WiFi/433M/Bluetooth/USB/UART/Ethernet, etc. (3) Friendly operation and good functional scalability.
Tip: This standard content only shows part of the intercepted content of the complete standard. If you need the complete standard, please go to the top to download the complete standard document for free.