Ankündigung

Einklappen
Keine Ankündigung bisher.

Universal UP Schnittstelle

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

    #76
    Zitat von ouranos6 Beitrag anzeigen
    Yes I saw that but I have to declare them on the arduino side like :

    #define SDA_PIN A6
    #define SCL_PIN A7
    Adafruit_ssd1306syp display(SDA_PIN,SCL_PIN);
    This pin definitions are only for ESP8266, but not for ATMEGA32U4 (UUPS). You can't define this pins.

    i think you need this lib:

    https://github.com/adafruit/Adafruit_SSD1306


    #define OLED_RESET 4
    Adafruit_SSD1306 display(OLED_RESET);
    Zuletzt geändert von Eugenius; 25.08.2016, 14:01.

    Kommentar


      #77
      So I found someting with that, it's the Pin 2 and 3 but I can't use it very well.

      Kommentar


        #78
        i used SSD1306 with https://github.com/adafruit/Adafruit_SSD1306 without any SDA/SCK-Pin-definitons....

        You have to define pins only, if your board (eg. ESP8266, but not UUPS) can handle SDA/SCK on any pin...
        So try to use another lib

        Kommentar


          #79
          Ok I have a look but for now it wont work "my idea was to show the debug messages on the screen".

          JAJAJA I have something working now and it's great to communicate on the KNX Thanks guys

          Kommentar


            #80
            Keep in mind, that you must not overload the microcontroller with work.

            To not miss KNX telegrams from the bus, you have to trigger Knx.task() every 400 µs (yes, microseconds --> 0,0004s). So don't do blocking stuff in loop().



            Kommentar


              #81
              Good to know, thank you tuxedo. So instead of delay(); we can use the timer function no?

              I was thinking if it's possible to use the mega2560 intead of the 32u4.
              I mean we can have more serials quite more pins (but not the point) and more space and ram for sketch because the knx library takes a lot of ressources.

              it's just a thought

              Kommentar


                #82
                You can use mega2560, but current consuption is to high for KNX transceiver. So you have to use external voltge supply.
                The next version of UUPS will have another chip (e.g. samd21)... it have more UARTs... but it's still future...

                You can use SoftSerialon 32u4 for most of applications.

                Kommentar


                  #83
                  ok I understand, samd21 is compatible with arduino ide and sketchs?

                  Just a question, I didn't see DPT 14byte can we send 14byte?

                  Kommentar


                    #84
                    Arduino Zero use SAMD21 and yes, it is compatible.

                    What do you do with DPT 14 byte?

                    temporary it is only this one available:
                    https://github.com/KONNEKTING/Konnek.../KnxDPT.h#L288

                    Kommentar


                      #85
                      I need the DPT 16 ascii character

                      Kommentar


                        #86
                        It comes with beta4.
                        Butyou can add it by your self into knxdpt.h

                        Kommentar


                          #87
                          Ok, any date for the beta4 release ?

                          Kommentar


                            #88
                            Eugen mixed up something...

                            See: https://github.com/KONNEKTING/KonnektingSuite/issues/16

                            This is about a string-type for konnekting parameter programming, not about DPT16.

                            Pls. open an isse for adding DPT16 here: https://github.com/KONNEKTING/Konnek...Library/issues

                            Kommentar


                              #89
                              Like that? I've added
                              DPT 16.000 String 14char
                              DPT 16.001 String 14char ASCII
                              ​​​​​​​DPT 16.002 String 14char 8859_1
                              ​​​​​​​232.600 U8U8U8 DPT_Colour_RGB
                              Angehängte Dateien

                              Kommentar


                                #90
                                the content of the array indices must match to each other.

                                Any index in "eKnxDPT_Format" must have an corresponding index in "KnxDPTFormatToLengthBit" and "e_KnxDPT_ID" as well as "KnxDPTIdToFormat". Otherwise it will not work.

                                And when adding new types, it is always a good idea to also have an convenience method in https://github.com/KONNEKTING/Konnek...evice.cpp#L456

                                I'm currently busy with other things. So I would be glad if you

                                a) create an issue for it
                                b) fork the current beta4 development https://github.com/KONNEKTING/Konnek.../develop_beta4 and create a pull-request with your "working and tested" changes.

                                Kommentar

                                Lädt...
                                X