CN111846683B - Control system for intelligent classification dustbin - Google Patents

Control system for intelligent classification dustbin Download PDF

Info

Publication number
CN111846683B
CN111846683B CN202010714080.2A CN202010714080A CN111846683B CN 111846683 B CN111846683 B CN 111846683B CN 202010714080 A CN202010714080 A CN 202010714080A CN 111846683 B CN111846683 B CN 111846683B
Authority
CN
China
Prior art keywords
module
kky
equipment
post
interface
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
CN202010714080.2A
Other languages
Chinese (zh)
Other versions
CN111846683A (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.)
Jiangsu Wandefu Intelligent Equipment Co ltd
Original Assignee
Jiangsu Wonderful Public Facility 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 Jiangsu Wonderful Public Facility Technology Co ltd filed Critical Jiangsu Wonderful Public Facility Technology Co ltd
Priority to CN202010714080.2A priority Critical patent/CN111846683B/en
Publication of CN111846683A publication Critical patent/CN111846683A/en
Application granted granted Critical
Publication of CN111846683B publication Critical patent/CN111846683B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B65CONVEYING; PACKING; STORING; HANDLING THIN OR FILAMENTARY MATERIAL
    • B65FGATHERING OR REMOVAL OF DOMESTIC OR LIKE REFUSE
    • B65F1/00Refuse receptacles; Accessories therefor
    • B65F1/0033Refuse receptacles; Accessories therefor specially adapted for segregated refuse collecting, e.g. receptacles with several compartments; Combination of receptacles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/02Protocol performance
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W30/00Technologies for solid waste management
    • Y02W30/10Waste collection, transportation, transfer or storage, e.g. segregated refuse collecting, electric or hybrid propulsion

Abstract

The invention discloses a control system for an intelligent classification dustbin, which comprises an equipment authentication operation module, an equipment delivery operation module and an equipment initialization module, wherein the equipment initialization module comprises an equipment initialization parameter switch module, an equipment initialization acquisition inner cylinder information module and an KKY mechanism IC card number list module; the device delivery operation module comprises a user delivery interface module, an KKY newly-added IC card to mechanism list module, a device heartbeat data uploading module, a KKY device parameter modifying module and a Goodpastel longitude and latitude updating module. Compared with the prior art, the invention has the advantages that: the corresponding interface setting is carried out on the equipment authentication operation, the equipment delivery operation and the equipment initialization step, the architectural design of a plurality of action steps in the whole garbage throwing process is realized, the design thought is clear and complete, the architecture is reasonable, the applicability of the communication protocol of the intelligent garbage can is greatly improved, and the function loss of the traditional communication protocol is compensated.

Description

