PV 450 - Multiuser Passwords

Discuss issues and ideas you have to configuring displays with PowerVision
ECS-SA
Posts: 48
Joined: Thu Feb 17, 2011 7:19 am

PV 450 - Multiuser Passwords

Post by ECS-SA » Thu Apr 28, 2011 1:42 am

Hi,

Can you please assist me again with the passwords for the pv450 so that i can have multiple passwords for different technicians so that i can see who reset the machine after a shutdown fault code is this possible please help me.

Thanks
Marcell
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: PV 450

Post by ksaenz » Thu Apr 28, 2011 10:28 am

Hi Marcell,

To have multiple passwords for different technicians you just need need to modify the script that verifies the password to compare the entered password with multiple passwords.

You can do this by simply adding else if statements to the script.

You could also create a table for your users and use a loop to compare the entered password with all the passwords in the table.

After a valid password is entered you need to put the user ID in a user defined variable ( e.g. currentUserID ).

When the machine is reset, copy the current user ID to another variable. ( e.g. resetByUserID ).

You can have more than one variable to save the last few resets.

You could also write to a file in the PV450.

Regards,

ksaenz
ECS-SA
Posts: 48
Joined: Thu Feb 17, 2011 7:19 am

Re: PV 450

Post by ECS-SA » Tue May 03, 2011 6:43 am

can you make the table in word or exel and incoprate the table in with the user name and password or how must i do it can you maybe give me a example of how to add multipal users with user id's and how do i save who reset the display
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: PV 450

Post by ksaenz » Thu May 05, 2011 7:48 am

Hi Marcell,

You could put the table in a file, a comma separated value (.csv) file would be easier than a word or excel file, you would use scripts to open and parse the file.

What I had in mind was simply an array of user IDs and passwords

Code: Select all

int[][] passwords = {
// ID, password
   [1, 1111],
   [2, 2222],
   [3, 3333]
}
When the users enter their ID and password a script looks for the ID in the array and compares the entered password with the password in the array.

You keep the entered user ID in a user defined variable and when there is a shutdown you copy the ID to another user defined variable and save the variable using NVMgr.Save from a state machine, this last part is very important, if you don't do that the user defined variable will return to its default value when you reboot the PV450. If the variable you want to save is not in the list that means that the option "Save values:" is not enabled in the database, just check the box and you should be able to save the variable.

If you need examples of the scripts and state machines I could make a simple config and post it here later.

Regards,

ksaenz
ECS-SA
Posts: 48
Joined: Thu Feb 17, 2011 7:19 am

Re: PV 450

Post by ECS-SA » Fri May 13, 2011 1:09 am

I would really appretiate it if you can make me a simple config and post it

thanx
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: PV 450 - Multiuser Passwords

Post by ksaenz » Fri May 27, 2011 4:17 pm

Here is a sample config that checks ID and password for multiple users and saves the ID of the last successful login in non-volatile memory.

Regards,

ksaenz
Attachments
Multiuser passwords.db3
(3.14 MiB) Downloaded 44 times
ECS-SA
Posts: 48
Joined: Thu Feb 17, 2011 7:19 am

Re: PV 450 - Multiuser Passwords

Post by ECS-SA » Thu Jun 02, 2011 1:42 am

Hi All

Do you guys think it will be possible to add the list of users and there passwords in with a .csv file from a usb device? Would really appreciate it if you guys can help or through a modem connected to the monitor because the monitors are going to the mine's and then on the mine will the machines are working the device must be updated each time a new opperator or technician is assigned to the different groups of machinery. And then from a central point when shutdowns occure or when the opperator switches of the machine that it can send a message out that says the machine is standing for either the shutdown message or because it is not being used
twang

Re: PV 450 - Multiuser Passwords

Post by twang » Thu Jun 07, 2012 10:29 am

Hello to Kristian,

The demo configuration has a small bug:

when you test the right user and password then go to the gauge scree, if you creat and page view back to the password page, you can see the user and passwora are not cleared. It is very important to clear after you entered the right value and accessed to the guage page.

I spent some time doing a correction, but it's very pity i am not successufl.

could you to improve this demo?

thank you.

Terry
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: PV 450 - Multiuser Passwords

Post by ksaenz » Thu Jun 07, 2012 10:42 am

Terry,

On entering the state "Sucess" in the state machine "Password.Validation" add the following action:

Code: Select all

