[Larry Bank] He mau hiʻohiʻona maikaʻi loa ka waihona Arduino no ka paʻi ʻana i nā kikokikona a me nā kiʻi kiʻi ma kahi mīkini paʻi wela BLE (Bluetooth Low Energy) a hiki ke hoʻouna i nā hana paʻi uea ʻole i nā kumu hoʻohālike maʻamau e like me ka maʻalahi.He liʻiliʻi kēia mau mīkini paʻi, kūʻai ʻole, a me ka uea ʻole.He hui maikaʻi kēia e hoʻohauʻoli iā lākou no nā papahana e hiki ke pōmaikaʻi mai ka paʻi ʻana i nā kope paʻakikī.
ʻAʻole i kaupalena ʻia i ka kikokikona paʻamau maʻalahi.Hiki iā ʻoe ke hoʻohana i nā ʻano font a me nā koho no ka hoʻopau ʻana i nā mea hoʻopuka kiʻekiʻe, a hoʻouna i nā kikokikona i hoʻohālikelike ʻia e like me nā kiʻi.Hiki iā ʻoe ke heluhelu i nā ʻike āpau e pili ana i ka mea hiki ke hana i ka waihona ma kēia papa inoa pōkole o nā hana.
Akā ʻaʻole ʻo [Larry] i kū ma laila.ʻOiai ʻo ia e hoʻokolohua me nā microcontrollers a me nā mīkini paʻi wela BLE, makemake pū ʻo ia e ʻimi pololei me ka hoʻohana ʻana iā BLE e kamaʻilio me kēia mau mea paʻi mai kāna Mac.ʻO Print2BLE kahi polokalamu MacOS e hiki ai iā ʻoe ke kauo i nā faila kiʻi i ka puka aniani noi.Inā maikaʻi ka hopena o ka nānā mua ʻana, e puka mai ke pihi paʻi mai ka mea paʻi ma ke ʻano he kiʻi 1-bpp dithered.
Ua kūpono nā mīkini paʻi wela liʻiliʻi no nā papahana maʻemaʻe, e like me nā kāmela Polaroid i hoʻololi ʻia.I kēia manawa, ʻo kēia mau mea paʻi liʻiliʻi he uea ʻole a me ka waiwai.Me ke kōkua wale nō o ia hale waihona puke hiki ke maʻalahi nā mea.ʻOiaʻiʻo, inā he mea maʻalahi kēia mau mea a pau, hiki iā ʻoe ke hoʻohana i ka plasma e hoʻihoʻi i ka paʻi wela i ka paʻi wela i kēlā me kēia manawa.
Ke ʻimi nei au i ka waihona, ke noʻonoʻo nei inā ʻike kekahi e pili ana i kēia mau mea paʻi haʻahaʻa, ʻo ia hoʻi, ʻaʻole i helu ʻia ʻo Phomemo M02, M02s, a me M02pro ma ke ʻano he kūpono, akā ke ʻimi nei i nā pōpoki, puaʻa a me nā mea paʻi ʻē aʻe, ʻoi aʻe paha ka like. kumu kumu?Makemake e ʻike inā pili ia i ka waihona.ʻO kahi waihona ʻē aʻe ma github no nā palapala phomemo python no ka paʻi ʻana ma linux.He mea maʻalahi kēia mau mea a maʻalili ke pāʻani.Makemake ʻoe e ʻike i ke kumu i loaʻa ʻole ai ka traction.
Nui nā ʻano like ʻole o kēia mau mea paʻi BLE.Ma loko, loaʻa paha iā lākou ka poʻo paʻi like a me ka interface UART, akā makemake nā hui e hoʻohui i nā papa BLE e hoʻololi i nā mea i mea paʻakikī ke hoʻohana ma waho o kā lākou mau noi.Pono nā mea paʻi ʻelua aʻu e kākoʻo nei e hoʻohuli ʻia ma o kā lākou mau polokalamu Android no ka mea ʻaʻole lākou i kākoʻo i ka hoʻonohonoho kauoha maʻamau ESC/POS.Hana pololei ʻo GOOJPRT a hoʻouna wale i nā kauoha maʻamau ma o BLE.Manaʻo wau he nui ka poʻe "ʻano ʻē" e hoʻoholo e hoʻohana i nā protocol kamaʻilio e koi iā ʻoe e hoʻohana i kā lākou mau polokalamu kelepona.
No laila, inā e kūʻai au i hoʻokahi o ia mau mea a hoʻokaʻawale i waho a wehe i ka ʻāpana BLE, a laila, he mea paʻi wela UART wale nō kāu?
Ua pāʻani au me ka mīkini paʻi uila 80mm NETUM / rechargeable o Amazon.He $80 ke kumu kūʻai a hōʻike ʻia ma ka port com port.Kākoʻo ia iā ESC/POS, no laila ua kākau wau i kaʻu waihona PowerShell ponoʻī no nā kiʻi.ʻO ka hemahema wale nō o NETUM ʻo ia ʻaʻole hiki ke loaʻa i nā ʻōwili paʻi nui loa, akā ʻo kēia ke kumukūʻai o ka compactness.Ua ʻike au hiki iaʻu ke lawe i nā ʻōwili liʻiliʻi a wehe i ka hapalua o ia mau mea ma luna o kahi wili kaʻawale.He emi ia ma lalo o ʻelima mau minuke, ʻaʻole ia he pilikia nui e like me ka wikiwiki aʻu e hoʻohana ai.
ʻO ka pane pōkole-ʻae!Kūlike loa ka Bluetooth Low Energy (BLE) ma nā paepae like ʻole, no laila ʻaʻole e hoʻololi nui ka hoʻokō ʻana iā ia ma Linux.
No nā kikokikona hiki ke hoʻonui ʻia, nā laina maʻalahi, a me nā barcode, ʻaʻohe mea hoʻokele paʻakikī e koi ʻia, no ka mea, ʻaneʻane kākoʻo nā mea paʻi hōʻailona maʻamau a pau i ke code maʻamau paʻi Epson maʻalahi, ʻike ʻia hoʻi ʻo ESC/P.[1] No ka ʻoi aku ka pololei, hoʻohana nā mea paʻi wela e hōʻailona/loaʻa i ka ʻano ʻano ESC/POS (Epson Standard Code/Point of Sale).[2] Ua kūpono ka inoa ESC/P a i ʻole ESC/POS no ka mea aia kekahi ʻano ESCape (ASCII code 27) ma mua o ke kauoha paʻi.
Hiki ke kūʻai haʻahaʻa ʻia nā mea paʻi kiʻi wela maʻalahi ma nā pūnaewele e like me AliExpress.[3] Loaʻa i kēia mau mea paʻi maʻamau he RS-232 UART TTL pae i kākoʻo iā ESC/POS.Hiki ke hoʻololi maʻalahi ʻia ka RS-232 UART TTL level interface i USB me ka hoʻohana ʻana i kahi pahu alahaka UART/USB (e like me CH340x) a i ʻole ke kaula.No ka WiFi a me ka BLE pili uila, pono ʻoe e hoʻopili i kahi module e like me ka module ESP32 Espressif i ka UART TTL interface.[4] A i ʻole e hoʻohui i 10-15 mau kālā ʻAmelika i ke kumukūʻai o nā mea paʻi kiʻi wela maʻamau/loaʻa, a hāʻawi pololei ia i ke USB/WiFi/BLE.Akā ma hea kahi leʻaleʻa i kēia?
Ke makemake ʻoe e hoʻoponopono i ke kiʻi (zoom/dither/black-and-white hoʻololi) a hoʻouna iā ia i ka mīkini paʻi lepili, hele mai kahi mea hoʻokele paʻakikī.No Windows, hāʻawi ʻia ka mea hoʻokele ma ka pūnaewele, e ʻimi no ka "Windows thermal label printer driver" me ka ʻole o "s".ʻOi aku ka paʻakikī no nā microcontrollers e hoʻohana i nā mea paʻi lepili / loaʻa honua e paʻi i nā kiʻi, a ʻo ia ka waihona Arduino a [Larry Bank] me he mea lā e lawe ʻia i kahi pae aʻe.
3. ʻO Goojprt Qr203 58 mm micro micro embedded thermal printer Rs232+Ttl panel kūpono me Eml203, hoʻohana ʻia no ka loaʻa ʻana o ka barcode US $15.17 + US $2.67 Hoʻouna:
4. Module uila NodeMcu V3 V2 Lua WIFI papa hoʻomohala ESP8266 ESP32 me ka PCB antenna a me ke awa USB ESP-12E CP2102 USD 2.94 + USD 0.82 Uku hoʻouna:
ʻO ka pepa i hoʻohana ʻia e kēia mau mea paʻi e pili ana i ka nui o nā pilikia olakino.Eia kekahi, ʻaʻole hiki ke hoʻohana hou ʻia a i ʻole pili i ke kaiapuni ma kekahi ʻano.
Loaʻa iā ia kahi bisphenol-a hiki ke hoʻopilikia i ka endocrine.Ma ke ala, ʻo nā huahana ʻaʻole i loaʻa ka BPA maʻamau i loaʻa i ka BPA-ʻenehana ʻokoʻa, akā ʻoi aku ka maikaʻi o ka endocrine disruptors.
ʻAʻole pili i nā kemika hoʻonāukiuki a ʻaʻole paha, ʻaʻole maikaʻi ka pepa wela i ka ékologically (logically) friendly e kekahi wehewehe.
ʻAʻole paha ʻoe e hana i kahi hapa liʻiliʻi o ka nui i hana ʻia e ka cashier.Akā, pono e haʻi ʻia.
Hoʻoulu ʻia e kēia leka Hackaday e [Donald Papp], kuhikuhi kēia pou i ka waihona Arduino [Larry Bank] me ka paʻi kiʻi no nā mea paʻi wela, [Jeff Epler] he mea hou ma Adafruit (September 2021) 28th)'BLE Thermal " ʻO Cat” Printer Tutorial me CircuitPython [1][2][3] Ua hopena kēia i kahi hana paʻi kiʻi i alakaʻi ʻia e ka mea liʻiliʻi nani (akā ʻoi aku ke kumukūʻai IMHO) ʻo Adafruit CLUE nRF52840 Express Thermal printer me Bluetooth LE papa a me 1.3” 240 × 240 kala. Hōʻike IPS TFT ma ka papa.[4]
ʻO ka mea pōʻino, paʻi wale ka code CircuitPython i kahi kiʻi i hoʻoponopono mua ʻia e kahi noi hoʻoponopono kiʻi (e like me ka mea hoʻoponopono kiʻi kiʻi GIMP manuahi manuahi a wehe ʻia).[5] Akā, no ka pololei, kānalua wau inā he papa CLUE me ka Nordic nRF52840 Bluetooth LE kaʻina hana, 1 MB flash memory, 256KB RAM, a me ka 64 MHz Cortex M4 processor holo piha CircuitPython he lumi e hana mua i kekahi mea koe wale ke kiʻi. papahele.
Ua kākau ʻo [Jeff Epler]: I koʻu ʻike ʻana i ka mea paʻi "cat" ma kēia ʻatikala Hackaday (https://hackaday.com/2021/09/21/mini-wireless-thermal-printers-get-arduino-library -and-macos -app/), pono wau e hoʻomākaukau noʻu iho.Ua hana ka pepa palapala mua i hale waihona puke no Arduino, akā makemake au e hana i kahi mana kūpono no CircuitPython.
2. ʻO ke aʻo aʻoaʻo "BLE Thermal "Cat" a Adafruit me CircuitPython [kahi palapala html ʻaoʻao hoʻokahi]
https://cdn-learn.adafruit.com/downloads/pdf/ble-thermal-cat-printer-with-circuitpython.pdf?timestamp=1632888339
Ma ka hoʻohana ʻana i kā mākou pūnaewele a me nā lawelawe, ʻae maopopo ʻoe i ka waiho ʻana o kā mākou hana, hana a me nā kuki hoʻolaha.aʻo hou mai
Ka manawa hoʻouna: ʻOkakopa-13-2021