Announcement

Collapse
No announcement yet.

What is NAK and why is it received by the transmitter?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is NAK and why is it received by the transmitter?

    I run a "wake up" script every morning that dims up the light from step 0 to 32 using a Nexa dimmer.

    Here's the log file:
    08.09.2010 06:40:04 Alarm Sunshine Good morning sunshine! Timer has started.
    08.09.2010 06:40:04 Alarm Sunshine Light has been increased (time: 1 - level: 1)
    08.09.2010 06:41:04 Alarm Sunshine Light has been increased (time: 2 - level: 1)
    08.09.2010 06:42:04 Alarm Sunshine Light has been increased (time: 3 - level: 1)
    08.09.2010 06:43:04 Alarm Sunshine Light has been increased (time: 4 - level: 1)
    08.09.2010 06:44:04 Alarm Sunshine Light has been increased (time: 5 - level: 1)
    08.09.2010 06:45:04 Alarm Sunshine Light has been increased (time: 6 - level: 2)
    08.09.2010 06:46:04 Alarm Sunshine Light has been increased (time: 7 - level: 2)
    08.09.2010 06:47:04 Alarm Sunshine Light has been increased (time: 8 - level: 2)
    08.09.2010 06:48:04 Alarm Sunshine Light has been increased (time: 9 - level: 3)
    08.09.2010 06:49:04 Alarm Sunshine Light has been increased (time: 10 - level: 3)
    08.09.2010 06:50:04 Alarm Sunshine Light has been increased (time: 11 - level: 3)
    08.09.2010 06:51:04 Alarm Sunshine Light has been increased (time: 12 - level: 3)
    08.09.2010 06:52:04 Alarm Sunshine Light has been increased (time: 13 - level: 4)
    08.09.2010 06:53:04 Alarm Sunshine Light has been increased (time: 14 - level: 4)
    08.09.2010 06:54:04 Alarm Sunshine Light has been increased (time: 15 - level: 4)
    08.09.2010 06:55:04 Alarm Sunshine Light has been increased (time: 16 - level: 4)
    08.09.2010 06:56:04 Alarm Sunshine Light has been increased (time: 17 - level: 5)
    08.09.2010 06:57:04 Alarm Sunshine Light has been increased (time: 18 - level: 5)
    08.09.2010 06:58:04 Alarm Sunshine Light has been increased (time: 19 - level: 5)
    08.09.2010 06:59:04 Alarm Sunshine Light has been increased (time: 20 - level: 6)
    08.09.2010 07:00:04 Alarm Sunshine Light has been increased (time: 21 - level: 7)
    08.09.2010 07:01:04 Alarm Sunshine Light has been increased (time: 22 - level: 8)
    08.09.2010 07:02:04 Alarm Sunshine Light has been increased (time: 23 - level: 9)
    08.09.2010 07:03:04 Alarm Sunshine Light has been increased (time: 24 - level: 11)
    08.09.2010 07:04:04 Alarm Sunshine Light has been increased (time: 25 - level: 13)
    08.09.2010 07:05:04 Alarm Sunshine Light has been increased (time: 26 - level: 15)
    08.09.2010 07:06:04 Alarm Sunshine Light has been increased (time: 27 - level: 18)
    08.09.2010 07:07:04 Alarm Sunshine Light has been increased (time: 28 - level: 22)
    08.09.2010 07:08:04 Alarm Sunshine Light has been increased (time: 29 - level: 26)
    08.09.2010 07:09:04 Alarm Sunshine Light has been increased (time: 30 - level: 31)
    08.09.2010 07:09:04 Alarm Sunshine Timer has been stopped
    08.09.2010 07:09:59 Warning RFXCOM(XmitRxChar) NAK received from transmitter #1
    08.09.2010 07:10:52 Warning RFXCOM(XmitRxChar) NAK received from transmitter #1

    If I don't run the script the warning is not displayed. But what is it?

    I'm not worried until you tell me to...
    HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
    Running on Windows 10 (64) virtualized
    on ESXi (Fujitsu Primergy TX150 S8).
    WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

    Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!

    #2
    NAK stands for "No Acknowledge" (opposite of ACK). It means the transmitter sent some data to a device which the receiver either did not fully recognize or for some reason was not able, or ready to process. In this case the NAK could also have been generated by the transmitter as a message to the software (buffer full, not ready to transmit, etc.).
    Real courage is not securing your Wi-Fi network.

    Comment


      #3
      Correct.

      If a RF signal (from other sensors or remotes) is present the receiver will not allow the transmitter to start transmitting. This is the function of the anti-collision handshake connection between the receiver and the transmitter.
      If the RF signal is for a long period present the transmitter cancels the transmit request and returns a NAK. The plug-in retries (max 5 times) to transmit the command and with every NAK you get a warning message. This is acceptable and normal behavior.
      No commands are lost until now.

      After 5 retries an error messages will appear in the log that the transmitted command is not executed and cancelled.

      Comment


        #4
        OK, great!

        I was just curious why this happens every single day at the same time...
        HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
        Running on Windows 10 (64) virtualized
        on ESXi (Fujitsu Primergy TX150 S8).
        WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

        Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!

        Comment


          #5
          I have also just started receiving these NAKs, maybe a dozen or so each day but I only have a transmitter, so do I have a different problem?

          Comment


            #6
            is the HS flag at the transmitter configuration unchecked?

            Comment


              #7
              Originally posted by b_weijenberg View Post
              is the HS flag at the transmitter configuration unchecked?
              No, not checked.

              Comment


                #8
                Modify - Save the transmitter configuration on the RFXCOM config page to be sure the correct initialization is used.

                In case you have a LAN transmitter, check the port settings in the LAN controller.
                This should be: 4800baud, 8 bits, No parity and 2 stop bits

                If you have an USB transmitter connect the interface directly to the system and do not use an USB hub.

                Check the transmitter with the RFtransmitter program on another system to see if NAK's are returned. Use the init "48 bits don't use XRTS-XCTS"

                If the problem still exists contact support.

                Comment


                  #9
                  Thanks Bert. I have re-saved the configuration and see how that goes.

                  Regards,
                  John

                  Comment


                    #10
                    Originally posted by b_weijenberg View Post
                    This should be: 4800baud, 8 bits, No parity and 2 stop bits
                    I just checked "Channel 1", it's set to 1 stop bit.
                    Should I change it? What does it do?

                    And why is it set to "1"? I haven't changed it...

                    "Channel 2" is set to 2 stop bits.
                    HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
                    Running on Windows 10 (64) virtualized
                    on ESXi (Fujitsu Primergy TX150 S8).
                    WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

                    Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!

                    Comment


                      #11
                      Channel 1 is used for the receivers and should be set to 1 stop bit!
                      The channel for the transmitter should be set to 2 stop bits.

                      Comment


                        #12
                        Ok, then everything is as it should be.
                        HSPro 3.0.0.458, Z-NET with Z-wave plugin 3.0.1.190, RFXCOM + 2x RFXtrx433E, HSTouch, Squeezebox plugin, iTach IP/WF2IR & GC-100-6 with UltraGCIR, BLDenon, NetcamStudio, Jon00s Webpage builder, Harmony Hub plugin, SCSIP (with FreePBX), Arduino plugin, IFTTT, Pushalot plugin, Device History plugin.
                        Running on Windows 10 (64) virtualized
                        on ESXi (Fujitsu Primergy TX150 S8).
                        WinSeer (for Win10) - TextSeer - FitbitSeer - HSPI_MoskusSample

                        Are you Norwegian (or Scandinavian) and getting started with HomeSeer? Read the "HomeSeer School"!

                        Comment


                          #13
                          Originally posted by b_weijenberg View Post
                          Modify - Save the transmitter configuration on the RFXCOM config page to be sure the correct initialization is used.

                          In case you have a LAN transmitter, check the port settings in the LAN controller.
                          This should be: 4800baud, 8 bits, No parity and 2 stop bits

                          If you have an USB transmitter connect the interface directly to the system and do not use an USB hub.

                          Check the transmitter with the RFtransmitter program on another system to see if NAK's are returned. Use the init "48 bits don't use XRTS-XCTS"

                          If the problem still exists contact support.
                          Hi Bert,
                          I am still seeing these errors and have the device connected to a local USB port.
                          As per your instructions, I am testing it on another PC with RFTransmitter. I can initialise the RFXCom device and want to test sending ON/OFF to HomeEasy devices.
                          So on the HomeEasy tab in RFTransmitter, how do I work out what to have in each of the 4 dropdown boxes for each of my HomeEasy devices.
                          I have had a look in the rfxcom.mdb but cannot see any suitable tables.
                          Thanks,
                          John

                          Comment


                            #14
                            Bert,

                            How should I be testing the hardware using RFTransmitter?

                            Thanks.

                            Comment


                              #15
                              The easiest way is to select 4 random numbers in the 4 selection boxes. (do not use all zeroes!!)
                              Set a HomeEasy module in learn mode and click the ON button in RFtransmitter.
                              You must be able to control that unit now using the selected device and unit number above.

                              Please contact support if you need additional help (this type of problem has nothing to do with Homeseer)

                              Comment

                              Working...
                              X