Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Русский
    3. ioBroker
    4. развитие
    5. ioBroker разработка
    6. Управление оборудованием по RS232

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Управление оборудованием по RS232

    This topic has been deleted. Only users with topic management privileges can see it.
    • I
      instalator last edited by

      @Bluefox:

      Ну хоть какую информацию он выплёвывает??? `

      Он посимвольно выдает данные, сейчас уже все отключено, как снова доберусь до RS232 буду писать, все сразу не успеваю)

      1 Reply Last reply Reply Quote 0
      • aurodionov
        aurodionov last edited by

        Может сразу модбас пинать, и возможностей больше ,и устройств тоже.

        1 Reply Last reply Reply Quote 0
        • I
          instalator last edited by

          @aurodionov:

          Может сразу модбас пинать, и возможностей больше ,и устройств тоже. `
          У меня телек и проектор не понимают модбас
          1136_switch_sender.png

          1 Reply Last reply Reply Quote 0
          • aurodionov
            aurodionov last edited by

            @instalator:

            У меня телек и проектор не понимают модбас `
            Веский аргумент

            1 Reply Last reply Reply Quote 0
            • V
              Vlad_k last edited by

              Всех с наступившим! ребят подскажите, только установил брокер под винду, в нем установил node red, в сети нашел что serial port нужно отдельно до-устанавливать из корневой папки node red, короче что я сделал

              C:\Program Files\ioBroker\node_modules\iobroker.node-red\node_modules\node-red путь к корню

              npm install node-red-node-serialport что то покрутилось, окно захлопнулось

              в папке:

              C:\Program Files\ioBroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules

              появилась новая папка node-red-node-serialport

              захожу в редактор, а в нем сериал порта как не было так и нет, что делаю не так?

              1 Reply Last reply Reply Quote 0
              • I
                instalator last edited by

                @Vlad_k:

                Всех с наступившим! ребят подскажите, только установил брокер под винду, в нем установил node red, в сети нашел что serial port нужно отдельно до-устанавливать из корневой папки node red, короче что я сделал

                C:\Program Files\ioBroker\node_modules\iobroker.node-red\node_modules\node-red путь к корню

                npm install node-red-node-serialport что то покрутилось, окно захлопнулось

                в папке:

                C:\Program Files\ioBroker\node_modules\iobroker.node-red\node_modules\node-red\node_modules

                появилась новая папка node-red-node-serialport

                захожу в редактор, а в нем сериал порта как не было так и нет, что делаю не так? `

                А что подключать планируешь? обязательно по RS232? Я бросил NodeRed, все что под ним делал переписал под javascript.

                управление телевизором через RS232 организавал с помощью MQTT (ардуина + езернет) которая уже непосредственно подключена к телеку.

                1 Reply Last reply Reply Quote 0
                • V
                  Vlad_k last edited by

                  у меня сеть датчиков-димеров-выключателей на основе библиотеки с http://www.mysensors.org/ в ней шлюз через юарт, думал прикрутить к брокеру или CCU.IO ( понравилась визуализация и редактор в ней), но так и не понял как тут все работает, хотя данные в NodeRed получаю (все заработало после перезагрузки компа) а что с ними потом делать ума не приложу, упарился собирать разрозненную информацию с примерами по разным ресурсам.

                  попробовал поставить опенхаб, за вечер почти все настроил включая управление голосом…

                  теперь бы саму визуализацию на хаб перетащить...

                  1 Reply Last reply Reply Quote 0
                  • I
                    instalator last edited by

                    @Vlad_k:

                    у меня сеть датчиков-димеров-выключателей на основе библиотеки с http://www.mysensors.org/ в ней шлюз через юарт, думал прикрутить к брокеру или CCU.IO ( понравилась визуализация и редактор в ней), но так и не понял как тут все работает, хотя данные в NodeRed получаю (все заработало после перезагрузки компа) а что с ними потом делать ума не приложу, упарился собирать разрозненную информацию с примерами по разным ресурсам.

                    попробовал поставить опенхаб, за вечер почти все настроил включая управление голосом…

                    теперь бы саму визуализацию на хаб перетащить... `
                    Ну данные если ты получаешь, то передаешь состояние переменной в iobroker, а дальше делаешь с ними все что угодно.

                    1 Reply Last reply Reply Quote 0
                    • E
                      eric1905 last edited by

                      Hi Instalator,

                      I have a question regarding the connection to my LG via RS232.

                      As you wrote in your adapter page, I have:

                      1 Arduino Uno

                      1 W5100 shield

                      1 RS232 module

                      First question:

                      Is the RS232 connected via 3.3 V or 5V?

                      2. If I use the Script from the page you linked: https://github.com/stepansnigirev/Ardui … ethernet2h

                      I am not able to upload it to my arduino, because Arduino UNO does not support Serial1

                      3. If I try to upload the Script from your page for ioBroker:

                      https://translate.google.de/translate?h ... rev=search

                      I receive the message:

                      serial_to_ethernet:10: error: 'callback' was not declared in this scope

                      I think this is because somehting has changed and i have to provide the method before the usage of callback, so i inserted:

                      // Callback function header

                      void callback(char* topic, byte* payload, unsigned int length);

                      before line 10.

                      Then i have an error because of too much variables. So i removed some commands for the tv input mode, just for testing purposes, and i was able to upload the sketch.

                      But then i am not able to connect via ioBroker.

                      Is there still something I have forgotten which must be changed?

                      What about this:

                      11

                      #define id_connect "myhome-RS232"

                      12

                      #define Prefix_subscribe "myhome/RS232/"

                      Do i have to configure it?

                      Is port 23 in ioBroker adapter ok? Where is it defined?

                      I expect the wires are as follows:

                      RS232 --> Arduino UNO

                      TX --> RX

                      RX --> TX

                      GND --> GND

                      VCC --> 3.3/5/12?

                      Sorry for the usage of this very old thread, but i am not allowed to send you a message at the moment and I didn't find another way to contact you.

                      Best regards,

                      Eric

                      1 Reply Last reply Reply Quote 0
                      • I
                        instalator last edited by

                        @eric1905:

                        Hi Instalator,

                        I have a question regarding the connection to my LG via RS232.

                        As you wrote in your adapter page, I have:

                        1 Arduino Uno

                        1 W5100 shield

                        1 RS232 module

                        First question:

                        Is the RS232 connected via 3.3 V or 5V?

                        2. If I use the Script from the page you linked: https://github.com/stepansnigirev/Ardui … ethernet2h

                        I am not able to upload it to my arduino, because Arduino UNO does not support Serial1

                        3. If I try to upload the Script from your page for ioBroker:

                        https://translate.google.de/translate?h ... rev=search

                        I receive the message:

                        serial_to_ethernet:10: error: 'callback' was not declared in this scope

                        I think this is because somehting has changed and i have to provide the method before the usage of callback, so i inserted:

                        // Callback function header

                        void callback(char* topic, byte* payload, unsigned int length);

                        before line 10.

                        Then i have an error because of too much variables. So i removed some commands for the tv input mode, just for testing purposes, and i was able to upload the sketch.

                        But then i am not able to connect via ioBroker.

                        Is there still something I have forgotten which must be changed?

                        What about this:

                        11

                        #define id_connect "myhome-RS232"

                        12

                        #define Prefix_subscribe "myhome/RS232/"

                        Do i have to configure it?

                        Is port 23 in ioBroker adapter ok? Where is it defined?

                        I expect the wires are as follows:

                        RS232 --> Arduino UNO

                        TX --> RX

                        RX --> TX

                        GND --> GND

                        VCC --> 3.3/5/12?

                        Sorry for the usage of this very old thread, but i am not allowed to send you a message at the moment and I didn't find another way to contact you.

                        Best regards,

                        Eric `

                        Hi!

                        1. 5V max3232 schematic https://blog.instalator.ru/archives/744

                        2. https://github.com/instalator/TelnetToE … r/main.ino

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        683
                        Online

                        31.8k
                        Users

                        80.0k
                        Topics

                        1.3m
                        Posts

                        5
                        14
                        10377
                        Loading More Posts
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes
                        Reply
                        • Reply as topic
                        Log in to reply
                        Community
                        Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                        The ioBroker Community 2014-2023
                        logo