Memory related error in ov5642

  1. Where did you get the camera module(s)?
    in online shopping mall
  2. Model number of the product(s)?
    0v5642
  3. What hardware/platform were you working on?
  • ubuntu
  • arduino - mega
  • 115200 baud rate
  1. Instructions you have followed. (link/manual/etc.)
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)
  1. 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
  1. The dmesg log from your hardware?
    I really want to do that.
    What log should I take and send?

  2. Troubleshooting attempts you’ve made?
    I’ve tried this far to get the image delivered.

  3. What help do you need?