This is an old revision of the document!


IoT moodulite konfigureerimine

Lühijuhend IoT Kodulabori moodulite konfigureerimiseks nii, et need töötaks mõne muu valitud ruuteri või MQTT-broker-iga. IoT Kodulabori kontrollerimoodulite konfigureerimiseks on vajalik järgmine:

  1. Wifi nimi ja parool.
  2. MQTT broker-i IP aadress, port, kasutajanimi ja parool (Kui see on määratud).
  3. Sülearvuti/PC, millel on olemas WiFi tugi ja programm HTTP POST päringute saatmiseks.

Vajalik tarkvara

IoT Kodulabori moodulite konfigureerimisekson vajalik programm, mis võimaldab teha HTTP POST päringuid. Selles näites kasutame programmi Advanced REST Client (ARC), mida saab alla laadida siit.

IoT mooduliga ühendumine

IoT kontrollerimooduli esimest korda sisse lülitamisel, kui konfiguratsioon puudub või kui moodul ei saa ruuteri või MQTT serveriga ühendust, läheb see seadistusrežiimi. See tähendab, et luuakse Wifi pääsupunkt, millega saab ühenduda, kasutades arvutit.

Pärast mooduli sisselülitamist ilmub see arvuti WiFi võrkude loendis kujul:

NB! IoT kontrollerimoodul ei tee WiFi võrku, kui sellel on toimiv ühendus MQTT serveriga. Mõne teise serveriga või WiFi võrguga ühendamiseks tuleb moodul olemasoleva WiFi võrgu levialast välja viia. Seda võib teha kas lülitades ruuteri välja või kui see ei ole võimalik, siis tuleb kontroller füüsiliselt ruuteri leviulatusest välja viia.

ARC programmi kasutamine

Peale ARC programmi avamist tuleb esimesena valida POST meetod. Peale seda tuleb sisestada väljale Request URL field järgmine rida

http://192.168.4.1/set/config

. Then select the Body parameter and copy the following line there:

{"dname":"ESP44","wname":"raspberryIoT","wpass":"piIoT123","msrv":"192.168.4.1","mport":"1883","muser":"test","mpass":"test","mssl":"false"}

If you are using the Raspberry image we provided then only change the dname field. If you are using some other broker then you have to change all fields according to your setup. The fields are as following:

FieldDescription
dnameName of the controller module. It is recommended to write the name physically on the module to avoid getting them mixed up.
wnameThe SSID of the Wifi router you wish to connect to
wpassThe password for that Wifi connection
msrvThe IP address of the MQTT broker
mportThe port for the MQTT broker (Usually 1883 is used for connections without SSL and 8883 for connections with SSL.
muserThe username for the MQTT broker. Only relevant when using a broker with SSL.
mpassThe password for MQTT broker. Only relevant when using a broker with SSL.
mssl A boolean that shows if SSL is used or not.

Once you have configured the fields as necessary press SEND to upload the configuration to the module. After a few seconds the following success indicator should appear after the body field. If it fails check if the connection with the module is still active and if you do not have any formatting mistakes.

et/iot/examples/setup/arcconf.1584438137.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0