CCM->Fire Event(Clear)
That will cause a transition back to the initial state and clear the user and password.

Regards,

ksaenz
embtechnicalservices
Posts: 52
Joined: Fri Jan 15, 2016 10:14 am

Re: PV 450 - Multiuser Passwords

Post by embtechnicalservices » Sun May 15, 2016 3:13 pm

Hi,

might be a silly/ obvious question,

how do i use the .db3 file inthe powervision software? I'm trying to impliment a PIN on powerup with different user access based on their PINs.
http://www.emb-technical-services.co.uk
Image
Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: PV 450 - Multiuser Passwords

Post by stalley » Mon May 16, 2016 9:46 am

Hello,

.db3 files are from PowerVision 2.2, it can be tedious to bring it up to 2.8 so I did it for you. Since this post was active several years ago, PowerVision Configuration Studio has changed and has other features to help with user ids and passwords. Lists have been added to PowerVision Configuration Studio for the color displays. A list of user ids and passwords would be a nice way to keep track of different users and access levels.

In the MPC10 and MPC20 configs, the password entry check is an activity program rather than the state machine. The MPC10 and MPC20 configuration supports three different access levels through the menus, so three passwords.
Attachments
Multiuser passwords - 28 patch 1.zip
(1.69 MiB) Downloaded 17 times
Sara Talley
Software Engineer
Enovation Controls
embtechnicalservices
Posts: 52
Joined: Fri Jan 15, 2016 10:14 am

Re: PV 450 - Multiuser Passwords

Post by embtechnicalservices » Mon May 16, 2016 2:48 pm

Many Thanks Sara, very useful.

on a similar note, is there a way for us to lift the other .db3 files to the newer murphyconfig version?

Cheers, Dave.
http://www.emb-technical-services.co.uk
Image
Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: PV 450 - Multiuser Passwords

Post by stalley » Mon May 16, 2016 3:22 pm

Hi Dave,

You can certainly do it. It isn't difficult, but there are cautions.

You just need to have a PowerVision Configuration Studio version 2.3, version 2.6 with the hardware reliability upgrade and then the version of PowerVision that you are currently using. You can get the older versions of PowerVision Configuration Studio at this forum viewforum.php?f=3. I use the latest patch version of each.

Start with the 2.3, it is the last version that will import the .db3 and I put the db3 in a 2.2\DB folder so that PowerVision will import. You can't just drop the db3 in the 2.3\DB folder, sadly. Save it. Then I use the last 2.6 patch version, 2.6.20023 to import and get the reliability upgrades. Save it. THEN, the config can be imported into 2.7 and later.

You want to go through your upgraded configs, outputs are all different, actions don't do what they did in 2.2, etc... We have tried to make the upgrades as painless as possible, but some developers are more imaginative and we haven't covered all the ways a feature might be used. Some features have to be upgraded by hand, for example the digital output on the PV380/PV350 going from 2.7 to 2.8 version.

Depending on how complicated your configs are, you might validate the configs along the way to make sure that features are at least valid before being imported to the next version.

I'll be glad to help if you run into something you can't work out.
Sara Talley
Software Engineer
Enovation Controls
embtechnicalservices
Posts: 52
Joined: Fri Jan 15, 2016 10:14 am

Re: PV 450 - Multiuser Passwords

Post by embtechnicalservices » Tue May 24, 2016 2:35 am

Thanks a lot Sara,

will give this a try :)
http://www.emb-technical-services.co.uk
Image
Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.
embtechnicalservices
Posts: 52
Joined: Fri Jan 15, 2016 10:14 am

Re: PV 450 - Multiuser Passwords

Post by embtechnicalservices » Sun Jun 25, 2017 10:21 am

Is there a way to do a 4 digit password check without using scripting? for a single user login?
http://www.emb-technical-services.co.uk
Image
Windows 10 Home x64 - PowerVision 2.9.21075 OEM
i7-7700HQ ,16GBRAM, 500GBSSD, DELL Inspion 7567, 4K UHD Display.
boyce
Enovation Controls Development
Enovation Controls Development
Posts: 322
Joined: Wed Sep 08, 2010 5:09 pm

Re: PV 450 - Multiuser Passwords

Post by boyce » Mon Jun 26, 2017 9:24 am

It would take a lot of custom configuration work. It looks like this topic included comments about using a CSV file on a USB stick which could really only be done from scripting. The standard MPC20 configuration uses activity programs.
Boyce Schrack
Enovation Controls