
old-fashioned scheme | dgiot scheme |
---|---|
Need to buy an extra barcode printer | No need to buy a barcode printer for printing barcodes |
Barcode printers can only print barcodes or types of small paper | It can be operated on the basis of the original printer, and can be adjusted in the size of the direct printer |
Need to download the printer-specific app | It can be operated in the web interface, which is simple and fast |
If the App provided by the printer is outdated, the encoding of the barcode cannot be selected | dgiot provides 34 types of barcode codes such as CODE128, CODE39, EAN13 |
Overall interaction diagram

1. Create a printer product in dgiot



2. Install the printer driver (look for the official printer)
This example is a Deli DL-750W printer, driver download address: https://www.nbdeli.com/products/productinfo/16540.html


4. Open dgiot_dtu

5. Create a device corresponding to the physical printer under the platform printer product
Take the customer number of dgiot_dtu as the device address
6. The desktop uses dgiot_dtu to connect with the platform

The user only needs to fill in the data in the corresponding red box.
Login user refers to the ID in the platform product details
Server address Refers to the external network address of the technology currently deployed dgiot server
Customer number is the address in the device details
7. Remotely call the printer
Front-end call printer low code example
{ "type": "page", "body": [ { "tabs": [ { "body": [ { "id": "u:04459a03cf7c", "api": { "url": "iotapi/amis/Device/parse_objectid", "method": "get", "adaptor": "return {\r\n \"status\":0,\r\n \"msg\":\"\",\r\n \"data\":response\r\n }", "headers": { "store": "localStorage", "dgiotReplace": "parse_objectid" } }, "body": [ { "id": "u:94629dd6e880", "api": { "url": "iotapi/classes/Device/parse_objectid", "method": "put", "headers": { "store": "localStorage", "dgiotReplace": "parse_objectid" }, "requestAdaptor": "return{\r\n ...api,\r\n data:{\r\n profile:{\r\n ...api.data\r\n }\r\n }\r\n}" }, "body": [ { "mode": "inline", "name": "data", "size": "", "type": "input-text", "label": "print content", "disabled": false, "readOnly": false, "horizontal": { "left": 4, "right": 8, "leftFixed": "" }, "validateApi": "", "autoComplete": false }, { "mode": "inline", "name": "cmd", "size": "", "type": "input-text", "label": "operate", "disabled": false, "readOnly": false, "horizontal": { "left": 4, "right": 8, "leftFixed": "" }, "validateApi": "", "autoComplete": false } ], "type": "form", "title": "", "submitText": "Print" } ], "type": "form", "title": "form", "submitText": "" } ], "icon": "fa fa-slideshare", "title": "Device Information" } ], "type": "tabs" } ] }
Call the /iotapi/classes/Device/ (objectId of the printer device in the database) interface on the front end to implement configuration delivery
This is the content
{
"cmd":"printer",
"data":"210B8784AA"
}
cmd: is to judge the operation since the specified mode
data: refers to the content
8. Effect display

9. Scan code effect
WeChat applet search scan barcode accounting
[Xiao Di's review]
- The dgiot platform provides QR code and barcode printing functions for users to quickly classify, locate, summarize and manage products.
- In terms of cost, dgiot does not need to select a specific barcode printer in terms of printers in order to reduce the cost of users.
want to know more dgiot For the specific details, you are welcome to GitHub See related source code on .