Miami

I’m writing a simple garage door control program. I use my Rpi to open/close the door.

The door has a sensor to see if it’s open or closed.

 

My program detects if the door is open every 1 hour, and close it if open.

It also detects if my car is approaching, and does the instruction from the car, e.g. open or close the door.

The instruction can also come from my phone.

Reply 1 0
Miami

Currently, my program uses a string matching to see if it’s my car, or my phone. I don’t think this is a good authentication.

Can anyone point me how a good authentication should be done?

Messages Image(2313445427).jpg 
Reply 0 0
thiagoralves
Authentication is a complicated subject, and traditionally PLCs are not very good with that. Usually a "safer" mechanism is implemented through an encrypted challenge-response scheme (more info here on Wiki:  https://en.wikipedia.org/wiki/Challenge%E2%80%93response_authentication ). However, I bet this will be a bit hard to implement on pure code on a PLC, especially the encryption part. Given the circumstances, depending on where this is implemented, a simple passphrase like what you're doing should be enough.
Reply 0 0
jml69
Hi, This is my first post in this forum. I am pretty excited to start working with OpenPLC after working some years with Siemens/Codesys. I am pretty comfortable writing code in ST but maybe the inbuilt compiler/error_checker/auto_indenting/auto-fill of syntax of Siemens/Codesys has spoiled me. Even my simple State machines are giving compilation errors. Is there any document on how to get started with Structured Text, correctly compile, do simulation, important rules with open PLC? I apologize if this question has already been asked, if yes then can you forward me to the right direction?
Reply 0 0
gracesrm
@jml69
The OpenPLC Editor is based on beremiz. Maybe you can find something useful here. 

https://translate.google.com/translate?hl=&sl=ru&tl=en&u=https%3A%2F%2Fsm1820.github.io%2Fberemiz%2F
Reply 3 0
jml69
@gracesrm, many thanks for your reply. This helps. 
Reply 0 0
allenbi
@gracesrm
This is an excellent reference. Thanks!

Best Regards,
Bill
Reply 0 0
Reply