[Larry Bank] Umtapo wezincwadi we-Arduino wokuphrinta umbhalo nezithombe kuphrinta eshisayo ye-BLE (Bluetooth Low Energy) unezici ezinhle kakhulu futhi ungathumela imisebenzi yokuphrinta okungenantambo kumamodeli amaningi ajwayelekile kalula ngangokunokwenzeka.Lawa maphrinta mancane, awabizi, futhi angenantambo.Lokhu kuhlanganisa okuhle okubenza bathandeke kumaphrojekthi angazuza ngokunyathelisa amakhophi aqinile.
Futhi ayikhawulelwe embhalweni omisiwe olula.Ungasebenzisa amafonti esitayela somtapo wezincwadi we-Adafruit_GFX nezinketho ukuze uqedele okukhiphayo okuthuthuke kakhulu, futhi uthumele umbhalo ofomethiwe njengemifanekiso.Ungafunda lonke ulwazi mayelana nokuthi umtapo wezincwadi ongayenza kanjani kulolu hlu olufushane lwemisebenzi.
Kodwa [uLarry] akagcinanga lapho.Ngenkathi ehlola ama-microcontroller namaphrinta ashisayo e-BLE, uphinde wafuna ukuhlola ngokuqondile esebenzisa i-BLE ukuze akhulume nalawa maphrinta kusuka ku-Mac yakhe.I-Print2BLE uhlelo lokusebenza lwe-MacOS olukuvumela ukuthi uhudule amafayela wesithombe efasiteleni lohlelo.Uma umphumela wokubuka kuqala umuhle, inkinobho yokuphrinta izoyenza iphume kuphrinta njengesithombe esi-1-bpp esiphambanisiwe.
Amaphrinta amancane ashisayo afanele amaphrojekthi ahlanzekile, njengamakhamera e-Polaroid alungisiwe.Manje lawa maphrinta amancane awanawaya futhi ayonga.Ngosizo lomtapo wolwazi onjalo kuphela lapho izinto zingaba lula khona.Yebo, uma konke lokhu kubonakala kulula kakhulu, ungasebenzisa i-plasma ukuze ubuyisele ukuphrinta okushisayo ekuphrinteni okushisayo nganoma yisiphi isikhathi.
Ngiphequlula inqolobane, ngiyazibuza ukuthi ngabe ukhona yini owaziyo ngalamaphrinta ashibhile, okungukuthi, i-Phomemo M02, M02s, kanye ne-M02pro akubaliwe njengahambisanayo, kodwa ngifuna ikati, ingulube namanye amaphrinta, angafana kakhulu noma afane. indlela eyisisekelo?Ufuna ukwazi ukuthi ingabe iyasebenza kulabhulali.Enye indawo yokugcina ku-github yemibhalo ye-phomemo python yokuphrinta ku-linux.Lezi zinto zishibhile futhi zipholile ukudlala.Ufuna ukwazi ukuthi kungani ingazange ithole ukudonsa okwengeziwe.
Kunezinhlobonhlobo eziningi zalawa maphrinta we-BLE.Ngaphakathi, bonke bangase babe ne-printhead efanayo ne-interface ye-UART, kodwa izinkampani ezengeza amabhodi e-BLE zithanda ukushintsha izinto ukuze kube nzima ukuzisebenzisa ngaphandle kwezicelo zabo.Amaphrinta amabili engiwasekelayo kufanele enziwe unjiniyela ngokuhlehla ngezinhlelo zawo zokusebenza ze-Android ngoba awasekeli isethi yomyalo ojwayelekile we-ESC/POS.I-GOOJPRT iziphatha kahle futhi ithumela kuphela imiyalo ejwayelekile nge-BLE.Ngiyasola ukuthi abantu abaningi “abangaziwa” banquma ukusebenzisa izimiso zokuxhumana ukuze bakuphoqe ukuthi usebenzise izinhlelo zabo zokusebenza zeselula.
Ngakho-ke, uma ngithenga eyodwa yazo bese ngiyithulula futhi ngikhiphe ingxenye ye-BLE, khona-ke kungenzeka ukuthi unephrinta eshisayo ye-UART kuphela?
Bengidlala ngephrinta ye-Amazon engu-80mm NETUM engenantambo/eshajwayo.Ibiza u-$80 futhi iboniswa embotsheni ye-serial com.Isekela i-ESC/POS, ngakho-ke ngibhale owami umtapo wezincwadi we-PowerShell wezithombe.Okuwukuphela kokubi kwe-NETUM ukuthi ayinawo amandla ama-rollers amakhulu kakhulu wephrinta, kodwa lena intengo yokubumbana.Ngithole ukuthi ngingathatha amaroli anosayizi omaphakathi futhi ngikhiphe uhhafu wawo ku-spool engenalutho.Kuthatha imizuzu engaphansi kwemihlanu, okungeyona inkinga enkulu ngokwejubane engiwasebenzisa ngalo.
Impendulo emfushane-yebo!I-Bluetooth Low Energy (BLE) ayiguquguquki kakhulu kumapulatifomu ahlukene, ngakho-ke ukuyisebenzisa ku-Linux ngeke kwenze mehluko omkhulu.
Ngombhalo ongakala, imigqa elula, namabhakhodi, azikho izishayeli eziyinkimbinkimbi ezidingekayo, ngoba cishe wonke amaphrinta amalebula/amarisidi asekela ikhodi evamile yephrinta ye-Epson, eyaziwa nangokuthi i-ESC/P.[1] Ukuze ucacise kabanzi, amaphrinta ashisayo elebula/amarisidi asebenzisa okuhlukile kwe-ESC/POS (Ikhodi Ejwayelekile ye-Epson/Iphoyinti Lokuthengisa).[2] Igama elithi ESC/P noma i-ESC/POS nalo lifanelekile ngoba kunohlamvu lwe-ESCape (ikhodi ye-ASCII 27) ngaphambi komyalo wephrinta.
Amaphrinta welebula/amarisidi alula wenjongo evamile angathengwa ngentengo ephansi kumawebhusayithi afana ne-AliExpress.[3] Lawa maphrinta enhloso evamile anesixhumanisi sezinga le-RS-232 UART TTL esisekela i-ESC/POS.Isixhumi esibonakalayo sezinga le-RS-232 UART TTL singaguqulelwa kalula ku-USB kusetshenziswa i-UART/USB bridge chip (efana ne-CH340x) noma intambo.Ngoxhumo olungenantambo lwe-WiFi ne-BLE, udinga kuphela ukuxhuma imojuli efana nemojuli ye-Espressif ESP32 kusixhumi esibonakalayo se-UART TTL.[4] Noma engeza u-10-15 wamadola ase-US enanini lamaphrinta amalebula ashisayo/amarisidi, futhi izohlinzeka ngokuqondile nge-USB/WiFi/BLE.Kodwa kuphi ubumnandi kulokhu?
Uma ufuna ukucubungula isithombe (sondeza/dither/ukuguqulwa okumnyama nokumhlophe) bese usithumela kuphrinta yelebula, umshayeli oyinkimbinkimbi uyangena.Ku-Windows, umshayeli unikezwa ku-inthanethi, cinga "umshayeli wephrinta yelebula ye-Windows thermal" ngaphandle kokuthi "s".Kuyinselele kakhulu kuma-microcontroller asebenzisa amaphrinta elebula lomhlaba wonke/amarisidi ukuze aphrinte izithombe, futhi leyo yilabhulali ye-Arduino [Larry Bank] ye-Arduino ibonakala iyiswa kwelinye izinga.
3. I-Goojprt Qr203 58 mm micro embedded thermal printer Rs232+Ttl panel ehambisana ne-Eml203, esetshenziselwa irisidi ibhakhodi US $15.17 + US $2.67 Ukuthumela:
4. Imojula engenantambo ye-NodeMcu V3 V2 Lua WIFI ibhodi yokuthuthukisa ESP8266 ESP32 ene-PCB antenna kanye nembobo ye-USB ESP-12E CP2102 USD 2.94 + USD 0.82 Imali yokuthumela:
Iphepha elisetshenziswa yilaba bashicileli lihlobene nenani elikhulu lezinkinga zempilo.Ngaphezu kwalokho, ayisebenzi kabusha noma ayihambisani nemvelo nganoma iyiphi indlela.
Iqukethe isiphazamisi se-endocrine esinamandla i-bisphenol-a.Ngendlela, imikhiqizo engaqukethe i-BPA ngokuvamile iqukethe i-BPA-ehlukile ngobuchwepheshe, kodwa iziphazamisi ze-endocrine ezimbi kakhulu.
Kungakhathalekile ukuthi amakhemikhali acasulayo noma cha, iphepha elishisayo alihambisani nemvelo (ngokunengqondo) nganoma iyiphi incazelo.
Akwenzeki ukuthi ubhekane nengxenye encane yenani elenziwe othatha imali.Kodwa kufanelekile ukusho.
Igqugquzelwe yilokhu okuthunyelwe kwe-Hackaday ka-[Donald Papp], lokhu okuthunyelwe kukhomba kulabhulali ye-Arduino [Larry Bank] enezithombe zokuphrinta amaphrinta ashisayo, [uJeff Epler] unokusha e-Adafruit (Septhemba 2021) 28th)'BLE Thermal “ Isifundo Sokuphrinta Sekati” esine-CircuitPython [1][2][3] Lokhu kubangele umsebenzi wokuphrinta izithombe oshayelwa i-IMHO encane enhle (kodwa ebizayo) i-Adafruit CLUE nRF52840 Express Thermal enebhodi le-Bluetooth LE kanye nombala ongu-1.3” 240×240 Isibonisi se-IPS TFT ebhodini.[4]
Ngeshwa, ikhodi ye-CircuitPython iphrinta kuphela isithombe esicutshungulwe kuqala uhlelo lokusebenza lokuhlela isithombe (njengesihleli sesithombe se-GIMP samahhala nesivulekile somthombo ovulekile).[5] Kodwa uma ngikhuluma iqiniso, ngiyangabaza ukuthi ibhodi le-CLUE elineprosesa ye-Nordic nRF52840 Bluetooth LE, inkumbulo ye-flash engu-1 MB, i-256KB RAM, kanye nephrosesa engu-64 MHz Cortex M4 esebenzisa i-CircuitPython ephelele inesikhala sokucubungula noma yini ngaphandle kokulula Isithombe- ipulangwe.
[UJeff Epler] wabhala: Lapho ngibona iphrinta “yekati” kulesi sihloko se-Hackaday (https://hackaday.com/2021/09/21/mini-wireless-thermal-printers-get-arduino-library -and-macos -app/), ngidinga ukuzilungisela eyodwa.Iphosta yasekuqaleni yenzela i-Arduino umtapo wolwazi, kodwa bengifuna ukwenza inguqulo efanele i-CircuitPython.
2. Isifundo se-Adafruit “BLE Thermal “Cat” esine-CircuitPython” [ifomethi ye-html yekhasi elilodwa]
https://cdn-learn.adafruit.com/downloads/pdf/ble-thermal-cat-printer-with-circuitpython.pdf?timestamp=1632888339
Ngokusebenzisa iwebhusayithi yethu namasevisi, uvumelana ngokusobala nokubekwa kwamakhukhi ethu okusebenza, ukusebenza namakhukhi okukhangisa.Funda kabanzi
Isikhathi sokuthumela: Oct-13-2021