so i every time when i try to conect my arduino h7 portenta vision shield lora. i use the exmple sketch:mjpeg_streamer_py.but when i connect to my iphone’s hotspot it say this error [CYW43] cyw43_kso_set(1): failed
sdio_transfer_cmd53: error=00000004 wr=1 len=64 dma=1 buf_idx=0 STA=00000000 SDMMC=00000000:00000c00 IDMA=00000001
[CYW43] send_ethernet failed: -16777220
sdio_transfer_cmd53: error=00000004 wr=1 len=128 dma=1 buf_idx=0 STA=00000000 SDMMC=00000000:00000c00 IDMA=00000001
sdio_transfer_cmd53: error=00000004 wr=1 len=128 dma=1 buf_idx=0 STA=00000000 SDMMC=00000000:00000c00 IDMA=00000001
i have try every thing switch cable UFL cannect switxhings etc i dont what to do
# This work is licensed under the MIT license.
# Copyright (c) 2013-2023 OpenMV LLC. All rights reserved.
# https://github.com/openmv/openmv/blob/master/LICENSE
#
# MJPEG Streaming
#
# This example shows off how to do MJPEG streaming to a FIREFOX webrowser
# Chrome, Firefox and MJpegViewer App on Android have been tested.
# Connect to the IP address/port printed out from ifconfig to view the stream.
import sensor
import time
import network
import socket
SSID = "iPhone 14 van maixent" # Network SSID
KEY = "********" # Network key
HOST = "" # Use first available interface
PORT = 8080 # Arbitrary non-privileged port
# Init sensor
sensor.reset()
sensor.set_framesize(sensor.QVGA)
sensor.set_pixformat(sensor.GRAYSCALE)
# Init wlan module and connect to network
wlan = network.WLAN(network.STA_IF)
wlan.active(True)
wlan.connect(SSID, KEY)
while not wlan.isconnected():
print('Trying to connect to "{:s}"...'.format(SSID))
time.sleep_ms(1000)
# We should have a valid IP now via DHCP
print("WiFi Connected ", wlan.ifconfig())
# Create server socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True)
# Bind and listen
s.bind([HOST, PORT])
s.listen(5)
# Set server socket to blocking
s.setblocking(True)
def start_streaming(s):
print("Waiting for connections..")
client, addr = s.accept()
# set client socket timeout to 5s
client.settimeout(5.0)
print("Connected to " + addr[0] + ":" + str(addr[1]))
# Read request from client
data = client.recv(1024)
# Should parse client request here
# Send multipart header
client.sendall(
"HTTP/1.1 200 OK\r\n"
"Server: OpenMV\r\n"
"Content-Type: multipart/x-mixed-replace;boundary=openmv\r\n"
"Cache-Control: no-cache\r\n"
"Pragma: no-cache\r\n\r\n"
)
# FPS clock
clock = time.clock()
# Start streaming images
# NOTE: Disable IDE preview to increase streaming FPS.
while True:
clock.tick() # Track elapsed milliseconds between snapshots().
frame = sensor.snapshot()
cframe = frame.to_jpeg(quality=35, copy=True)
header = (
"\r\n--openmv\r\n"
"Content-Type: image/jpeg\r\n"
"Content-Length:" + str(cframe.size()) + "\r\n\r\n"
)
client.sendall(header)
client.sendall(cframe)
print(clock.fps())
while True:
try:
start_streaming(s)
except OSError as e:
print("socket error: ", e)
# sys.print_exception(e)
Hi, it works as expected with my Arduino Portenta H7 and a Lora Vision Shield. Please update your firmware to the latest dev release. See Tools→Install Latest Dev Release.
I’m not sure, if you updated your firmware to the latest and it’s still not working then the hardware may be damaged. All I can say is that isn’t not a firmware bug. So, that just leaves a hardware issue.