2016年4月24日日曜日

再び積層ズレ


ものの見事に積層ズレが発生した。
またかなと思って、ファームを最新にしたりEEPROMを1にしたり2にしたけど治らず
何だろうとしばらく悩んで、Y軸のモーターを見てみたら、ギアがたまに空転してる!
おいおい、ネジ緩んでたよ、、、
締め直して積層ズレは直りました。
緩み防止の措置をとるべきかもしれないなぁ


2016年4月5日火曜日

adafruite nrf51822 + WireShark 1.12.1 sniffing BLE thermal Printer PT-280

I got PT-280 Thermal Printer, but I couldn't use it with iOS (iPhone), till I  found GPrinter App on App Store, and I could print QR code by using that app.


Next, I want to make my own App to control Printer, so I try to use console app for BLE devices, but I couldn't control Printer.
I investigate about BLE, but it is not simple protocol.
Maybe I need BLE Protocol Sniffer, I found adafruite nrf51822.

 

Finally I could sniff BLE Protcol between PT-280 and iOS(GPrinter App).
Sniffed data can display by WireShark.
I confirmed Advertising -> Connecting -> Master/Slave -> Sending Data process.
Steps are bellow.

1. Download WireShark 1.12.1 (OSX) and install it.
    (WireShark2 is not work with BLE sniffer)
    Install XQuartz if necessary.(Maybe from Apple)
2. Download ble-sniffer-osx_V1.2.3 from here, and install it.
3. Launch WireShark
   (You should set XQuartz Path <-- Path:Application/Utility/XQuartz)
   Terminate WireShark at this point.
4. Launch ble-sniffer-osx (Exist in Application folder)
    and follow bellow site.
https://learn.adafruit.com/introducing-the-adafruit-bluefruit-le-sniffer/os-x-support