Search found 1355 matches

by Dinosaur
Sep 11, 2020 11:05
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All Sometimes I ask questions before experimenting with different solutions. This was one of those. The problem was that the client may at unpredictable times try to transmit the result of an rfid scan. If the server only checks every 1,5 or even 10 seconds this line fails at the Client. Client =...
by Dinosaur
Sep 10, 2020 23:00
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All

Can someone tell me how to allow a longer delay for "Client = NetworkClient(.TxIP,.TxPort)"
My server is busy with other things and checks for clients only every second.
The client has at least 10 sec of spare time.

Regards
EDIT:Figured it out, doens't need time extension.
by Dinosaur
Sep 09, 2020 20:41
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All Thanks Joshy, I will test and make a minimal TxApp & RxApp in the next few days using Desktop PC and Beaglebone. Regards Edit: Had to use different Port (Bind Error on Port 80) otherwise it worked using the Client.bas & Server.bas from you latest .zip file. Will try to use the mods fo...
by Dinosaur
Sep 09, 2020 10:11
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All Thank you for that little gem. By calling NetworkClient my problem is solved. So basically calling CanPut does NOT verify that the Client Can PutData. @Dino :-) do it like a man and use error checking ! Dino wrote The code below is as usual stripped of all error checking to simplify my troubl...
by Dinosaur
Sep 09, 2020 4:33
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All I am not sure if I am trying to do something that is not possible. Running Gede debugger (gdb gui) I can trace the steps and the CanPut function passes all steps and returns. None of the steps that would assign -1 get executed, although I could not see where the return value of 1 is set. Perh...
by Dinosaur
Sep 08, 2020 22:50
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All Many thanks for the replies. I am sorting through it today. However because the Rfid Tag reader may only send one Tx for the whole day, is the reason I terminate the connection after a Server read. The server keeps looking for clients trying to connect all day (and night). There are also 3 or...
by Dinosaur
Sep 08, 2020 10:15
Forum: Tips and Tricks
Topic: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.
Replies: 89
Views: 18366

Re: [S]imple [N]etwork [C]onnection win and lin 32/64-bit.

Hi All Adding rfid tag sensing to my SmartPlug application, but have struck a problem when testing. The problem resides in the Client program being unable to verify server availability. The code below is as usual stripped of all error checking to simplify my trouble shooting. (I can hear Joshy alrea...
by Dinosaur
Aug 06, 2020 21:57
Forum: General
Topic: Random Screen saver movement
Replies: 2
Views: 187

Re: Random Screen saver movement

Hi All Thanks for the reply MrSwiss. I know that Screensavers are really no longer needed these days. The screen has one rather large light bulb that is either On or Off. They flick a single input switch (mechanical) to switch all the light in this museum. That switch then cancels the screen saver s...
by Dinosaur
Aug 06, 2020 5:19
Forum: General
Topic: Random Screen saver movement
Replies: 2
Views: 187

Random Screen saver movement

Hi All Finally got tired of using XScreensaver on the Beaglebone Black which does not have keyboard or mouse and has Touchscreen disabled. To cancel the XScreensaver I had to shell out and send a command to it. Messy. So wrote a simple Date/Time screensaver that can be included in my code.(and thus ...
by Dinosaur
Jul 26, 2020 11:59
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 159
Views: 21209

Re: TP-Link HS110

Hi TJF What do you mean by "blit led's to the screen"? Yes that was bit vague wasn't it. Allegro has a routine to "blit" an image to the screen. The images I made are 20x20 square (of the background color) and then I "Blit" a round circle onto it which looks like an LED...
by Dinosaur
Jul 25, 2020 21:30
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 159
Views: 21209

Re: TP-Link HS110

Hi TJF There is no way I could improve on 18 sec's, or come anywhere near it. The uSD alone takes 45 + sec's, but i guess you are not running on a uSD. I find the hardest part is researching what is needed and what is not. Then testing the removals one at the time. But as the application runs withou...
by Dinosaur
Jul 25, 2020 8:45
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 159
Views: 21209

Re: TP-Link HS110

Hi All Once again many thanks for your responses. So please, stop ignoring the error messages! You are preaching to the converted. I may not handle them the way you are, but I have error trapping everywhere in my code. In the case of the error "Cannot open /dev/uio5" , that doesn't mean an...
by Dinosaur
Jul 24, 2020 11:09
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 159
Views: 21209

Re: TP-Link HS110

Hi All TJF many thanks for your response. In particular the plot command is something I have been looking for. What's the result of ?*io->Errr after the io=pruio() call? Cannot open /dev/uio5 What's the result of ?*io->Errr after the .Gpio->config(IOCtrl.OPpinNbr(Xq) , PRUIO_GPIO_OUT0) call? Getting...
by Dinosaur
Jul 24, 2020 0:43
Forum: Hardware Interfaces / Communication
Topic: TP-Link HS110
Replies: 159
Views: 21209

Re: TP-Link HS110

Hi All Have expanded the system to use the Smart Switches as alarms. When movement is detected and the flood lights come on, the smart switch for that zone is switched On. Once I register the addition , the location , the time and date are recorded in a log and an email sent to the duty volunteer to...
by Dinosaur
Jul 07, 2020 21:38
Forum: Community Discussion
Topic: Getting old
Replies: 39
Views: 2091

Re: Getting old

Hi All When I was 36 I had a brain tumour that grew around my pituitary gland. It squeezed it so hard that eventually (after being on morphine for a week) that it burst and the blood surrounded the tumour which took out the tumour. I was very lucky , no operation, but doctors didn't know what had ha...

Go to advanced search