Git Product home page Git Product logo

Comments (7)

bytespider avatar bytespider commented on May 23, 2024

from meross.

freakinpenguin avatar freakinpenguin commented on May 23, 2024

Hey!
The problem is, that after the "meross setup"-command is sent (see command + log in the attached file), the socket powers off (expected) and reboots. When the socket starts it is blinking rapid green (according to doc this means it's trying to connect to Wifi - maybe also to the MQTT server). The socket stays in this state and after maybe 3-5 mins it returns into the configuration mode (yellow-green blinking).
I don't see it entering my wifi in my router logs nor a connection to the MQTT server.
2_SetupCommand+Result.txt

Concerning your wiki-page-edits:
I tried to add mqtt:// and mqtts:// in advance of the mqtt-server-ip-address+port but unfortunately that didn't change anything.

from meross.

bytespider avatar bytespider commented on May 23, 2024

If i recall correctly the Meross devices now require port 8883 and TLS
Heres my Mosquitto config

port 8883

require_certificate false
use_identity_as_username false

# replace with your CA Root
cafile ../certs/ca.crt

# replace with your server certificate and key paths
certfile ../certs/server.crt
keyfile ../certs/server.key

Here's the commands I used to create the certificates and keys

Create the Certificate Authority

openssl genrsa -des3 -out ca.key 2048
openssl req -new -x509 -days 1826 -key ca.key -out ca.crt

Create the certificate signing request.
It's important when asked for the FQDN in these next step to use the IP or domain name of the machine your MQTT instance is on. 192.168.188.43 according to the details in 2_SetupCommand+Result.txt above.

openssl genrsa -out server.key 2048
openssl req -new -out server.csr -key server.key

Create the final certificate

openssl x509 -req -in server.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out server.crt -days 360

from meross.

freakinpenguin avatar freakinpenguin commented on May 23, 2024

I tried the values you suggested, but didn't see any difference.
This would also be strange, as I can't see the socket in my routers wifi list. So I guess that setup procedure is slightly different in this hardware version. If I find some time I will power up wireshark and investigate...

Nevertheless, thanks for your suggestions!

from meross.

bytespider avatar bytespider commented on May 23, 2024

I'm surprised that your router can't see the device, the only thing I can think is the device, router, and MQTT are not on the same subnet.

Also if you haven't done so, try setting up using the cloud. Some users have reported that worked for them. I'm not convinced this is necessary one of my plugs never saw the cloud until recently when I paired it for a firmware upgrade.

from meross.

colinfitzpatrick avatar colinfitzpatrick commented on May 23, 2024

Can the offline + mqtt method work with the mss210?

I've tried without success - the ./meross setup --gateway 10.10.10.1 --wifi-ssid --wifi-pass --mqtt :8883 process failed with a socket hangup error?

from meross.

bytespider avatar bytespider commented on May 23, 2024

from meross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.