Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Development
  3. Send serial data to vb.net to gw (usb connected)

Send serial data to vb.net to gw (usb connected)

Scheduled Pinned Locked Moved Development
8 Posts 3 Posters 4.1k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • ch3b7C Offline
    ch3b7C Offline
    ch3b7
    wrote on last edited by
    #1

    Im use de beta library, i can send data to gw with serial.write("1234") command and show the recieved number. My problem is how can use the incomming data in gw? Im use this example

    if (Serial.available() > 0) {
    // read the incoming byte:
    incomingByte = Serial.read();
    // say what you got:
    Serial.print("I received: ");
    Serial.println(incomingByte, DEC);
    }

    if(SerialValue == 1234){
    Serial.print("WORK ");
    }

    The IF command dont work. I try to send commands from vb.net to gw to turn on or off sensor and put auto ID

    1 Reply Last reply
    0
    • marceltrapmanM Offline
      marceltrapmanM Offline
      marceltrapman
      Mod
      wrote on last edited by
      #2

      When you want an example of how a controller works you can look at the vera plugin on github.
      It is the example that I use as well for my plugin for Indigo.
      Make sure you check 'master' out for 1.3 of 'development' for 1.4.

      Fulltime Servoy Developer
      Parttime Moderator MySensors board

      I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
      I have a FABtotum to print cases.

      ch3b7C 1 Reply Last reply
      0
      • marceltrapmanM marceltrapman

        When you want an example of how a controller works you can look at the vera plugin on github.
        It is the example that I use as well for my plugin for Indigo.
        Make sure you check 'master' out for 1.3 of 'development' for 1.4.

        ch3b7C Offline
        ch3b7C Offline
        ch3b7
        wrote on last edited by
        #3

        @marceltrapman im read de .lua file but if i send the same command lua send like "255;255;3;0;4;2\n" (set radio ID) from vb.net dont work

        marceltrapmanM 1 Reply Last reply
        0
        • DammeD Offline
          DammeD Offline
          Damme
          Code Contributor
          wrote on last edited by
          #4

          are you using 1.3 or 1.4b?

          1 Reply Last reply
          0
          • ch3b7C ch3b7

            @marceltrapman im read de .lua file but if i send the same command lua send like "255;255;3;0;4;2\n" (set radio ID) from vb.net dont work

            marceltrapmanM Offline
            marceltrapmanM Offline
            marceltrapman
            Mod
            wrote on last edited by marceltrapman
            #5

            @ch3b7 said:

            @marceltrapman im read de .lua file but if i send the same command lua send like "255;255;3;0;4;2\n" (set radio ID) from vb.net don't work

            Please make sure (considering your example) that you are using 1.4 and not 1.3 because the ack paramater (in this case 0/false) is not used in 1.3.

            And make sure that this really respond to a request.
            So in your case you are actually responding to a request for an id?

            Fulltime Servoy Developer
            Parttime Moderator MySensors board

            I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
            I have a FABtotum to print cases.

            1 Reply Last reply
            0
            • ch3b7C Offline
              ch3b7C Offline
              ch3b7
              wrote on last edited by
              #6

              Im use 1.4b. If a sensor ask for id and i put this command in the serial windows in arduino it works. If i send the same command from other program like a custom vb.net nothing happend. I think the gw not listening the incomming serial data from the usb. Sorry for my bad english im from Argentina!

              marceltrapmanM 1 Reply Last reply
              0
              • ch3b7C ch3b7

                Im use 1.4b. If a sensor ask for id and i put this command in the serial windows in arduino it works. If i send the same command from other program like a custom vb.net nothing happend. I think the gw not listening the incomming serial data from the usb. Sorry for my bad english im from Argentina!

                marceltrapmanM Offline
                marceltrapmanM Offline
                marceltrapman
                Mod
                wrote on last edited by
                #7

                @ch3b7 said:

                I think the gw not listening the incomming serial data from the usb. Sorry for my bad english im from Argentina!

                Ah, you have to use serial-usb. You can not send it to the usb port just like that.
                Sorry for my bad english I am Dutch ;)

                Fulltime Servoy Developer
                Parttime Moderator MySensors board

                I use Domoticz as controller for Z-Wave and MySensors (previously Indigo and OpenHAB).
                I have a FABtotum to print cases.

                1 Reply Last reply
                0
                • ch3b7C Offline
                  ch3b7C Offline
                  ch3b7
                  wrote on last edited by
                  #8

                  serial-usb adapter?

                  1 Reply Last reply
                  0
                  Reply
                  • Reply as topic
                  Log in to reply
                  • Oldest to Newest
                  • Newest to Oldest
                  • Most Votes


                  20

                  Online

                  11.7k

                  Users

                  11.2k

                  Topics

                  113.1k

                  Posts


                  Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                  • Login

                  • Don't have an account? Register

                  • Login or register to search.
                  • First post
                    Last post
                  0
                  • MySensors
                  • OpenHardware.io
                  • Categories
                  • Recent
                  • Tags
                  • Popular