bpmct
05/04/2025, 3:29 PMjag flash --port /dev/cu.usbmodem2101 but it otherwise does not show up on jag port, jag flash, or jag monitor.
I am also finding cases where it lets me manually specify the port with jag flash, but jag monitor isn't able to pick it up... Any ideas? I'm using an esp32s3 and this version:
➜ toit-zygote git:(fixes) ✗ jag version
Version: v1.50.3
SDK version: v2.0.0-alpha.179
Build date: 2025-04-01T08:09:19Zfloitsch
05/04/2025, 3:30 PMjag scan is responsible for finding devicesfloitsch
05/04/2025, 3:30 PMfloitsch
05/04/2025, 3:31 PMfloitsch
05/04/2025, 3:32 PMjag scan 192.168.0.42 (for example)bpmct
05/04/2025, 3:33 PMjag scan seems to be failing and I cannot visit the HTTP server of it broadcasting:
My flash command:
[jaguar.http] INFO: running Jaguar device 'vigilant-photo' (id: 'a8e4b36b-7d2b-4caf-9152-884514ae379a') on 'http://192.168.5.37:9000'floitsch
05/04/2025, 3:33 PMjag scan it should remember the IP and finding the device should be more stable.floitsch
05/04/2025, 3:34 PMbpmct
05/04/2025, 3:34 PMsh
➜ toit-zygote git:(fixes) ✗ jag scan 192.168.5.37
Scanning for device with address: '192.168.5.37'
Error: Get "http://192.168.5.37:9000/identify": context deadline exceededbpmct
05/04/2025, 3:34 PMfloitsch
05/04/2025, 3:35 PMfloitsch
05/04/2025, 3:35 PMbpmct
05/04/2025, 3:35 PMfloitsch
05/04/2025, 3:36 PMfloitsch
05/04/2025, 3:36 PMbpmct
05/04/2025, 3:36 PMjag is natively unaware of the device but I have to hardcode the port.
Some combination of re-setting and un-plugging the device often gets it back into shape for a period.floitsch
05/04/2025, 3:37 PMbpmct
05/04/2025, 3:37 PMjag flash and jag monitorbpmct
05/04/2025, 3:38 PMjag monitor after jag flash shows:
waiting for download
So I have been pressing the reset button for around 1.5s and that seems to consistently run jaguar as opposed to the esp32 "base" firmware...bpmct
05/04/2025, 3:38 PMsh
➜ toit-zygote git:(fixes) ✗ jag monitor --port /dev/cu.usbmodem2101
Starting serial monitor of port '/dev/cu.usbmodem2101' ...
[toit] INFO: starting <v2.0.0-alpha.179>
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403851c6
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2810,len:0xdc
load:0x403c8700,len:0x4
load:0x403c8704,len:0xa08
load:0x403cb700,len:0x257c
entry 0x403c8854
[toit] INFO: starting <v2.0.0-alpha.179>
[toit] DEBUG: clearing RTC memory: powered on by hardware source
[toit] INFO: running on ESP32S3 - revision 0.1
[toit] INFO: using SPIRAM for heap metadata and heap
[wifi] DEBUG: connecting
[wifi] DEBUG: connected
[wifi] INFO: network address dynamically assigned through dhcp {ip: 192.168.5.37}
[wifi] INFO: dns server address dynamically assigned through dhcp {ip: [192.168.5.1]}
[jaguar.http] INFO: running Jaguar device 'ultimate-noise' (id: '46198077-b96b-47d1-acf6-6fdff231c2db') on 'http://192.168.5.37:9000'floitsch
05/04/2025, 3:38 PMbpmct
05/04/2025, 3:38 PMfloitsch
05/04/2025, 3:39 PMbpmct
05/04/2025, 3:39 PMfloitsch
05/04/2025, 3:39 PMbpmct
05/04/2025, 3:39 PMbpmct
05/04/2025, 3:40 PMsh
➜ toit-zygote git:(fixes) ✗ jag monitor --port /dev/cu.usbmodem2101
Starting serial monitor of port '/dev/cu.usbmodem2101' ...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x0 (DOWNLOAD(USB/UART0))
Saved PC:0x40041a76
waiting for downloadfloitsch
05/04/2025, 3:40 PMfloitsch
05/04/2025, 3:41 PMfloitsch
05/04/2025, 3:41 PMfloitsch
05/04/2025, 3:42 PMbpmct
05/04/2025, 3:42 PMbpmct
05/04/2025, 3:43 PMbpmct
05/04/2025, 3:44 PMfloitsch
05/04/2025, 3:44 PMbpmct
05/04/2025, 3:47 PMjag from source and trying that?floitsch
05/04/2025, 3:47 PMbpmct
05/04/2025, 3:47 PMping doesn't seem to work...
Will give it a shot 👍floitsch
05/04/2025, 3:47 PMfloitsch
05/04/2025, 3:48 PMbpmct
05/04/2025, 4:04 PMjag port at alll... Any idea why that is?
sh
➜ toit-zygote git:(fixes) ✗ ls /dev/cu.*
/dev/cu.Bluetooth-Incoming-Port /dev/cu.usbmodem2101
/dev/cu.debug-console
➜ toit-zygote git:(fixes) ✗ jag port
/dev/cu.debug-console
➜ toit-zygote git:(fixes) ✗floitsch
05/04/2025, 4:06 PMfloitsch
05/04/2025, 4:07 PMfloitsch
05/04/2025, 4:08 PMfloitsch
05/04/2025, 4:09 PMbpmct
05/04/2025, 4:09 PMfloitsch
05/04/2025, 4:10 PMbpmct
05/04/2025, 4:10 PMbpmct
05/04/2025, 4:11 PMjag became aware of it, I didn't have to manually specify port and web server workedfloitsch
05/04/2025, 4:11 PMbpmct
05/04/2025, 4:12 PMfloitsch
05/04/2025, 4:12 PMbpmct
05/04/2025, 4:49 PM192.168.1.x however this IP is 192.168.5.x
sh
➜ toit-zygote git:(fixes) ✗ jag monitor --port /dev/cu.usbmodem2101
✔ /dev/cu.usbmodem101
Starting serial monitor of port '/dev/cu.usbmodem101' ...
[toit] INFO: starting <v2.0.0-alpha.179>
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0x15 (USB_UART_CHIP_RESET),boot:0x8 (SPI_FAST_FLASH_BOOT)
Saved PC:0x403851c6
SPIWP:0xee
mode:DIO, clock div:1
load:0x3fce2810,len:0xdc
load:0x403c8700,len:0x4
load:0x403c8704,len:0xa08
load:0x403cb700,len:0x257c
entry 0x403c8854
[toit] INFO: starting <v2.0.0-alpha.179>
[toit] DEBUG: clearing RTC memory: powered on by hardware source
[toit] INFO: running on ESP32S3 - revision 0.1
[toit] INFO: using SPIRAM for heap metadata and heap
[wifi] DEBUG: connecting
[wifi] DEBUG: connected
[wifi] INFO: network address dynamically assigned through dhcp {ip: 192.168.5.37}
[wifi] INFO: dns server address dynamically assigned through dhcp {ip: [192.168.5.1]}
[jaguar.http] INFO: running Jaguar device 'musing-neck' (id: '84db983d-f661-4aba-9d53-2bfcd5019e0d') on 'http://192.168.5.37:9000'
I was playing around with the captive portal stuff that messes with DNS, but I would have assumed a jag flash would have reset everythingbpmct
05/04/2025, 4:57 PMjag flash doesn't really seem to be doing anything (or respecting my wifi config) and its connected to a secondary network I have that I configured on my captive portal a while agobpmct
05/04/2025, 4:57 PMbpmct
05/04/2025, 5:14 PMesptool erase_flash did the trick... The jag flash didn't seem to erase the WiFi credentials I already had set via my captive portal codebpmct
05/04/2025, 5:14 PMjag port thing, it's no big deal and happening less frequently. I did set up a local build of jag so if I repro again I'll investigate and put up a PRbpmct
05/04/2025, 5:15 PMesptool erase_flash ☑️floitsch
05/04/2025, 6:59 PM