Ankündigung

Einklappen
Keine Ankündigung bisher.

Problem with Arduino TP-Uart?

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    Problem with Arduino TP-Uart?

    Hello People.
    I've tried to use the TP-UART driver for Arduino Mega 2560 together with a siemens 5WG1 117-2AB12, using the driver from:
    https://bitbucket.org/thorstengehrig...knx-user-forum

    The arduino is connected to the KNX bus module through RX1 (pin 19) and TX1 (pin 18)

    If i open a default sample from the libaray above, it only sometimes sends a signal to the KNX bus (maybe 1 out of 20)

    When opening the default "GroupWrite" and only change input pin to A0 upload, and monitor i get this:
    Code:
    TP-UART Test
    UCSR1A: 100010
    UCSR1B: 10011000
    UCSR1C: 100110
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    Successfully sent: 0
    This results in 2 replies in the Group Monitor in ETS4....
    Sometimes it does send, but not that often.... please help

    #2
    Hm - currently i dont see the root cause of this.
    I didnt checked for a while if the examples are still valid - but this looks not as bad.
    The refereed example does read PIN 13 to change the send information, may you just hardcode a "1" instead of read inpit and send to output:
    Code:
    void loop() {
        delay(2000);
        bool success = knx.groupWriteBool("0/0/3", 1);
        Serial.print("Successfully sent: ");
        Serial.println(success);
    }
    (replace old loop with this one)
    this should send every 2000 ms a binary 1....

    Any change?

    regards
    Thorsten

    Kommentar


      #3
      Do you have a GND connection from the Arduino to the BCU?
      You will have to do that in case the BCU provides enough power for the Arduino and its periphery. If the Arduino consumes too much power to be supplied from the BCU, you will have to use opto-isolators.



      But from what you say, it looks like a missing common ground between the BCU and the Arduino...


      best :: Michael

      Kommentar


        #4
        Zitat von wintermute Beitrag anzeigen
        Do you have a GND connection from the Arduino to the BCU?
        You will have to do that in case the BCU provides enough power for the Arduino and its periphery. If the Arduino consumes too much power to be supplied from the BCU, you will have to use opto-isolators.



        But from what you say, it looks like a missing common ground between the BCU and the Arduino...


        best :: Michael
        Of course, I only have connected rx and tx to the bcu, and powering the arduino from my USB port... I will try that I'll let you know the result

        Kommentar


          #5
          Zitat von Rasmus7700 Beitrag anzeigen
          I'll let you know the result
          I´m curious about the result :-)

          Kommentar


            #6
            Zitat von ThorstenGehrig Beitrag anzeigen
            I´m curious about the result :-)
            Hello..
            Sorry, I'm on vacation, so haven't tested yet - ill do that in the weekend

            Kommentar

            Lädt...
            X