Replies: 3 comments 3 replies
-
Are you able to reproduce the same behavior in a smaller program? |
Beta Was this translation helpful? Give feedback.
-
Apparently no. I tried two very simple programs, one receiver and one sender, with parts of the program above, but without the HandleComms object, and I could not replicate. Then I tried to put the HandleComms and it started to seem to have delays like the program above... but I quit, because the program above is much easier to debug than having two separate programs... One could think it is related with tasks, but with City and Prime everything works fine. |
Beta Was this translation helpful? Give feedback.
-
Today I did some more tests with this setup, and for some reason, I went to a different room in my apartment. And there there was no problem! Coming back to the initial room and the problem is there! It seems this is related with the location where I test it! But with City and Prime I could not reproduce the problems… |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everybody!
I wanted to test multitasking and bidirectional TechnicHub hub to hub communication.
So I did a fancy test program that launches several threads and uses one hub button to change the state of the other hub.
The same program runs on each hub, the program detects that there is a motor connected to port A or B, to setup the communication channels.
Almost everything works fine, in fact it seems a funny demo program but:
The very first time I click on one of the hubs, the message is received by the other hub only after about 8s.
Then, everything seems to work fine in that direction. The same problem in the opposite direction.
I also tried with CityHubs and PrimeHubs and it seems to be a problem only related with TechnicHub message reception.
The program is below. The comments includes further details.
Is this a real issue?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions