You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 28, 2026. It is now read-only.
Oooh, this is basically what I wished the instax was when it first launched!
I've not got any reason to buy one for myself sadly, but happy to help support someone else adding it to this library.
At a guess, I would imagine that Fujifilm will have likely used the same communications protocol under the covers, but have switched from WiFi to bluetooth. If this is the case, then it should make it pretty easy to adapt this library to work with it.
[27085.469143] usb 3-2.1: USB disconnect, device number 8
[28991.907737] usb 3-2.1: new full-speed USB device number 9 using xhci_hcd
[28992.044195] usb 3-2.1: New USB device found, idVendor=04cb, idProduct=5019, bcdDevice= 2.00
[28992.044200] usb 3-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[28992.044202] usb 3-2.1: Product: instax mini Link1
[28992.044205] usb 3-2.1: Manufacturer: FUJIFILM
[28992.044207] usb 3-2.1: SerialNumber: 00000000001A
[28992.100359] cdc_acm 3-2.1:1.0: ttyACM0: USB ACM device`
ok -> CDC ACM (serial port over USB)
Bluetooth find 2 devices:
INSTAX-10669469(ANDROID) typ printer but can not connect
INSTAX-10669469(IOS) typ unkown it is possible to connect
[INSTAX-10669469(IOS)]# info
Device FA:AB:BC:4D:1A:FA (random)
Name: INSTAX-10669469(IOS)
Alias: INSTAX-10669469(IOS)
Paired: yes
Trusted: yes
Blocked: no
Connected: yes
LegacyPairing: no
UUID: Generic Access Profile (00001800-0000-1000-8000-00805f9b34fb)
UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
UUID: Device Information (0000180a-0000-1000-8000-00805f9b34fb)
UUID: Vendor specific (0000e0ff-3c17-d293-8e48-14fe2e4da212)
UUID: Vendor specific (70954782-2d83-473d-9e5f-81e1d02d5273)
Modalias: bluetooth:v005Dp0000d0100
ManufacturerData Key: 0x04d8
ManufacturerData Value:
01 00 ..
RSSI: -46
TxPower: 0
Last year, I successfully translate this project to iOS project with swift language.
So I purchased a mini link to test.
There are three characteristics can read or write
0xFFE1 (Write Notify)
0xFFE9 (Write)
0xFFEA (Notify)
When I tried to sendPrePrintCommand with cmdNumber from 1 to 8, it gets no response at all.
So I think they have changed communications protocol.
If we could get a complete set of interactions between the android app and the mini this way, we should be able to figure out what's going on.
I'm unlikely to buy another instax printer, but if we can get the wireshark logs uploaded, I'd be happy to go through and see if I can match them to this API.
Hi will try it with my Moto G5 with LineageOS.I find the developer
options. Now i have to find the log.
Am Montag, den 28.12.2020, 01:39 -0800 schrieb James Sutton:
I suspect that you're right @caichunjian520, the jump to bluetooth
would have probably have instigated more changes deeper down the
stack too. However, this actually should be pretty easy to reverse
engineer compared to the original instax devices.
If anyone has an instax mini and an android device, they can enable
the Bluetooth HCI snoop log, which I have a feeling will let you log
all of your bluetooth traffic and then analyse it in WireShark on
your computer (
https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device
)
If we could get a complete set of interactions between the android
app and the mini this way, we should be able to figure out what's
going on.
I'm unlikely to buy another instax printer, but if we can get the
wireshark logs uploaded, I'd be happy to go through and see if I can
match them to this API.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
I just try to get the BLE HCI log file. There are two files when printing a photo with mini link printer.
One file with extension .log, another with extension .last
In order to get the smallest data file. I just switch on the HCI log option, select image, and print, then switch off the log option. So it would be quicker to analyse.
I print two photos, each has 2 files. So there are total 4 files to analyse.
Ok, These logs look perfect!
For reference, I'm viewing them in wireshark with the btspp filter on as these look like the actual commands / responses between the device and the phone.
Some first observations:
Command Packets start with 0x41 0x62 and Response packets start with 0x61 0x42
The next two bytes appear to be the total length of the packet.
The final byte is a two's complement checksum - 1 for some reason
I'm starting to write some parsing code for the log files you've provided me with, will update here as I find more 👍🏻
Ok getting a bit further now, here are what I think some of the commands / responses are:
(I'm stripping the headers out for the payloads to make things tidier below.
Command Payload
Response Payload
Notes
0007 0000
0010 0000 0001 0000 0000 0000 00
0008 0001 00
0012 0001 0000 0846 554a 4946 494c 4d
ASCII for FUJIFILM, byte 6 is string length, 8
0008 0001 01
000e 0001 0001 0453 502d 34
ASCII for SP-4, byte 6 is length, 8
0008 0001 02
0012 0001 0002 0831 3034 3538 3634 37
ASCII for 10458647 (Serial Number) byte 6 is length, 8
0008 0001 03
000e 0001 0003 0430 3030 30
ASCII for 0000 byte 6 length, 4
0008 0001 04
000e 0001 0004 0430 3130 32
ASCII for 0102 byte 6 length, 4
0008 0001 05
000e 0001 0005 0431 2e30 30
ASCII for 1.00
0008 0002 00
0013 0002 0000 0258 0320 0200 0002 5800
0007 2010
000a 2010 0000 00
0009 3002 0203
0009 3002 0003
0137......
0008 3001 00
This is a big command, not big enough for image data thought
0008 0002 02
0011 0002 0002 2600 000d 0000 0000
0008 0002 03
0011 0002 0003 0000 0004 0000 0001
0008 0002 01
000d 0002 0001 0232 0010
0007 3000
000f 3000 0000 10ff f0fb f000
038f......
000c 1001 0000 0000 02
Lots of these, and huge, definitely the image being sent.
There are a few more, but I'll pause there for now..
This Protocol, definitely seems to be a step-change from the previous one used on the SP-1,2 and 3. Not surprising given the new form factor and communication method (Bluetooth rather than WiFi). From what I've seen already, it would appear that they've had some time to reflect and improve on the old one (always a good thing, but just means a bit more work for us!)
The Plan!
[ ] Create a new mini-link branch
[ ] Build out a packet library for the mini link / sp-4
[ ] Build out the test harness and appropriate bluetooth serial code
[ ] Test with App & test harness
[ ] Flesh out Packet Library
[ ] Test with real device
[ ] Merge mini-link branch back to master
I can probably get away with doing most of the steps above, and am more than happy to. But will definitely need some help in testing with the real device eventually!
I have a question. I worked on several BLE projects on iOS as well as Android. All of them need to set notify for listening data change from peripheral device. Or send byte array to characteristic to send data.
Based on the log file. I can't figure out which characteristic I should write data. does it work with RFCOMM protocol?
This is awesome folks! Sorry I've not been more involved, work has been mad and I still don't have a bluetooth version of the printer so can't do much myself at the moment. I need to do some general improvements to the existing library though, so will have a think about how the bluetooth components could be merged in.
I was able to print one of the above photos from my Python code! I didn't manage to print my own image yet; there are still some values I'm not sure about which I need to calculate per image. But very close!
It works! I can now print my own images straight from Python on my computer:
This working code is not online yet: I need to do a little rewrite to make it easier to use, but you should be able to find it over at my instax-ble repo somewhere in the coming days. I'll also move any activity on the process over to that repo's issues.
Huge thanks to everyone in this thread who shared their insights / logs!
@jpwsutton It would be great if we could merge the code at some point, but at the same time it might not really be necessary as they're for different devices? Not sure, but we can check once you've made your updates and I've rewritten my code to work as a proper library (instead of being a bunch of separate testing methods like now).
In the meantime I'll make sure the next readme.md update will include a clear link to your code for anyone running the wifi version of these printers.
Reacted by Francisco E, Daniel Hochman, tempepe, Damian Lion, Jay and Max
This is super exciting, Jasper. I’m curious—how long at present would you guess it takes for the printer to begin printing once you’ve started the script?
yehaaa, i got to put the printer in receiver mode (Download_Start)
Sending image packet like @caichunjian520 -> 41 62 / 03 8F / 10 01 / 00 00 00 n / image block bytes / checksum with 900 Bytes for Image Data does not make the status bar on the printer appear (think, this should happen) and after sending the end and print code all of my prints are looking similar:
@hermanneduard Just updated my repo. Check the readme for some notes on how to use it. It's far from finished but you should be able to print an image. Check the script at the bottom of InstaxBle.py for an example of setting the LEDs and printing.
If you have any trouble, be sure to open an issue over there (instead of in this repo).
I just got it working on a Raspberry Pi 4B running 64 bit Raspberry Pi OS, talking to an Instax Wide Link printer. I had to install the dependencies manually, and Pillow had issues installing, which I guess is known with the Raspi. That done, it works great!
Activity
jpwsutton commentedon May 27, 2020
Oooh, this is basically what I wished the instax was when it first launched!
I've not got any reason to buy one for myself sadly, but happy to help support someone else adding it to this library.
At a guess, I would imagine that Fujifilm will have likely used the same communications protocol under the covers, but have switched from WiFi to bluetooth. If this is the case, then it should make it pretty easy to adapt this library to work with it.
caichunjian520 commentedon Dec 23, 2020
Does instax mini link use the same communications protocol as sp-2? If the answer is true, I gonna buy a mini link instead of sp-2.
netzwanze commentedon Dec 23, 2020
dmesg:
ok -> CDC ACM (serial port over USB)
Bluetooth find 2 devices:
caichunjian520 commentedon Dec 24, 2020
Last year, I successfully translate this project to iOS project with swift language.
So I purchased a mini link to test.
There are three characteristics can read or write
0xFFE1 (Write Notify)
0xFFE9 (Write)
0xFFEA (Notify)
When I tried to sendPrePrintCommand with cmdNumber from 1 to 8, it gets no response at all.
So I think they have changed communications protocol.
jpwsutton commentedon Dec 28, 2020
I suspect that you're right @caichunjian520, the jump to bluetooth would have probably have instigated more changes deeper down the stack too. However, this actually should be pretty easy to reverse engineer compared to the original instax devices.
If anyone has an instax mini and an android device, they can enable the Bluetooth HCI snoop log, which I have a feeling will let you log all of your bluetooth traffic and then analyse it in WireShark on your computer (https://support.honeywellaidc.com/s/article/How-to-capture-Bluetooth-traffic-from-and-to-an-Android-Device)
If we could get a complete set of interactions between the android app and the mini this way, we should be able to figure out what's going on.
I'm unlikely to buy another instax printer, but if we can get the wireshark logs uploaded, I'd be happy to go through and see if I can match them to this API.
netzwanze commentedon Dec 28, 2020
caichunjian520 commentedon Dec 28, 2020
I just try to get the BLE HCI log file. There are two files when printing a photo with mini link printer.
One file with extension .log, another with extension .last
In order to get the smallest data file. I just switch on the HCI log option, select image, and print, then switch off the log option. So it would be quicker to analyse.
I print two photos, each has 2 files. So there are total 4 files to analyse.
Image a
https://www.dropbox.com/s/z282i2fbl9ldo7p/btsnoop_hci_image_a.log?dl=0
https://www.dropbox.com/s/22uen29t8s0fhv4/btsnoop_hci.log_image_a.last?dl=0
Image b
https://www.dropbox.com/s/2h05637o8nhnime/btsnoop_hci_image_b.log?dl=0
https://www.dropbox.com/s/13qwm7lz2rq85f5/btsnoop_hci.log_image_b.last?dl=0
netzwanze commentedon Dec 29, 2020
jpwsutton commentedon Dec 31, 2020
Ok, These logs look perfect!
For reference, I'm viewing them in wireshark with the
btsppfilter on as these look like the actual commands / responses between the device and the phone.Some first observations:
0x41 0x62and Response packets start with0x61 0x42I'm starting to write some parsing code for the log files you've provided me with, will update here as I find more 👍🏻
jpwsutton commentedon Dec 31, 2020
Ok getting a bit further now, here are what I think some of the commands / responses are:
(I'm stripping the headers out for the payloads to make things tidier below.
0007 00000010 0000 0001 0000 0000 0000 000008 0001 000012 0001 0000 0846 554a 4946 494c 4dFUJIFILM, byte 6 is string length, 80008 0001 01000e 0001 0001 0453 502d 34SP-4, byte 6 is length, 80008 0001 020012 0001 0002 0831 3034 3538 3634 3710458647(Serial Number) byte 6 is length, 80008 0001 03000e 0001 0003 0430 3030 300000byte 6 length, 40008 0001 04000e 0001 0004 0430 3130 320102byte 6 length, 40008 0001 05000e 0001 0005 0431 2e30 301.000008 0002 000013 0002 0000 0258 0320 0200 0002 58000007 2010000a 2010 0000 000009 3002 02030009 3002 00030137......0008 3001 000008 0002 020011 0002 0002 2600 000d 0000 00000008 0002 030011 0002 0003 0000 0004 0000 00010008 0002 01000d 0002 0001 0232 00100007 3000000f 3000 0000 10ff f0fb f000038f......000c 1001 0000 0000 02There are a few more, but I'll pause there for now..
This Protocol, definitely seems to be a step-change from the previous one used on the SP-1,2 and 3. Not surprising given the new form factor and communication method (Bluetooth rather than WiFi). From what I've seen already, it would appear that they've had some time to reflect and improve on the old one (always a good thing, but just means a bit more work for us!)
The Plan!
[ ] Create a new mini-link branch
[ ] Build out a packet library for the mini link / sp-4
[ ] Build out the test harness and appropriate bluetooth serial code
[ ] Test with App & test harness
[ ] Flesh out Packet Library
[ ] Test with real device
[ ] Merge mini-link branch back to master
I can probably get away with doing most of the steps above, and am more than happy to. But will definitely need some help in testing with the real device eventually!
netzwanze commentedon Jan 1, 2021
Great. I will test with my mini link.
caichunjian520 commentedon Jan 1, 2021
I have a question. I worked on several BLE projects on iOS as well as Android. All of them need to set notify for listening data change from peripheral device. Or send byte array to characteristic to send data.
Based on the log file. I can't figure out which characteristic I should write data. does it work with RFCOMM protocol?
16 remaining items
jpwsutton commentedon Dec 16, 2022
This is awesome folks! Sorry I've not been more involved, work has been mad and I still don't have a bluetooth version of the printer so can't do much myself at the moment. I need to do some general improvements to the existing library though, so will have a think about how the bluetooth components could be merged in.
javl commentedon Dec 16, 2022
I was able to print one of the above photos from my Python code! I didn't manage to print my own image yet; there are still some values I'm not sure about which I need to calculate per image. But very close!
hermanneduard commentedon Dec 16, 2022
@javl do you have this working code for printing an image over bluetooth?
Just working on an xcode project, but dont get it really ;(
javl commentedon Dec 17, 2022
It works! I can now print my own images straight from Python on my computer:
This working code is not online yet: I need to do a little rewrite to make it easier to use, but you should be able to find it over at my instax-ble repo somewhere in the coming days. I'll also move any activity on the process over to that repo's issues.
Huge thanks to everyone in this thread who shared their insights / logs!
@jpwsutton It would be great if we could merge the code at some point, but at the same time it might not really be necessary as they're for different devices? Not sure, but we can check once you've made your updates and I've rewritten my code to work as a proper library (instead of being a bunch of separate testing methods like now).
In the meantime I'll make sure the next readme.md update will include a clear link to your code for anyone running the wifi version of these printers.
lanewinfield commentedon Dec 17, 2022
This is super exciting, Jasper. I’m curious—how long at present would you guess it takes for the printer to begin printing once you’ve started the script?
javl commentedon Dec 17, 2022
@lanewinfield Pretty much the same as with the app, couple of seconds.
hermanneduard commentedon Dec 17, 2022
Hmm, am i getting something wrong,
x41 x62 x00 x05 x01 x00 x56 should be the byte array to Shut_Down_ shouldnt it?
x41 x62 -> sending
x00 x05 -> length
x01 x00 -> Shut_Down
x56 checksum
does not work for me ;-(
javl commentedon Dec 18, 2022
@hermanneduard It should be
41 62 00 07 01 00 54(the message is 7 bytes long, not 5)But even then my printer doesn't seem to respond to this signal.
hermanneduard commentedon Dec 18, 2022
yehaaa, i got to put the printer in receiver mode (Download_Start)
Sending image packet like @caichunjian520 -> 41 62 / 03 8F / 10 01 / 00 00 00 n / image block bytes / checksum with 900 Bytes for Image Data does not make the status bar on the printer appear (think, this should happen) and after sending the end and print code all of my prints are looking similar:
https://www.dropbox.com/s/33vgh8d41ec3ahj/IMG_4146.jpg?dl=0
So i am pretty sure, the file upload does not work correctly, any suggestions?
The image data is exactly 900bytes, and for sure, i tried different images, but the print looks really similar ;-(
javl commentedon Dec 18, 2022
@hermanneduard I'll put my code online tonight or tomorrow.
hermanneduard commentedon Dec 18, 2022
You are the best, if anyone wants the adapted code for swift, let me know.
But it is damn dirty haha 😂
javl commentedon Dec 18, 2022
@hermanneduard Just updated my repo. Check the readme for some notes on how to use it. It's far from finished but you should be able to print an image. Check the script at the bottom of
InstaxBle.pyfor an example of setting the LEDs and printing.If you have any trouble, be sure to open an issue over there (instead of in this repo).
grey-lensman2 commentedon Jan 16, 2024
I just got it working on a Raspberry Pi 4B running 64 bit Raspberry Pi OS, talking to an Instax Wide Link printer. I had to install the dependencies manually, and Pillow had issues installing, which I guess is known with the Raspi. That done, it works great!
jayavanth commentedon Dec 4, 2024
@grey-lensman2 wow that's amazing. Did you have to change anything? How did you modify the image size?
dgwilson commentedon Dec 18, 2025
Spreading the word in acknowledgement of the excellent contributions by everyone here. It still needs a little work, that's called out in the readme.md. https://github.com/dgwilson/ESP32-Instax-Bridge