Daabacaha kulaylka yar ee wireless wuxuu helayaa maktabadda Arduino (iyo codsiga MacOS)

[Larry Bank] Maktabadda Arduino ee daabacaadda qoraalka iyo garaafyada ee BLE (Bluetooth Low Energy) daabacaha kulaylka wuxuu leeyahay sifooyin aad u wanaagsan wuxuuna u diri karaa shaqooyinka daabacaadda wireless-ka qaabab badan oo caadi ah sida ugu fudud ee suurtogalka ah.Madbacadahani waa kuwo yaryar, raqiis ah, iyo wireless.Tani waa isku-dar wanaagsan oo ka dhigaya kuwo soo jiidasho leh mashaariicda ka faa'iideysan kara daabacaadda nuqullada adag.
Sidoo kale kuma koobna qoraalka caadiga ah ee fudud.Waxaad isticmaali kartaa qaabka maktabadda Adafruit_GFX iyo xulashooyinka si aad u dhammaystirto wax soo saar horumarsan, oo aad u dirto qoraal qaabaysan qaab sawiro.Waxaad ka akhrisan kartaa dhammaan macluumaadka ku saabsan waxa ay maktabaddu qaban karto liiskan shaqooyinka kooban.
Laakiin [Larry] halkaas kuma joogsan.Intii uu tijaabinayay kontaroolayaasha yar yar iyo daabacayaasha kuleylka BLE, wuxuu sidoo kale rabay inuu si toos ah u sahamiyo isagoo isticmaalaya BLE si uu ula hadlo daabacayaashan Mackiisa.Print2BLE waa codsi MacOS ah kaas oo kuu ogolaanaya inaad u jiidto faylasha sawirada daaqada codsiga.Haddii saamaynta aragga hore ay wanaagsan tahay, badhanka daabacadu wuxuu ka dhigi doonaa inuu ka soo baxo daabacaha isagoo ah sawir 1-bpp ah
Madbacadaha kulaylka yar ayaa ku habboon mashaariicda nadiifka ah, sida kamaradaha Polaroid ee la beddelay.Hadda madbacadahan yar yar waa wireless iyo dhaqaale.Kaliya caawimaadda maktabadda noocaas ah ayaa arrimuhu fududaan karaan.Dabcan, haddii waxaas oo dhami ay u muuqdaan kuwo aad u fudud, waxaad isticmaali kartaa balasmaha si aad daabacaadda kulaylka dib ugu celiso daabacaadda kulaylka wakhti kasta.
Waxaan baadhayaa kaydka, waxaan la yaabanahay haddii uu jiro qof wax ka og madbacadahan raqiis ah, taas oo ah, Phomemo M02, M02s, iyo M02pro kuma jiraan kuwo ku habboon, laakiin raadinaya bisad, doofaar iyo daabacayaal kale, waxaa laga yaabaa inay ka badan yihiin ama ka yar yihiin isku mid. habka hoose?Waxa aad rabtaa in aad ogaato in ay khusayso maktabadda.Meel kale oo ku taal github oo loogu talagalay qoraallada phomemo python ee loogu daabaco linux.Waxyaabahani waa kuwo raqiis ah oo fiican in la ciyaaro.Waxaan rabaa inaad ogaato sababta ay u heli wayday soo jiidasho badan
Waxaa jira kala duwanaansho badan oo daabacadahan BLE ah.Gudaha, dhamaantood waxay yeelan karaan isla daabacaadda daabacaadda iyo UART interface, laakiin shirkadaha ku dara boodhadhka BLE waxay jecel yihiin inay wax ka beddelaan si ay u adkeeyaan isticmaalka ka baxsan codsiyadooda.Labada daabace ee aan taageerayo waa in dib loogu habeeyo codsiyadooda Android sababtoo ah ma taageeraan nidaamka ESC/POS ee amarka.GOOJPRT waxay u dhaqantaa si sax ah oo kaliya waxay soo dirtaa amarrada caadiga ah iyada oo loo marayo BLE.Waxaan ka shakisanahay in dad badan oo "qalaad" ah ay go'aansadaan inay isticmaalaan borotokoolka isgaarsiinta si ay kuugu qasbaan inaad isticmaasho abka moobaylka.
Sidaa darteed, haddii aan iibsado mid iyaga ka mid ah oo aan faaruqiyo oo aan furo qaybta BLE, markaa waxay u badan tahay inaad haysato kaliya daabacaha kuleylka UART?
Waxaan ku ciyaarayay Amazon's 80mm NETUM wiwirless/recharged printer.Waxay ku kacaysaa $80 waxaana lagu soo bandhigay dekedda com ee taxanaha ah.Waxay taageertaa ESC/POS, marka waxaan u qoray maktabadeyda PowerShell sawirada.Khasaaraha kaliya ee NETUM waa inuusan lahayn awoodda daabacaadaha aadka u weyn, laakiin tani waa qiimaha isafgaradka.Waxa aan ogaaday in aan qaadan karo duub duub oo dhexdhexaad ah oo badh ka mid ah ku rogi karo dabayl madhan.Waxay qaadataa wax ka yar shan daqiiqo, taas oo aan dhib weyn ahayn marka loo eego xawaaraha aan isticmaalo.
Jawaabta oo gaaban-haa!Tamarta Yaryar ee Bluetooth (BLE) aad bay ugu joogto aaladaha kala duwan, markaa ku dhaqangelinta Linux wax farqi ah ma samayn doonto.
Qoraalka la miisaami karo, khadadka fudud, iyo barcode-yada, looma baahna darawalo adag, sababtoo ah ku dhawaad ​​dhammaan daabacayaasha summada/ rasiidhada guud waxay taageeraan koodhka caadiga ah ee daabacaha Epson, oo sidoo kale loo yaqaan ESC/P.[1] Si aad u noqoto mid sax ah, calaamadee / rasiidka daabacayaasha kulaylka waxay isticmaalaan ESC/POS (Epson Standard Code/Point of Sale) kala duwanaanshaha.[2] Magaca ESC/P ama ESC/POS sidoo kale waa ku haboon yahay sababtoo ah waxaa jira calaamad ESCape (ASCII code 27) ka hor amarka daabacaha.
Madbacadaha kuleyliyaha/rasiidhada fudud ee ujeedada guud waxa si raqiis ah looga iibsan karaa mareegaha sida AliExpress.[3] Madbacadahan ujeedo-guud waxay leeyihiin isku-xidhka heerka RS-232 UART TTL kaasoo taageera ESC/POS.Isku xirka heerka RS-232 UART TTL si fudud ayaa loogu rogi karaa USB iyadoo la isticmaalayo UART/USB bridge chip (sida CH340x) ama fiilada.Wifi iyo BLE isku xirka bilaa-waayirka ah, waxa kaliya oo aad u baahan tahay in aad ku xidho moduleka sida moduleka Espressif ESP32 iyo UART TTL interface.[4] Ama ku dar 10-15 US dollars qiimaha guud ee daabacadaha kulaylka/rasiidhada, waxayna si toos ah u bixin doontaa USB/WiFi/BLE.Laakiin aaway madadaalo tan?
Markaad rabto inaad sawirto sawirka (zoom/dither/ beddelaad madow iyo caddaan) oo aad u dirto daabacaha calaamadda, darawal adag ayaa soo galaya.Daaqadaha, darawalka waxaa lagu bixiyaa khadka, ka raadi "Daabacaadda summada kuleylka Windows" oo aan lahayn "s".Aad bay ugu adag tahay kuwa yar-koontaroolada isticmaala summada caalamiga ah/madbacadaha rasiidka si ay u daabacaan sawirrada, taasina waa maktabadda Arduino [Larry Bank] waxay u muuqataa in loo qaaday heerka xiga.
3. Goojprt Qr203 58 mm micro micro-imbedded thermal printer Rs232+Ttl panel oo la jaan qaadaya Eml203, loo isticmaalo rasiidka barcode US $15.17 + US $2.67 Rarida:
4. Module wireless-ka NodeMcu V3 V2 Lua WIFI guddiga horumarinta ESP8266 ESP32 oo wata anteeno PCB ah iyo dekedda USB ESP-12E CP2102 USD 2.94 + USD 0.82 Khidmadda dhoofinta:
Waraaqda ay adeegsadaan madbacadahani waxay la xiriirtaa tiro badan oo dhibaatooyin caafimaad ah.Intaa waxaa dheer, maaha mid dib loo warshadayn karo ama deegaan ahaan u wanaagsan dhinac kasta.
Waxay ka kooban tahay bisphenol-a oo ah carqaladeeyaha endocrine ee xoogga leh.Jid ahaan, alaabada aan ku jirin BPA waxay inta badan ku jiraan BPA-farsamo ahaan ka duwan, laakiin ka sii xun carqaladeeyayaasha endocrine.
Iyadoo aan loo eegin kiimikooyinka xanaaqa ama aan ahayn, warqad kuleylku maaha mid deegaan ahaan (macquul ahaan) saaxiibtinimo u leh qeexitaan kasta
Uma badna inaad wax ka qabato qayb yar oo ka mid ah lacagta uu sameeyay khasnajigu.Laakiin waxaa mudan in la xuso.
Waxaa dhiirigeliyay boostada Hackaday ee [Donald Papp], boostadani waxay tilmaamaysaa [Larry Bank] ee Arduino maktabadda oo leh daabacaad sawireed oo loogu talagalay daabacayaasha kuleylka, [Jeff Epler] wuxuu ku leeyahay mid cusub Adafruit (Sebtembar 2021) 28th)'BLE Thermal " Tababbarka Daabacaadda Bisadda ee CircuitPython [1] [2] [3] Tani waxay keentay shaqo daabacaad sawireed oo ay wadaan kuwa yar oo qurux badan (laakiin halkii qaali ah IMHO) Adafruit CLUE nRF52840 Express Thermal printer oo leh boodhka Bluetooth LE iyo 1.3" 240 × 240 midab IPS TFT soo bandhigida dusha sare.[4]
Nasiib darrose, koodka CircuitPython wuxuu daabacaa kaliya sawir uu sii diyaariyay codsiga tafatirka sawirka (sida il furan oo furan oo iskutallaab ah tifaftiraha sawirka GIMP).[5] Laakiin si aan cadaalad u ahaado, waxaan ka shakisanahay haddii guddiga CLUE oo leh Nordic nRF52840 Bluetooth LE processor, 1 MB flash memory, 256KB RAM, iyo 64 MHz Cortex M4 processor oo buuxa CircuitPython wuxuu leeyahay meel uu ku hormariyo wax kasta marka laga reebo fudud. loox.
[Jeff Epler] ayaa qoray: Markii aan ku arkay daabacaha "bisad" maqaalkan Hackaday (https://hackaday.com/2021/09/21/mini-wireless-thermal-printers-get-arduino-library -and-macos) -app/), Kaliya waxaan u baahanahay inaan mid naftayda u diyaariyo.Boodhka asalka ah wuxuu u sameeyay Arduino maktabad, laakiin waxaan rabay inaan sameeyo nooc ku habboon CircuitPython.
2. Adafruit's “BLE Thermal “Cat” Printer oo leh tabobarka CircuitPython [qaabka html bog keliya]

https://cdn-learn.adafruit.com/downloads/pdf/ble-thermal-cat-printer-with-circuitpython.pdf?timestamp=1632888339

Adigoo isticmaalaya mareegahayaga iyo adeegyadayada, waxaad si cad u ogolaatay meelaynta waxqabadkayaga, shaqayntayada iyo cookies-ka xayaysiintawax dheeri ah baro


Waqtiga boostada: Oct-13-2021