Menu

Problem with NTP

2021-06-06
2021-06-07
  • Marco Formenton

    Marco Formenton - 2021-06-06

    Hello Rob,
    I have a problem with the 119.5 firmware, it looks like there something wrong with the NTP because while il getting the NTP the windows app crashes and if I try to recconnect I get a controller error and nothing work, also the webserver.
    To refresh all I must reflash the firmware.
    Please can you check if is a bug?
    Thank you very much

     
  • brownrb

    brownrb - 2021-06-07

    NTP code has not changed for some time, last change was in rev 108.

    You could try the test program TEST_NTP2 to see if that test works.
    If that works then

    Please try again, but with error logging enabled on the Windows application, then when it happens, exit the application and send me the errorlog and also your controllerconfg.h file

    After programming the firmware remember to upload the sketch data files

    my email address is line 43 of the firmware file.

     

    Last edit: brownrb 2021-06-07
  • Marco Formenton

    Marco Formenton - 2021-06-07

    This is my log
    lunedì , giu 07 2021,08:56:24 ReceiveResponse : ==START====================================================
    lunedì , giu 07 2021,08:56:24 ReceiveResponse : Check if client is connected
    lunedì , giu 07 2021,08:56:24 ntpget: Error: no response for Get NTP query time
    lunedì , giu 07 2021,08:56:24 ntpget: Get NTP-RTC sync time
    lunedì , giu 07 2021,08:56:24 SendString : ==START====================================================
    lunedì , giu 07 2021,08:56:24 SendString : Client was not connected
    lunedì , giu 07 2021,08:56:24 closeinterface: Attempt to close interface
    lunedì , giu 07 2021,08:56:24 closeinterface: Closing tcp/ip connection
    lunedì , giu 07 2021,08:56:24 closeinterface: Interface closed
    lunedì , giu 07 2021,08:56:24 disableall: =START=========================================================
    lunedì , giu 07 2021,08:56:24 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:56:24 buildntptz: 00,00
    lunedì , giu 07 2021,08:56:24 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:56:24 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:56:24 buildntptz: 00,00
    lunedì , giu 07 2021,08:56:24 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:56:24 disableall: =END===========================================================
    lunedì , giu 07 2021,08:56:24 SendString : =END===========================================================
    lunedì , giu 07 2021,08:56:24 ReceiveResponse : ==START====================================================
    lunedì , giu 07 2021,08:56:24 ReceiveResponse : Check if client is connected
    lunedì , giu 07 2021,08:56:24 ntpget: Error: no response for Get NTP-RTC sync time
    lunedì , giu 07 2021,08:56:24 ntpget: END ================================
    lunedì , giu 07 2021,08:56:38 Connect: START ================================
    lunedì , giu 07 2021,08:56:38 Application version = 0.0.0.13
    lunedì , giu 07 2021,08:56:38 Connect: Connection Sequence Timer Start (hh:mm:ss.nnnn) = 08:56:38.7025325
    lunedì , giu 07 2021,08:56:38 Connect: TCP/IP Interface
    lunedì , giu 07 2021,08:56:38 Connect: Parse ip address
    lunedì , giu 07 2021,08:56:38 Connect: Create socket
    lunedì , giu 07 2021,08:56:38 Connect: Socket created
    lunedì , giu 07 2021,08:56:38 Connect: Controller IP: 192.168.1.60
    lunedì , giu 07 2021,08:56:38 Connect: Socket Number : 2121
    lunedì , giu 07 2021,08:56:38 Connect: Socket timeout = 30000
    lunedì , giu 07 2021,08:56:38 Connect: Attempt to create and connect to socket
    lunedì , giu 07 2021,08:56:38 Connect: Attempting socket connection: Please Wait. Attempt=0
    lunedì , giu 07 2021,08:56:38 Connect: Connected to IP address: 192.168.1.60
    lunedì , giu 07 2021,08:56:38 Connect: Check for controller
    lunedì , giu 07 2021,08:56:38 SendString : ==START====================================================
    lunedì , giu 07 2021,08:56:38 SendString : sending :40# to client
    lunedì , giu 07 2021,08:56:38 SendString : =END===========================================================
    lunedì , giu 07 2021,08:56:38 ReceiveResponse : ==START====================================================
    lunedì , giu 07 2021,08:56:38 ReceiveResponse : Check if client is connected
    lunedì , giu 07 2021,08:56:38 ReceiveResponse : Client is connected
    lunedì , giu 07 2021,08:56:38 ReceiveResponse : Check for incoming data
    lunedì , giu 07 2021,08:57:08 closeinterface: Attempt to close interface
    lunedì , giu 07 2021,08:57:08 closeinterface: Closing tcp/ip connection
    lunedì , giu 07 2021,08:57:08 closeinterface: Interface closed
    lunedì , giu 07 2021,08:57:08 disableall: =START=========================================================
    lunedì , giu 07 2021,08:57:08 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:08 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:08 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:08 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:08 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:08 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:08 disableall: =END===========================================================
    lunedì , giu 07 2021,08:57:08 ReceiveResponse : Socket Exception error: No response from controller. Disconnecting now.

    lunedì , giu 07 2021,08:57:12 Connect: Error. No response
    lunedì , giu 07 2021,08:57:12 closeinterface: Attempt to close interface
    lunedì , giu 07 2021,08:57:12 closeinterface: Closing tcp/ip connection
    lunedì , giu 07 2021,08:57:12 closeinterface: Interface closed
    lunedì , giu 07 2021,08:57:12 disableall: =START=========================================================
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:12 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:12 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:12 disableall: =END===========================================================
    lunedì , giu 07 2021,08:57:12 disableall: =START=========================================================
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:12 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:12 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:12 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:12 disableall: =END===========================================================
    lunedì , giu 07 2021,08:57:13 Exit: =START=========================================================
    lunedì , giu 07 2021,08:57:13 disableall: =START=========================================================
    lunedì , giu 07 2021,08:57:13 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:13 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:13 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:13 clearalltextboxes: START ================================
    lunedì , giu 07 2021,08:57:13 buildntptz: 00,00
    lunedì , giu 07 2021,08:57:13 clearalltextboxes: END ================================
    lunedì , giu 07 2021,08:57:13 disableall: =END===========================================================

     
  • brownrb

    brownrb - 2021-06-07

    Recommend
    You could try the test program TEST_NTP2 to see if that test works.
    Let it run for like 10m and watch the output on the serial monitor window of the Arduino IDE (send speed to 115200)

    That will help you identify if it is a connection issue
    It is important to use firmware 119-5 or higher
    and Windows app 17 or higher

    I cannot yet verify the crash but I will investigate more tommorrow.
    Robert

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.