- Where did you get the camera module(s)?
in online shopping mall - Model number of the product(s)?
0v5642 - What hardware/platform were you working on?
- ubuntu
- arduino - mega
- 115200 baud rate
- Instructions you have followed. (link/manual/etc.)
- 1 GitHub - ArduCAM/Arduino: This is ArduCAM library for Arduino boards
arduino/ArduCAM/examples/mini/ArduCAM_Mini_5MP_Plus_Video_Streaming
mode = 1
- 2 It is configured to save as an image file.
data = ""
stop = 0
while True:
if s.isOpen():
#print("opened")
lines = s.read()
out_hex = ['{:02X}'.format(b) for b in lines]
#print(out_hex)
h_temp = ""
for h in out_hex:
print(h)
if h_temp == "FF" or h == "D9":
data += h
stop = 1
print("Found footer")
break
else:
data += h
h_temp = h
#print(h)
if stop == 1:
break
data_b = binascii.a2b_hex(data)
with open(r"buffer.jpg", "wb") as f:
f.write(data_b)
- Problems you were having?
I want to save data with py and create an image file.
However, the hexadecimal message transmitted as a byte from Arduino was as follows.
I got a msg :
ACK CMD ArduCAM Start! END
ACK CMD SPD inside Error! END
ACK CMD CM
-
The dmesg log from your hardware?
I really want to do that.
What log should I take and send? -
Troubleshooting attempts you’ve made?
I’ve tried this far to get the image delivered. -
What help do you need?