Control system for intelligent classification dustbin
Technical Field
The invention relates to a dustbin, in particular to a control system for an intelligent classification dustbin.
Background
Intelligent classification dustbin is one kind based on internet of things, realize the dustbin, the user, manage intelligent management system of backstage interconnection, face identification has, the automatic switch door, fill with the warning, the location, weigh, multiple functions such as total mark reward, dustbin internally mounted has the host computer (mostly be the tall and erect system of ann), the host computer (singlechip control mainboard), sensor (infrared range finding, weigh, the thalposis, motor etc.), need to realize dustbin equipment when the user uses intelligent classification dustbin, the user side, manage backstage end intercommunication, in order to realize various functions.
Therefore, it is imperative to design a control system for intelligent sorting of waste bins.
Disclosure of Invention
The invention aims to solve the technical problems that the existing intelligent classification dustbin is often internally provided with a simple communication protocol, has defects in architecture and function, and causes poor actual use effect, such as data loss, high connection delay, abnormal communication and the like.
In order to solve the technical problems, the technical scheme provided by the invention is as follows: a control system for intelligent classification garbage can comprises an equipment authentication operation module 1, an equipment delivery operation module 2 and an equipment initialization module 3, wherein the equipment initialization module 3 comprises an equipment initialization parameter switch module 4, an equipment initialization acquisition inner cylinder information module 5 and an KKY organization IC card number list module 6, the equipment initialization parameter switch module 4 is used for equipment starting request initialization and acquiring equipment function configuration parameters, the interface address is/kky/initialization/deviceFunction, the request mode is POST,
conditions [ "x-www-form-url" ], processes [ "+/" ]; the device initialization acquiring inner barrel information module 5 is used for device information, inner barrel information and inner barrel garbage types, the interface address is/kky/initialize/getDeviceInDetail, and the request mode is POST, consemes [ "x-www-form-url" ], and processes [ "/" ]; KKY organization IC card number list module 6 is used to obtain equipment IC card opening inspection gate matching card number list, interface address is/kky/initialize/getIcCardList, its request mode is POST, consumes [ "x-www-form-url ], process [" +/x "];
the device delivery operation module 2 comprises a user delivery interface module 7, an KKY newly-added IC card to mechanism list module 8, a device heartbeat data uploading module 9, a KKY device parameter modifying module 10 and a high-grade longitude and latitude updating module 11, wherein the user delivery interface module 7 is used for uploading the normal delivery records of the device, the interface address is/kky/device/driver, the request mode is POST, the requests [ "application/json" ], and the processes [ "/" ]; KKY adding an IC card to the mechanism list module 8 for adding the current IC card number to the data list of the open inspection door of the open IC card at the equipment end, the interface address is/kky/device/saveICCard, the request mode is POST, conditions [ "x-www-form-encrypted ] ], and processes [" +/x ] ]; the equipment heartbeat data uploading module 9 is used for uploading equipment timing state information, reporting is performed once by default for 10min, specifically, the interface address is/kky/device/shake according to the preset value of the handshake period of the administrator interface, the request mode is POST, consumes [ "application/json" ], and processes [ "/" ]; KKY device parameter modification module 10 is used for modifying device function parameter, the device administrator interface modifies the device parameter information, the system will be effective only after restarting, the interface address is/kky/device/update device function, the request mode is POST, consumes [ "x-www-form-url ], process [" +/- "]; the moral longitude and latitude updating module 11 is used for updating the position of equipment, the system is restarted and reported, the interface address is/kky/device/updateGaDe, the request mode is POST, consumes [ "x-www-form-url" ], and processes [ "/" ];
the authentication operation module 1 comprises a user code swiping and IC card authentication interface module 12, a human face authentication module 13, a WeChat code swiping and throwing two-dimensional code opening module 14, an KKY administrator code swiping and logging module 15 and a KKY equipment parameter modification module 16, wherein the interface address of the user code swiping and IC card authentication interface module 12 is/kky/authentication/check ScanCode, the request mode is POST, conditions [ "x-www-form-encrypted" ], and processes [ "]; the face authentication module 13 is used for capturing a face picture by the equipment and transmitting the face picture to the server for face recognition, the face collection needs to be carried out at the server in advance, the interface address is/kky/authentication/face verification, and the request mode is POST, conditions [ "x-www-form-encrypted ], and processes [" +/"]; the WeChat scanning port two-dimensional code door opening module 14 adopts an mqtt protocol, an mqtt environment needs to be built in advance, the WeChat two-dimensional code is generated by deviceID and inner _ order, after the WeChat scanning, the WeChat calls back an operator service interface, scanned deviceID and user ID are obtained in the interface, and the issuing mode is Topic: { deviceID }/cmd;
Messsage:"C53:customerID;C51:inner_order;";
KKY the interface address of the code scanning login module 15 of administrator is/kky/authentication/scancodeLogin, the request mode is POST, conditions [ "x-www-form-url ] and processes [" +/word "]; KKY interface address of the device parameter modification module 16 is/kky/authentication/userLogin, and request mode is POST, conditions [ "x-www-form-url encoded" ], process [ "x"/"].
Compared with the prior art, the invention has the advantages that: the corresponding interface setting is carried out on the equipment authentication operation, the equipment delivery operation and the equipment initialization step, the architectural design of a plurality of action steps in the whole garbage throwing process is realized, the design thought is clear and complete, the architecture is reasonable, the applicability of the communication protocol of the intelligent garbage can is greatly improved, and the function loss of the traditional communication protocol is compensated.
For improvement, KKY adds an IC card to the organization list module 8, the latitude and longitude update module 11, the user code-reading and IC card authentication interface module 12, the face authentication module 13 and the wechat scanning port two-dimensional code opening module 14 as the matching interface, and the development is selected according to the business requirements.
As an improvement, a communication protocol for intelligently classifying the garbage can is that except/kky/device/share and/kky/device/sender interfaces are of POST application/json request types, and other POST request modes are submitted by adopting a POST x-www-form-url-encoded form.
As an improvement, all interfaces in the communication protocol used for the intelligent classification garbage can are equipment autonomous request server interfaces.
As an improvement, a communication protocol for the intelligent classification garbage can is in protocol communication with a server, and all related data information maintenance needs to be completed in the server in advance.
Drawings
Fig. 1 is a schematic diagram of the components of a control system for an intelligent sorting bin.
Fig. 2 is a schematic diagram of the components of an equipment initialization module of a control system for an intelligent sorting bin.
Fig. 3 is a schematic diagram of the components of a device delivery operation module of a control system for an intelligent sorting waste bin.
Fig. 4 is a schematic diagram of the components of a device authentication operation module of a control system for intelligently sorting trash.
As shown in the figure: 1. the system comprises an equipment authentication operation module, a 2 equipment delivery operation module, a 3 equipment initialization module, a 4 equipment initialization parameter switch module, a 5 equipment initialization inner cylinder information acquisition module, a 6 and KKY mechanism IC card number list module, a 7 user delivery interface module, a 8 and KKY newly-added IC card to mechanism list module, a 9 and equipment heartbeat data uploading module, a 10 and KKY equipment parameter modification module, a 11 and Gode longitude and latitude updating module, a 12 and user code swiping and IC card authentication interface module, a 13 and face authentication module, a 14 and WeChat code scanning and slot two-dimensional code door opening module, a 15 and KKY manager code scanning and logging module, and a 16 and KKY equipment parameter modification module.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
The invention is implemented concretely, a control system for intelligent classification garbage can, comprising an equipment authentication operation module 1, an equipment delivery operation module 2 and an equipment initialization module 3, wherein the equipment initialization module 3 comprises an equipment initialization parameter switch module 4, an equipment initialization acquisition inner cylinder information module 5 and an KKY organization IC card number list module 6, the equipment initialization parameter switch module 4 is used for equipment startup request initialization, acquiring equipment function configuration parameters, the interface address is/kky/initialization/deviceFunction, the request mode is POST,
conditions [ "x-www-form-url" ], processes [ "+/" ]; the equipment initialization obtains the inner cylinder information module 5 for equipment information, inner cylinder information and inner cylinder garbage type, the interface address is/kky/initial size/getDeviceInDetail, the request mode is POST, conditions [ "x-www-form-url" ], and processes [ "+/" ]; KKY organization IC card number list module 6 is used to obtain equipment IC card opening inspection gate matching card number list, interface address is/kky/initialize/getIcCardList, its request mode is POST, consumes [ "x-www-form-url ], process [" +/x "];
the device delivery operation module 2 comprises a user delivery interface module 7, an KKY newly-added IC card to mechanism list module 8, a device heartbeat data uploading module 9, a KKY device parameter modifying module 10 and a high-grade longitude and latitude updating module 11, wherein the user delivery interface module 7 is used for uploading device normal delivery records, the interface address is/kky/device/sender, the request mode is POST, the demands is [ "application/json" ], and the processes is [ "/" ]; KKY adding an IC card to the mechanism list module 8 for adding the current IC card number to the data list of the open inspection door of the open IC card at the equipment end, the interface address is/kky/device/saveICCard, the request mode is POST, conditions [ "x-www-form-encrypted ] ], and processes [" +/x ] ]; the device heartbeat data uploading module 9 is used for uploading the timing state information of the device, reporting the information once by default in 10min, specifically, taking a handshake period setting value as standard according to an administrator interface, and taking an interface address of/kky/device/shake as a standard, wherein the request mode is POST, consemes [ "application/json" ], and processes [ "/" ]; KKY device parameter modification module 10 is used for modifying device function parameter, the device administrator interface modifies the device parameter information, the system will be effective only after restarting, the interface address is/kky/device/update device function, the request mode is POST, consumes [ "x-www-form-url ], process [" +/- "]; the moral longitude and latitude updating module 11 is used for updating the position of equipment, the system is restarted and reported, the interface address is/kky/device/updateGaDe, the request mode is POST, consumes [ "x-www-form-url" ], and processes [ "/" ];
the authentication operation module 1 comprises a user code swiping and IC card authentication interface module 12, a human face authentication module 13, a WeChat code swiping and throwing two-dimensional code opening module 14, an KKY administrator code swiping and logging module 15 and a KKY equipment parameter modification module 16, wherein the interface address of the user code swiping and IC card authentication interface module 12 is/kky/authentication/check ScanCode, the request mode is POST, conditions [ "x-www-form-encrypted" ], and processes [ "]; the face authentication module 13 is used for capturing a face picture by the equipment and transmitting the face picture to the server for face recognition, the face collection needs to be carried out at the server in advance, the interface address is/kky/authentication/face verification, and the request mode is POST, conditions [ "x-www-form-encrypted ], and processes [" +/"]; the WeChat scanning port two-dimensional code door opening module 14 adopts an mqtt protocol, an mqtt environment needs to be built in advance, the WeChat two-dimensional code is generated by deviceID and inner _ order, after the WeChat scanning, the WeChat calls back an operator service interface, scanned deviceID and user ID are obtained in the interface, and the issuing mode is Topic: { deviceID }/cmd;
Messsage:"C53:customerID;C51:inner_order;";
KKY the interface address of the code scanning login module 15 of administrator is/kky/authentication/scancodeLogin, the request mode is POST, conditions [ "x-www-form-url ] and processes [" +/word "]; KKY interface address of the device parameter modification module 16 is/kky/authentication/userLogin, and request mode is POST, conditions [ "x-www-form-url encoded" ], process [ "x"/"].
KKY adding IC card to the organization list module 8, the God latitude and longitude update module 11, the user code scanning and IC card authentication interface module 12, the face authentication module 13 and the WeChat scanning two-dimensional code opening module 14 are selected as the matching interface, and the development is selected according to the business requirement.
A communication protocol for an intelligent classification garbage can is characterized in that except/kky/device/share and/kky/device/sender interfaces are of POST application/json request types, and other POST request modes are submitted by adopting a POST x-www-form-url-encoded form.
All interfaces in a communication protocol for the intelligent classification garbage can are equipment autonomous request server interfaces.
A communication protocol for an intelligent classification garbage can is in protocol communication with a server, and all related data information maintenance needs to be completed in the server in advance.
The working principle of the invention is as follows: (1) equipment initialization parameter switch module 4
Interface description, namely initializing a device starting request and acquiring device function configuration parameters;
interface address/kky/initialize/deviceFunction;
the request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded"]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
boardId Mainboard coding query false string
dateTime Time of request query false string
version Version number query false string
Response example:
{
"data": {
"adminLogin": 0,
"cardReader": 0,
"deviceId": 0,
"deviceMoneyState": 0,
"discern": 0,
"faceAuthentication": 0,
"facelocalVerification": 0,
"getBucket": 0,
"icCardList": 0,
"localVerification": 0,
"mqttOpenorclose": 0,
"phoneIsOpen": 0,
"printer": 0,
"qrcodeDistinguish": 0,
"tourist": 0,
"voice": 0
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information Device initialization parameter setting Device initialization parameter setting
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
Device initialization parameter setting
Parameter name Description of the parameters Type (B) schema
adminLogin 1 open, 0 not open whether open local manager login integer(int32)
cardReader 1 open, 0 not open whether to open the IC card open gate (after the function is opened, the checkScanCode interface needs to be developed) integer(int32)
deviceId Device id integer(int32)
deviceMoneyState Whether the equipment is not available due, 0 is abnormal due, 1 is normal (default value 1, used for cashback function) integer(int32)
discern 1 open, 0 not open, whether to open AI garbage recognition (without the function default value 0) integer(int32)
faceAuthentication Whether the face authentication is started or not is 1 opened and 0 is not opened integer(int32)
facelocalVerification 1 open, 0 not open whether open local face integer(int32)
getBucket Whether to open the local barrel is opened or not is 1 opened or 0 not integer(int32)
icCardList The IC card opens the inspection door, whether the equipment inquires that the IC card data list 1 is opened 0 or not is opened integer(int32)
localVerification 1 is opened, 0 is not opened whether to open the local verification switch integer(int32)
mqttOpenorclose Whether 1 is opened or not and 0 is not opened integer(int32)
phoneIsOpen 1 is opened, 0 is not opened, and whether KKY mobile phone number is opened or not is verified integer(int32)
printer Whether the printer is started or not is 1 opened and 0 not integer(int32)
qrcodeDistinguish Two-dimension code recognition of whether to open 1 or not and not open 0 integer(int32)
tourist 1 open, 0 not open whether open visitor delivery integer(int32)
voice Whether to turn on speech recognition is 1 on and 0 off integer(int32)
Response state:
status code Description of the invention schema
200 OK Unified return object « device initialization parameter setting mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(2) Equipment initialization module for acquiring inner cylinder information
Interface description, equipment information, inner tube garbage type
Interface address of/kky/initialize/getDeviceInDetail
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded"]
produces:["*/*"]
Parameter name Description of the parameters in Whether or not it is necessary to Data type schema
boardId Mainboard id query false string
Response example:
{
"data": [
{
"deviceInTypeName": "",
"innerOrder": 0,
"scopeDetail": "",
"typeId": 0
}
],
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information array Details of inner barrel
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
Details of inner barrel
Parameter name Description of the parameters Types of schema
deviceInTypeName Name of garbage type string
innerOrder Inner barrel sequence (from left to right, from top to bottom, starting from 0) integer(int32)
scopeDetail Details of integration (e.g. 100g/10 points for on-screen presentation) string
typeId Garbage type code (subject to the garbage type code table provided by our party) integer(int32)
Response state:
status code Description of the preferred embodiment schema
200 OK Unified return object « List « inner barrel detail mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(3) KKY IC card number list module
Interface description, obtaining equipment IC card opening inspection door matching card number list
Interface address of/kky/initialize/getIcCardList
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id query false string
Response example:
{
"data": [],
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information (IC card number array) array
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Response state:
status code Description of the invention schema
200 OK Unified returning object « Set « string mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(4) User delivery interface module
Interface description device Normal delivery record upload
Interface address/kky/device/sender
The request mode comprises the following steps: POST (POST)
consumes:["application/json"]
produces:["*/*"]
Request example:
{
"deliverInnerOrders": [
{
"base64Image": "",
"imageType": 0,
"innerOrder": 0,
"weight": 0
}
],
"deviceId": 0,
"userId": ""
}
request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Type of data schema
kkyDeliverDTO kkyDeliverDTO body true kky device data delivery upload kky device data delivery upload
Description of schema attributes
kky device data delivery upload
Parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deliverInnerOrders kky Equipment delivery data set (multiple delivery records) body false array
deviceId Device id (Main key of device meter) body false integer(int32)
userId User identification body false string
kky device delivery data set
Parameter name Description of the parameters in Whether or not it is necessary to Data type schema
base64Image base64 delivery Picture details (Default value "" AI identification function is used when open) body false string
imageType Picture type: 0: no picture, 1: delivery picture, 2: AI identification picture (default value 0, used when AI identification function is on) body false integer(int32)
innerOrder Number of inner cylinder of equipment body false integer(int32)
weight Weight unit 10g or number of bottles body false integer(int32)
Response example:
{
"data": {
"countMoney": "",
"countScope": "",
"deliverInnerOrderVOS": [
{
"countType": 0,
"innerTypeName": "",
"money": "",
"rewardMoney": "",
"rewardScore": "",
"scope": "",
"weight": ""
}
],
"deviceMoneyState": 0
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information Delivery return Delivery return
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
Delivery return
Parameter name Description of the parameters Type (B) schema
countMoney This delivery obtains the total cash string
countScope Obtaining total score of the delivery string
deliverInnerOrderVOS Returning the data of the delivery calculation details (multiple delivery records returning data set) array Delivery return details data
deviceMoneyState Whether the equipment is not available due, 0 is abnormal due, 1 is normal (default value 1, used for cashback function) integer(int32)
Delivery return details data
Parameter name Description of the parameters Type (B) schema
countType The type of integral calculation: 1 by number, 2 by weight integer(int32)
innerTypeName Name of type of delivered garbage string
money This delivery gets cash (cash without reward) string
rewardMoney The delivery obtains reward cash string
rewardScore The delivery obtains reward points string
scope This delivery obtains points (not including reward points) string
weight Weight unit 10g or number of bottles string
Response state:
status code Description of the preferred embodiment schema
200 OK Unified return object « delivery return mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(5) KKY module for adding IC card to mechanism list
Interface description, the equipment end adds the current IC card number to the data list of the open inspection gate of the open IC card
Interface address of/kky/device/saveIcCard
The request mode comprises the following steps: POST (POST)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Type of data schema
deviceId deviceId query false integer
icCardNumber icCardNumber query false string
Response example:
{
"data": {},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Types of schema
data Returned object information object
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Response state:
status code Description of the invention schema
200 OK Unified return object
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(6) Equipment heartbeat data uploading module
Interface description, namely uploading the timing state information of the equipment, reporting the information once by default in 10min, and specifically taking the handshake period setting value of the administrator interface as the standard
Interface address/kky/device/shake
The request mode comprises the following steps: POST (POST)
consumes:["application/json"]
produces:["*/*"]
Request example:
{
"deviceId": 0,
"deviceIns": [
{
"deviceNo": 0,
"fullState": 0,
"kw": "",
"mainTemp": 0,
"overWeightState": 0,
"overtTemperature": 0,
"version": "",
"versionName": "",
"vmVersion": "",
"volume": 0,
"waterState": 0,
"weight": 0
}
]
}
request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
kkyShakeDTO kkyShakeDTO body true kky device handshake data upload kky device handshake data upload
Description of schema attributes
kky device handshake data upload
Parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id body false integer(int32)
deviceIns Inner barrel information body false array Heartbeat data and inner cylinder information data of equipment
Heartbeat data and inner cylinder information data of equipment
Parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceNo Inner barrel number (cumulative from 0) body false integer(int32)
fullState Whether the equipment is full of barrels, 0 is normal, and 1 is full of barrels body false integer(int32)
kw Electric meter degree KW body false string
mainTemp Temperature of the main board body false integer(int32)
overWeightState Whether the equipment is overweight, 0 Normal, 1 overweight body false integer(int32)
overtTemperature Whether the equipment is over-temperature, 0 normal and 1 over-temperature body false integer(int32)
version Total system software version (device information) body false string
versionName Firmware version body false string
vmVersion Software version body false string
volume Capacity of body false integer(int32)
waterState The working state is as follows: whether there is water shortage body false integer(int32)
weight Weight/unit 10g body false integer(int32)
Response example:
{
"data": {},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information object
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
The response state is as follows:
status code Description of the invention schema
200 OK Unified return object
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(7) KY equipment parameter modification module
And (4) interface description, namely modifying the function parameters of the equipment, and restarting the system to take effect after the equipment administrator interface modifies the parameter information of the equipment.
Interface address/kky/device/updateDeviceFunction
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
adminLogin 1 open, 0 not open whether open local manager login query false integer
cardReader 1 open, 0 not open whether to open the IC card and open the door query false integer
deviceId Device id query false integer
discern 1 open, 0 not open, whether to open garbage recognition query false integer
faceAuthentication Whether the face authentication is started or not is 1 opened and 0 is not opened query false integer
facelocalVerification 1 open, 0 not open whether open local face query false integer
getBucket Whether to open the local barrel is opened or not is 1 opened or 0 not query false integer
icCardList The IC card opens the inspection door, whether the equipment inquires that the IC card data list 1 is opened 0 or not is opened query false integer
localVerification 1 is opened, 0 is not opened whether to open the local verification switch query false integer
mqttOpenorclose Whether 1 is opened or not and 0 is not opened query false integer
phoneIsOpen 1 is on and 0 is not onKKY mobile phone number verification is started or not query false integer
printer Whether the printer is started or not is 1 opened and 0 not query false integer
qrcodeDistinguish Two-dimension code recognition of whether to open 1 or not and not open 0 query false integer
tourist 1 open, 0 not open whether open visitor delivery query false integer
voice Whether to turn on speech recognition is 1 on and 0 off query false integer
Response example:
{
"data": {},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information object
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Response state:
status code Description of the invention schema
200 OK Unified return object
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(8) God longitude and latitude updating module
And (4) interface description, namely updating the position of the equipment and reporting the position when the system is restarted.
Interface address of/kky/device/updateGaoDe
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id query false integer
latitude Longitude (G) query false string
longitude Latitude query false string
Response example:
{
"data": {},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information object
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Response state:
status code Description of the invention schema
200 OK Unified return object
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(9) User code-swiping and IC card authentication interface module
Interface description:
interface address of/kky/authentication/checkScanCode
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
cardNumber User card number (two-dimension code card/IC card) query false string
deviceId Device id query false string
Response example:
{
"data": {
"customerName": "",
"returnByte": "",
"userId": ""
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information User card swiping return data User card swiping return data
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
User card swiping return data
Parameter name Description of the parameters Type (B) schema
customerName User name string
userId User id string
Response state:
status code Description of the invention schema
200 OK Unified return object « user card swiping return data mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(10) Face authentication module
Interface description, the equipment captures a face picture and transmits the face picture to the server side for face recognition, and face collection needs to be carried out at the server side in advance.
Interface address/kky/authentication/faceVerification
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id query false string
image Picture base64 query false string
Response example:
{
"data": {
"customerName": "",
"returnByte": "",
"userId": ""
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information User card swiping return data User card swiping return data
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
User card swiping return data
Parameter name Description of the parameters Type (B) schema
customerName User name string
userId User id string
Response state:
status code Description of the invention schema
200 OK Unified return object « user card swiping return data mobile phone
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(11) WeChat is swept and is thrown a two-dimensional code module of opening door
The interface is different from other interface protocols, is an mqtt protocol, and needs to build an mqtt environment in advance. After the WeChat scanning code is generated by deviceId (device id, table main key) and inner _ order (inner barrel serial number, starting from 0) in the WeChat two-dimensional code, the WeChat calls back an operator service interface, scanned deviceId and user ID (customer Id) are obtained in the interface, and then the WeChat is published through mqtt in the following way (note: before the mqtt is published, please subscribe first):
Topic : ${deviceId}/cmd
Messsage:"C53:customerId;C51:inner_order;"
Demo:
C51:1;C53:123456
c51: opening of the 2 nd throwing port
C53: 123456 card number/mobile phone number/user id/openid/bag number, etc. (as long as the identification uniquely locates the user).
(12) KKY code scanning login module for administrator
Interface description:
interface address of/kky/authentication/scancodeLogin
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded "]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id query false string
password Cipher (default equipment main board code) query false string
userId Administrator login two-dimensional code (user id) query false string
Response example:
{
"data": {
"passWord": "",
"userName": ""
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information Administrator login return value Administrator login return value
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
Administrator login return value
Parameter name Description of the parameters Type (B) schema
passWord Cipher code string
userName User id (user id in interface request parameter) string
Response state:
status code Description of the invention schema
200 OK Unified return object « manager login return value mobile
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
(12) KKY Equipment parameter modification module
Interface description:
interface address/kky/authentication/userLogin
The request mode comprises the following steps: POST (positive position transducer)
consumes:["x-www-form-urlencoded"]
produces:["*/*"]
Request parameters:
parameter name Description of the parameters in Whether or not it is necessary to Data type schema
deviceId Device id query false string
passWord Cipher code query false string
userName User name query false string
Response example:
{
"data": {
"passWord": "",
"userName": ""
},
"errCode": 0,
"errMessage": ""
}
response parameters:
parameter name Description of the parameters Type (B) schema
data Returned object information Administrator login return value Administrator login return value
errCode Current service status code integer(int32) integer(int32)
errMessage Abnormal information string
Description of schema attributes
Administrator login return value
Parameter name Description of the parameters Type (B) schema
passWord Cipher code string
userName User id (user id in interface request parameter) string
The response state is as follows:
status code Description of the preferred embodiment schema
200 OK Unified return object « manager login return value mobile
201 Created
401 Unauthorized
403 Forbidden
404 Not Found
The protocol interface except/kky/device/share and/kky/device/sender is of POST application/json request type, and other POST request modes are all POST x-www-form-url-encoded form submission; all interfaces are equipment autonomous request server interfaces; marking necessary interfaces, wherein the development must be completed, and the selected and matched interfaces are selected and developed according to business requirements; the protocol is only the protocol communication between the equipment and the server, and all the related data information maintenance needs to be completed in the server in advance.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made in the above embodiments by those of ordinary skill in the art without departing from the principle and spirit of the present invention.

Claims (5)

1. A control system for intelligent classification garbage can comprises a device authentication operation module (1), a device delivery operation module (2) and a device initialization module (3), and is characterized in that: the equipment initialization module (3) comprises an equipment initialization parameter switch module (4), an equipment initialization acquisition inner cylinder information module (5) and an KKY organization IC card number list module (6), wherein the equipment initialization parameter switch module (4) is used for initializing equipment starting requests and acquiring equipment function configuration parameters, the interface address is/kky/initialize/deviceFunction, the request mode is POST,
conditions [ "x-www-form-url" ], processes [ "+/" ]; the device initialization acquiring inner cylinder information module (5) is used for device information, inner cylinder information and inner cylinder garbage types, the interface address is/kky/initialize/getDeviceInDetail, and the request mode is POST, conditions [ "x-www-form-url ] and processes [" +/"]; the KKY organization IC card number list module (6) is used for obtaining a matching card number list of an equipment IC card opening inspection door, the interface address is/kky/initialize/getIcCardList, and the request mode is POST, conditions [ "x-www-form-url ], and processes [" +/"];
the device delivery operation module (2) comprises a user delivery interface module (7), an KKY newly-added IC card to mechanism list module (8), a device heartbeat data uploading module (9), a KKY device parameter modifying module (10) and a high-grade longitude and latitude updating module (11), wherein the user delivery interface module (7) is used for uploading normal delivery records of devices, the interface address is/kky/device/sender, and the request mode is POST, conditions [ "application/json" ], and processes [ "/" ]; the KKY newly-added IC card-to-mechanism list module (8) is used for adding a current IC card number to an IC card opening inspection door data list at an equipment end, the interface address is/kky/device/saveIcCard, and the request mode is POST, conditions [ "x-www-form-url ], and processes [" +/"]; the equipment heartbeat data uploading module (9) is used for uploading equipment timing state information, reporting is carried out once by default for 10min, specifically, a handshake period setting value is taken as standard according to an administrator interface, an interface address is/kky/device/shake, and the request mode is POST, consumes [ "application/json ], and processes ["/"]; the KKY equipment parameter modification module (10) is used for modifying equipment function parameters, the equipment administrator interface is effective only when the system is restarted after the equipment parameter information is modified, the interface address is/kky/device/update device function, and the request mode is POST, consumes [ "x-www-form-encrypted" ], and processes [ "/" ]; the high-grade longitude and latitude updating module (11) is used for updating the position of equipment, the system is restarted and reported, the interface address is/kky/device/updateGaoDe, the request mode is POST, consumes [ "x-www-form-url" ], and processes [ "/" ];
the authentication operation module (1) comprises a user code swiping and IC card authentication interface module (12), a face authentication module (13), a WeChat code scanning and projection two-dimensional code door opening module (14), an KKY administrator code scanning and logging module (15) and a KKY equipment parameter modification module (16), wherein the interface address of the user code swiping and IC card authentication interface module (12) is/kky/authentication/checkScanCode, and the request mode is POST, conditions [ "x-www-form-encrypted ], and processes ["/"]; the face authentication module (13) is used for capturing a face picture by equipment and transmitting the face picture to a server side for face recognition, face acquisition needs to be carried out at the server side in advance, the interface address is/kky/authentication/face verification, and the request mode is POST, consemes [ "x-www-form-url ], and processes [" +/"]; the WeChat scanning port two-dimensional code door opening module (14) adopts an mqtt protocol, an mqtt environment needs to be built in advance, the WeChat two-dimensional code is generated by deviceiD and inner _ order, after the WeChat scanning, WeChat calls back an operator service interface, scanned deviceiD and userID are obtained in the interface, and the issuing mode is Topic: $ { deviceiD }/cmd;
Messsage:"C53:customerID;C51:inner_order;";
the KKY administrator code scanning login module (15) has interface address of/kky/authentication/scancodeLogin, and the request mode is POST, conditions [ "x-www-form-url ] and processes [" +/"]; the KKY equipment parameter modification module (16) interface address is/kky/authentication/userLogin, and the request mode is POST, conditions [ "x-www-form-url encoded" ], and processes [ "+/" ].
2. The control system for the intelligent sorting bin of claim 1, wherein: KKY the newly added IC card to mechanism list module (8), the Goods latitude and longitude update module (11), the user code swiping and IC card authentication interface module (12), the face authentication module (13) and the WeChat scanning port two-dimensional code door opening module (14) are selected as matching interfaces and are developed according to business requirements.
3. The control system for the intelligent sorting bin of claim 1, wherein: according to the communication protocol for the intelligent classification garbage can, except that/kky/device/share and/kky/device/sender interfaces are of a POST application/json request type, other POST request modes are submitted by adopting a POST x-www-form-url-encoded form.
4. The control system for the intelligent sorting bin of claim 1, wherein: all interfaces in the communication protocol for the intelligent classification garbage can are equipment autonomous request server interfaces.
5. The control system for the intelligent sorting bin of claim 1, wherein: the communication protocol for the intelligent classification dustbin is in protocol communication with the server, and all related data information maintenance needs to be completed in the server in advance.
CN202010714080.2A 2020-07-23 2020-07-23 Control system for intelligent classification dustbin Active CN111846683B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010714080.2A CN111846683B (en) 2020-07-23 2020-07-23 Control system for intelligent classification dustbin

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010714080.2A CN111846683B (en) 2020-07-23 2020-07-23 Control system for intelligent classification dustbin

Publications (2)

Publication Number Publication Date
CN111846683A CN111846683A (en) 2020-10-30
CN111846683B true CN111846683B (en) 2022-08-12

Family

ID=72951086

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010714080.2A Active CN111846683B (en) 2020-07-23 2020-07-23 Control system for intelligent classification dustbin

Country Status (1)

Country Link
CN (1) CN111846683B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2073158A2 (en) * 2007-12-19 2009-06-24 Kabushiki Kaisha Mihama Recycling system
CN106115104A (en) * 2016-06-27 2016-11-16 湖南现代环境科技股份有限公司 Categorized consumer waste collecting and transferring system based on Internet of Things, devices and methods therefor
CN109809061A (en) * 2019-04-03 2019-05-28 陕西智享亿家环保科技有限公司 A kind of intelligent environment protection garbage retrieving system
CN110371540A (en) * 2019-08-29 2019-10-25 深圳市德立信环境工程有限公司 A kind of novel garbage classification operating system and method
KR102055782B1 (en) * 2019-09-04 2019-12-13 하천용 AI Integrated System for Optimizing waste management by self Guided robot
CN110689143A (en) * 2019-05-13 2020-01-14 欧阳西中 Automatic opening and closing classification barrel in network payment induction operation and/or code scanning operation mode
EP3605416A1 (en) * 2018-08-03 2020-02-05 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for collecting garbage
CN110902193A (en) * 2019-10-25 2020-03-24 西安西电链融科技有限公司 Face recognition-based garbage classification management system, method and device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060100512A (en) * 2005-03-17 2006-09-21 삼성전자주식회사 Method and system for estimating average bandwidth in a communication network based on transmission control protocol

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2073158A2 (en) * 2007-12-19 2009-06-24 Kabushiki Kaisha Mihama Recycling system
CN106115104A (en) * 2016-06-27 2016-11-16 湖南现代环境科技股份有限公司 Categorized consumer waste collecting and transferring system based on Internet of Things, devices and methods therefor
EP3605416A1 (en) * 2018-08-03 2020-02-05 Beijing Xiaomi Mobile Software Co., Ltd. Method and device for collecting garbage
CN109809061A (en) * 2019-04-03 2019-05-28 陕西智享亿家环保科技有限公司 A kind of intelligent environment protection garbage retrieving system
CN110689143A (en) * 2019-05-13 2020-01-14 欧阳西中 Automatic opening and closing classification barrel in network payment induction operation and/or code scanning operation mode
CN110371540A (en) * 2019-08-29 2019-10-25 深圳市德立信环境工程有限公司 A kind of novel garbage classification operating system and method
KR102055782B1 (en) * 2019-09-04 2019-12-13 하천용 AI Integrated System for Optimizing waste management by self Guided robot
CN110902193A (en) * 2019-10-25 2020-03-24 西安西电链融科技有限公司 Face recognition-based garbage classification management system, method and device

Also Published As

Publication number Publication date
CN111846683A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
CN101377860A (en) Intelligent caller management method
CN103839318B (en) The gate control system of a kind of remote centralized certification and method
CN106612291B (en) Internet bar computer-on method and system
CN102045472A (en) Multi-functional peripheral and multi-functional peripheral control system
CA2681844A1 (en) Method and system for integrating duplicate checks with existing computer systems
US9377971B2 (en) Systems and methods for improving device discovery
CN103152505A (en) Intelligent scanner and operative method
CN104463408B (en) Floating population's information collecting method and device based on mobile terminal
CN110942563A (en) Express item processing method, device and medium for express delivery cabinet
CN109409794A (en) A kind of food catering method, apparatus and system
CN111846683B (en) Control system for intelligent classification dustbin
CN108170387A (en) A kind of electronic invoice data obtains and print execution method
CN107274304A (en) It is self-service to move in System and method for of checking out
US10074227B1 (en) Secured location confirmation
US20060077465A1 (en) Device authorization system using optical scanner
CN210515421U (en) Intelligent access control system based on Internet of things
KR20060126066A (en) The mfp which has the scan history management function and the method of managing the scan history in the mfp
US11363168B2 (en) Securing authorized access of a scanned image
KR102243130B1 (en) Unmanned print processing system
CN109804413A (en) For delivering the auxiliary system of mail
US20040184589A1 (en) Terminal information registration apparatus, terminal information registration method and terminal information registration program
US20240022673A1 (en) Data processing system, management device, relay device, device to be managed, data processing method, and data processing program
CN204204062U (en) A kind of vehicle access management system
KR102273738B1 (en) Auto login system for kiosk
CN216848846U (en) Recyclable cup equipment control board card

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: No. 1, Baogang Road, Xuzhou Economic and Technological Development Zone, Jiangsu Province, 221000

Patentee after: Jiangsu Wandefu Intelligent Equipment Co.,Ltd.

Country or region after: China

Address before: 221100 Zhangji light industrial park, Tongshan District, Xuzhou City, Jiangsu Province

Patentee before: JIANGSU WONDERFUL PUBLIC FACILITY TECHNOLOGY Co.,Ltd.

Country or region before: China