Skip to content
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

WebSocket connection to 'ws://<ip>/ws' failed using M5STACK Stamp S3 #1140

Closed
ee02217 opened this issue Nov 30, 2023 · 11 comments
Closed

WebSocket connection to 'ws://<ip>/ws' failed using M5STACK Stamp S3 #1140

ee02217 opened this issue Nov 30, 2023 · 11 comments
Labels
bug Something isn't working need-repro Need to find a way to reproduce this wontfix This will not be worked on

Comments

@ee02217
Copy link

ee02217 commented Nov 30, 2023

Describe the bug

When enrolling an apple device, as soon as I connect from the iPhone or Apple Watch the following error is raised in the console:

index.js:1 WebSocket connection to 'ws://192.168.1.232/ws' failed: Close received after close

Version

v3.3.2b3

Active scan enabled

No response

Include filter

No response

Exclude filter

No response

Query filter

No response

Firmware flavor

No response

Device (be specific)

No response

Logs

index.js:1 WebSocket connection to 'ws://192.168.1.232/ws' failed: Close received after close
(anonymous) @ index.js:1

Screenshots

No response

@ee02217 ee02217 added the bug Something isn't working label Nov 30, 2023
@DTTerastar
Copy link
Contributor

Can you capture the serial output when you do this?

@ee02217
Copy link
Author

ee02217 commented Nov 30, 2023

Nothing comes out.
This is the only log from Serial:

ESP-ROM:esp32s3-20210327 Build:Mar 27 2021 rst:0x15 (USB_UART_CHIP_RESET),boot:0x28 (SPI_FAST_FLASH_BOOT) Saved PC:0x4206c1fd SPIWP:0xee mode:DIO, clock div:1 load:0x3fce3808,len:0x128 load:0x403c9700,len:0xb9c load:0x403cc700,len:0x2878 entry 0x403c98bc

@ee02217
Copy link
Author

ee02217 commented Nov 30, 2023

I was able to use other esp32 boards and enroll devices. So overall, the system is working fine.
Only enrollment in the M5 Stack doesn't work.

@DTTerastar DTTerastar changed the title Enrollment Crashes using M5STACK Stamp Enrollment Crashes using M5STACK Stamp S3 Nov 30, 2023
@DTTerastar
Copy link
Contributor

That's an s3, it looks like you need the Cdc build to get serial output.

@DTTerastar
Copy link
Contributor

I just tested w/ my AtomS3 Lite (http://docs.m5stack.com/en/core/AtomS3%20Lite) and it worked. Still need more info to reproduce.

@DTTerastar DTTerastar added the need-repro Need to find a way to reproduce this label Nov 30, 2023
@ee02217
Copy link
Author

ee02217 commented Nov 30, 2023

What is the CDC build?
I'm using this one: http://docs.m5stack.com/en/core/stamp_c3

@DTTerastar
Copy link
Contributor

C3 is different from S3. You've got to be using an s3 based on your serial output:

ESP-ROM:esp32s3-20210327

image
Cdc is for the ones that say cdc in this chart:

image

@ee02217
Copy link
Author

ee02217 commented Nov 30, 2023

This is the log when enrolling with the new build:

Connected to: 4f:d5:8f:d4:b1:13
MTU updated: 23 for connection ID: 2
0x2a29: onRead(), value: ESPresense
0x2a24: onRead(), value: office
Client ID: 2 Address: 4f:d5:8f:d4:b1:13 Subscribed to notfications for 0x2a37

@DTTerastar
Copy link
Contributor

That looks like success. So the mcu doesn't crash, but the UI seems to give up early?

@DTTerastar DTTerastar changed the title Enrollment Crashes using M5STACK Stamp S3 WebSocket connection to 'ws://<ip>/ws' failed using M5STACK Stamp S3 Nov 30, 2023
@ee02217
Copy link
Author

ee02217 commented Nov 30, 2023

That's correct. The countdown hangs and I can see the error reported initially in the console.

Copy link

stale bot commented May 29, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label May 29, 2024
@stale stale bot closed this as completed Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need-repro Need to find a way to reproduce this wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants