Skip to content

Instantly share code, notes, and snippets.

@costyn
Created August 7, 2017 18:21
Show Gist options
  • Save costyn/76df7e17bf2b772262e6cddd282352b7 to your computer and use it in GitHub Desktop.
Save costyn/76df7e17bf2b772262e6cddd282352b7 to your computer and use it in GitHub Desktop.
painlessMesh: Weird behaviour
MASTER 286263848: Sent broadcast message: {"currentBPM":120,"currentPattern":5}
MASTER 291263141: Sent broadcast message: {"currentBPM":120,"currentPattern":5}
MASTER 296263094: Sent broadcast message: {"currentBPM":120,"currentPattern":5}
MASTER 301262145: Sent broadcast message: {"currentBPM":120,"currentPattern":6}
MASTER 306262886: Sent broadcast message: {"currentBPM":120,"currentPattern":6}
MASTER 311262073: Sent broadcast message: {"currentBPM":120,"currentPattern":6}
MASTER 316263137: Sent broadcast message: {"currentBPM":120,"currentPattern":0}
MASTER 321262998: Sent broadcast message: {"currentBPM":120,"currentPattern":0}
MASTER 326262974: Sent broadcast message: {"currentBPM":120,"currentPattern":0}
MASTER 331262207: Sent broadcast message: {"currentBPM":120,"currentPattern":1}
MASTER 336262074: Sent broadcast message: {"currentBPM":120,"currentPattern":1}
MASTER 341262018: Sent broadcast message: {"currentBPM":120,"currentPattern":1}
MASTER 346262003: Sent broadcast message: {"currentBPM":120,"currentPattern":1}
MASTER 346263455: Sent broadcast message: {"currentBPM":120,"currentPattern":2}
MASTER 351263090: Sent broadcast message: {"currentBPM":120,"currentPattern":2}
MASTER 356262794: Sent broadcast message: {"currentBPM":120,"currentPattern":2}
0x8 meshReconCb(): err=-11.
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
0x1 subConnectionJsonHelper(): Found closed connection 2140092301
0x8 nodeTimeoutTask():
0x8 nodeTimeoutTask(): dropping 2140092301 now= 359178081
0x8 closeConnection(): conn-nodeId=2140092301, conn-no=1, conn-use=5
0x8 closeConnection(): done, conn-no=0, conn-use=1
0x8 ~meshConnectionType():
0x8 closingTask():
0x8 closingTask(): dropping 0 now= 359201189
MASTER 359207049: Changed connections []
Node list: 2140081748 (1 nodes)
MASTER 359216684: checkMastership(); I am MASTER
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STACONNECTED
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
MASTER 361261277: Sent broadcast message: {"currentBPM":120,"currentPattern":3}
0x8 meshConnectedCb(): new meshConnection !!!
0x8 meshConnectedCb(): we are AP
0x8 findConnection(2146419207): did not find connection
MASTER 362121938: Changed connections [{"nodeId":2146419207,"subs":[]}]
Node list: 2146419207 2140081748 (2 nodes)
MASTER 362136145: checkMastership(); I am MASTER
0x8 newConnectionTask():
0x8 newConnectionTask(): adding 2146419207 now= 362146477
MASTER 362153322: New Connection from nodeId = 2146419207
Node list: 2146419207 2140081748 (2 nodes)
MASTER 362166594: checkMastership(); I am MASTER
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
MASTER 366262433: Sent broadcast message: {"currentBPM":120,"currentPattern":3}
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): No unknown nodes found scan rate set to normal
MASTER 371262227: Sent broadcast message: {"currentBPM":120,"currentPattern":3}
0x8 wifiEventCb(): EVENT_STAMODE_CONNECTED ssid=LEDforge.com LEDswarm
0x8 wifiEventCb(): EVENT_STAMODE_GOT_IP
0x8 tcpConnect(): Got local IP=10.194.7.3
0x8 tcpConnect(): Dest IP=10.194.7.1
0x8 tcpConnect(): connecting type=16, state=0, local_ip=10.194.7.3, local_port=16478, remote_ip=10.194.7.1 remote_port=5555
0x8 meshConnectedCb(): new meshConnection !!!
0x8 meshConnectedCb(): we are STA
0x8 meshDisconCb(): 0x8 findConnection(espconn): Did not Find
0x1 meshDisconCb(): Invalid state
0x8 ~meshConnectionType():
0x8 closingTask():
0x8 closingTask(): dropping 0 now= 374055221
MASTER 374061087: Changed connections []
Node list: 2140081748 (1 nodes)
MASTER 374070714: checkMastership(); I am MASTER
0x8 findConnection(2146419207): did not find connection
MASTER 374084582: Changed connections [{"nodeId":2146419207,"subs":[]}]
Node list: 2146419207 2140081748 (2 nodes)
MASTER 374099465: checkMastership(); I am MASTER
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STADISCONNECTED
0x8 newConnectionTask():
0x8 newConnectionTask(): adding 2146419207 now= 374115855
MASTER 374123410: New Connection from nodeId = 2146419207
Node list: 2146419207 2140081748 (2 nodes)
MASTER 374136679: checkMastership(); I am MASTER
MASTER: Adjusted time 374163120. Offset = 11486
MASTER: Adjusted time 374374989. Offset = -5191
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STACONNECTED
MASTER 376268414: Sent broadcast message: {"currentBPM":120,"currentPattern":3}
MASTER 376269594: Sent broadcast message: {"currentBPM":120,"currentPattern":4}
0x8 stationScan(): LEDforge.com LEDswarm
0x8 scanComplete():-- > scan finished @ 380008453 < --
0x8 found : LEDforge.com LEDswarm, -35dBm0x8 MESH< ---0x8
0x8 found : LEDforge.com LEDswarm, -38dBm0x8 MESH< ---0x8
0x8 Found 2 nodes
0x8 findConnection(2140092301): did not find connection
0x8 connectToAP():0x8 connectToAP(): Unknown nodes found. Current stability: 85
MASTER 381270318: Sent broadcast message: {"currentBPM":120,"currentPattern":4}
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STADISCONNECTED
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STACONNECTED
MASTER 386270784: Sent broadcast message: {"currentBPM":120,"currentPattern":4}
MASTER 386400487: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140092301,"subs":[]}]}]
Node list: 2146419207 2140092301 2140081748 (3 nodes)
MASTER 386404846: checkMastership(); I am MASTER
0x8 meshConnectedCb(): new meshConnection !!!
0x8 meshConnectedCb(): we are AP
MASTER 387229756: Changed connections [{"nodeId":2146419207,"subs":},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]
Node list: 2146419207 2140092301 2146419207 2140081748 2140081748 (5 nodes)
MASTER 387251596: checkMastership(); I am MASTER
0x8 newConnectionTask():
0x8 newConnectionTask(): adding 2140092301 now= 387261222
MASTER 387268774: New Connection from nodeId = 2140092301
Node list: 2146419207 2140092301 2146419207 2140081748 2140081748 (5 nodes)
MASTER 387286340: checkMastership(); I am MASTER
MASTER: Adjusted time 387335939. Offset = -424
MASTER: Adjusted time 387407464. Offset = 20833
MASTER 387447625: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140092301,"subs":[]}]},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]
Node list: 2146419207 2140092301 2140092301 2146419207 2140081748 2140081748 (6 nodes)
MASTER 387468638: checkMastership(); I am MASTER
MASTER 387517398: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]}]},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]
Node list: 2146419207 2140081748 2140092301 2146419207 2140081748 2140092301 2146419207 2140081748 2140081748 (9 nodes)
MASTER 387554869: checkMastership(); I am MASTER
MASTER 387613932: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140092301,"subs":[{"nodeId":2140081748,"subs":[{"nodeId":2146419207,"subs":}]}]}]},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]
Node list: 2146419207 2140092301 2140081748 2146419207 2140092301 2146419207 2140081748 2140081748 (8 nodes)
MASTER 387645655: checkMastership(); I am MASTER
MASTER 387664144: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]}]},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]
Node list: 2146419207 2140081748 2140092301 2146419207 2140081748 2140092301 2146419207 2140081748 2140081748 (9 nodes)
MASTER 387705513: checkMastership(); I am MASTER
MASTER: Adjusted time 388083596. Offset = 232
MASTER: Adjusted time 388104262. Offset = 1736
MASTER: Adjusted time 388121146. Offset = -252
MASTER: Adjusted time 388139160. Offset = -710
MASTER: Adjusted time 388156041. Offset = 738
MASTER: Adjusted time 388172755. Offset = 336
MASTER: Adjusted time 388189614. Offset = 638
MASTER: Adjusted time 388210100. Offset = 1323
MASTER: Adjusted time 388227096. Offset = 539
MASTER: Adjusted time 388245579. Offset = -287
MASTER: Adjusted time 388262373. Offset = 567
MASTER: Adjusted time 388279105. Offset = 296
MASTER: Adjusted time 388295973. Offset = 591
MASTER: Adjusted time 388312985. Offset = 547
MASTER: Adjusted time 388332542. Offset = 606
MASTER: Adjusted time 388351170. Offset = -17
MASTER: Adjusted time 388371814. Offset = -478
MASTER: Adjusted time 388389942. Offset = -755
MASTER: Adjusted time 388408103. Offset = -983
MASTER: Adjusted time 388426113. Offset = -815
MASTER: Adjusted time 388442896. Offset = 603
MASTER: Adjusted time 388462236. Offset = 670
MASTER: Adjusted time 388479039. Offset = 495
MASTER: Adjusted time 388495667. Offset = 537
MASTER: Adjusted time 388512582. Offset = 509
MASTER: Adjusted time 388530713. Offset = -747
MASTER: Adjusted time 388548795. Offset = -707
MASTER: Adjusted time 388571793. Offset = 1830
MASTER: Adjusted time 388588487. Offset = 378
MASTER: Adjusted time 388607665. Offset = 472
MASTER: Adjusted time 388624710. Offset = 376
MASTER: Adjusted time 388642766. Offset = -738
MASTER: Adjusted time 388659763. Offset = 791
MASTER: Adjusted time 388676542. Offset = 535
MASTER: Adjusted time 388693232. Offset = 383
MASTER: Adjusted time 388709914. Offset = 497
MASTER: Adjusted time 388726938. Offset = 580
MASTER: Adjusted time 388744781. Offset = 71
MASTER: Adjusted time 388762277. Offset = 662
MASTER: Adjusted time 388780257. Offset = -605
MASTER: Adjusted time 388797006. Offset = 463
MASTER: Adjusted time 388813756. Offset = 484
MASTER: Adjusted time 388837697. Offset = -547
MASTER: Adjusted time 388859987. Offset = -1510
MASTER: Adjusted time 388878676. Offset = 51
MASTER: Adjusted time 388895517. Offset = 458
MASTER: Adjusted time 388912818. Offset = 687
MASTER: Adjusted time 388931755. Offset = -91
MASTER: Adjusted time 388948510. Offset = 110
MASTER: Adjusted time 388967147. Offset = -56
MASTER: Adjusted time 388983726. Offset = 138
MASTER: Adjusted time 389000544. Offset = 601
MASTER: Adjusted time 389020274. Offset = 628
MASTER: Adjusted time 389043217. Offset = -1224
MASTER: Adjusted time 389063641. Offset = -732
MASTER: Adjusted time 389083378. Offset = 524
MASTER: Adjusted time 389101042. Offset = -986
MASTER: Adjusted time 389118994. Offset = -795
MASTER: Adjusted time 389138454. Offset = 524
MASTER: Adjusted time 389155350. Offset = 531
MASTER: Adjusted time 389174357. Offset = -1364
MASTER: Adjusted time 389190702. Offset = 37
MASTER: Adjusted time 389208695. Offset = -836
MASTER: Adjusted time 389225465. Offset = 526
MASTER: Adjusted time 389245248. Offset = 762
MASTER: Adjusted time 389262013. Offset = -295
MASTER: Adjusted time 389283862. Offset = 691
MASTER: Adjusted time 389300836. Offset = 731
MASTER: Adjusted time 389317611. Offset = 505
MASTER: Adjusted time 389334825. Offset = 181
MASTER: Adjusted time 389358979. Offset = 557
MASTER: Adjusted time 389379943. Offset = -651
MASTER: Adjusted time 389408358. Offset = 1448
MASTER 391301579: Sent broadcast message: {"currentBPM":120,"currentPattern":5}
MASTER 392260599: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]}]},{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":}]}]
Node list: 2146419207 2140081748 2140092301 2146419207 2140081748 2140092301 2140081748 (7 nodes)
MASTER 392290915: checkMastership(); I am MASTER
MASTER 396301654: Sent broadcast message: {"currentBPM":120,"currentPattern":5}
0x8 meshDisconCb(): 0x8 findConnection(espconn): Did not Find
0x1 meshDisconCb(): Invalid state
0x8 ~meshConnectionType():
0x8 closingTask():
0x8 closingTask(): dropping 0 now= 397449878
MASTER 397455738: Changed connections [{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[{"nodeId":2140092301,"subs":[{"nodeId":2146419207,"subs":[{"nodeId":2140081748,"subs":[]}]}]}]}]}]
Node list: 2146419207 2140081748 2140092301 2146419207 2140081748 2140081748 (6 nodes)
MASTER 397492688: checkMastership(); I am MASTER
0x8 wifiEventCb(): EVENT_SOFTAPMODE_STADISCONNECTED
0x8 nodeTimeoutTask():
0x8 nodeTimeoutTask(): dropping 2146419207 now= 399407821
0x8 closeConnection(): conn-nodeId=2146419207, conn-no=1, conn-use=5
0x8 closeConnection(): done, conn-no=0, conn-use=1
0x8 ~meshConnectionType():
0x8 dummy disconcb(): Station Connection! Find new node.
0x8 wifiEventCb(): EVENT_STAMODE_DISCONNECTED
0x8 connectToAP():0x8 connectToAP(): Best AP is 2140092301<---
0x8 connectToAP(): Trying to connect, scan rate set to 4*normal
0x8 closingTask():
0x8 closingTask(): dropping 0 now= 399529926
MASTER 399530036: Changed connections []
Node list: 2140081748 (1 nodes)
MASTER 399538228: checkMastership(); I am MASTER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment