-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SP-1 attempts #10
Comments
I got
I believe the first traceback is an unknown packet type number 64; a previous version of
I've attached the JSON log as sp1json.zip |
The SP-1 resolution is 480x640. Changing the image size (and numbers in |
Updating the image sending code to be more aligned with the lower resolution also doesn't help: self.sendPrepImageCommand(16, 0, 921600)
for segment in range(16): Neither does forcing it to keep sending: def sendSendImageCommand(self, sequenceNumber, payloadBytes):
"""Send an Image Segment Command."""
cmdPacket = SendImageCommand(Packet.MESSAGE_MODE_COMMAND,
sequenceNumber=sequenceNumber,
payloadBytes=payloadBytes)
try:
response = self.sendCommand(cmdPacket)
except:
response = None
return response That just pushes the communication timeout to the T83 command after. Suggestions welcome! |
@jpwsutton any advice on next steps? I'll be trying to get this working at a hackathon weekend after next. |
In my fork at https://github.com/vitorio/instax_api I have a working simulator, which can impersonate an SP-1 and receive the older format 640x480 JPEG data from the Instax Share mobile app; and a working client, which can successfully send an older format 640x480 JPEG to the simulator. The client continues to fail to send to the real SP-1 printer, however. The error is the same as the one in the opening issue:
Not sure what's the next debugging step. Is sniffing with Wireshark my only option? Is there some sort of comparison I can do with the JSON logs on the server side? |
First draft SP1 support which works with my REAL device: master...cool2man:master The trick was to capture the wifi traffic between the app on a smartphone and the printer. Images are sent as JPEG images, not as RGB data. Changing from RGB (mode 10) to JPEG (mode 2) was the most important fix to get my SP1 working. |
I can finally confirm @cool2man's branch works with a real SP-1! Very exciting, I'm going sort out the differences and merge them into my branch. |
In addition to @cool2man's comments about sending JPEG images directly, and changing the mode, other differences appear to be:
|
Hi! Excited to see this project, and I'm interested in SP-1 support.
Using
sp2.py
as a base, initial communication with an SP-1 is successful if I remove:and
from
getPrinterInformation()
.With that, it gets as far as attempting to send the photo to the printer:
According to the log, the "prep command" receives a response; it's the first "Send Image" command that does not.
The text was updated successfully, but these errors were encountered: