step by step method to upload files to raspberry pi

Forum Home Forums Rapid SCADA on Linux and Raspberry Pi step by step method to upload files to raspberry pi

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6689
    Avatartshoman
    Participant

    Using RapidScada 5.8, after configuring the project on Windows what would be the steps to tranfer files to Raspberry Pi 3. The following method I see described in the forum so far seems to be an old method, and no longer recommended.

    i.e transfer files as follows:

    C:\SCADA\BaseDAT
    C:\SCADA\Interface
    C:\SCADA\ScadaComm\Config
    C:\SCADA\ScadaServer\Config except ScadaServerSvcConfig.xml
    C:\SCADA\ScadaWeb\config

    What are steps in the new method. Which files are to be copied.

    #6691
    MikhailMikhail
    Moderator

    In Rapid SCADA v5.8 it’s easy to transfer the configuration.
    You should create a new deployment profile in Administrator. Set RPi’s IP address and other profile parameter. Then upload the configuration to RPi. Don’t forget that in Linux you need different directories for SCADA-Server. Before switching from Windows to Linux, change the directories in Server configuration (using Administrator).

    #6692
    Avatartshoman
    Participant

    Thanks for response Mikhail

    I managed to create the deployment profile. However, upon testing there is an error – Unable to Login-Invalid Usernane or password. I tried 2 different username/password 1) default login for scada (admin) and 2) default for Rpi (pi) both cannot login. I also left the port number as is (10002).

    As for the secret key, should I click to generate one automatically or I can type my own key.

    Anything I’m doing wrong.

    Regards.

    #6698
    MikhailMikhail
    Moderator

    In RPi find the file /opt/scada/ScadaAgent/Config/ScadaAgentConfig.xml
    The secret key in the file must be the same as the secret key in the configuration profile.

    In Administrator you should export the User table to user.dat and copy to /opt/scada/BaseDAT

    To get more info about error, see /opt/scada/ScadaAgent/Log/ScadaAgent.log

    #6703
    Avatartshoman
    Participant

    Hi Mikhail

    I followed all the steps above:

    1) copied secret key from /opt/scada/ScadaAgent/Config/ScadaAgentConfig.xml and pasted it in profile.

    2) Generated (exported) user.dat from Scada Admin in Windows and saved it to Rpi in /opt/scada/BaseDAT

    I still can’t login and the error generated now is Insuffient rightds. I’m logging in with default login for scada ( i.e admin ) which I have not changed.

    The error log is pasted below. Please advice me how to proceed. Regards.

    2020-04-05 18:49:11 <raspberrypi><root><ACT> Agent 5.0.2.0 started
    2020-04-05 18:49:15 <raspberrypi><root><ACT> WCF service is started at http://localhost:10002/ScadaAgent/ScadaAgentSvc/
    2020-04-05 18:49:15 <raspberrypi><root><ACT> Start logic processing
    2020-04-06 16:20:01 <raspberrypi><root><ACT> Session with ID -5008235423191582206 created
    2020-04-06 16:20:02 <raspberrypi><root><ERR> User pi failed validation to connect to Default – Invalid username or password
    2020-04-06 16:20:32 <raspberrypi><root><ACT> Session with ID 5394815069474664172 created
    2020-04-06 16:20:32 <raspberrypi><root><ERR> User admin failed validation to connect to Default – Insufficient rights
    2020-04-06 16:20:41 <raspberrypi><root><ACT> Session with ID -3896198060526525543 created
    2020-04-06 16:20:41 <raspberrypi><root><ERR> User admin failed validation to connect to Default – Insufficient rights
    2020-04-06 16:25:36 <raspberrypi><root><ACT> Session with ID -329630652190660358 created
    2020-04-06 16:25:36 <raspberrypi><root><ERR> User admin failed validation to connect to Default – Insufficient rights
    2020-04-06 16:27:34 <raspberrypi><root><ACT> WCF service is stopped
    2020-04-06 16:27:34 <raspberrypi><root><ACT> All temporary files deleted
    2020-04-06 16:27:34 <raspberrypi><root><ACT> Logic processing is stopped
    2020-04-06 16:27:34 <raspberrypi><root><ACT> Agent is stopped
    ——————————————————————————–
    ——————————————————————————–
    2020-04-06 16:27:51 <raspberrypi><root><ACT> Agent 5.0.2.0 started
    2020-04-06 16:27:53 <raspberrypi><root><ACT> WCF service is started at http://localhost:10002/ScadaAgent/ScadaAgentSvc/
    2020-04-06 16:27:53 <raspberrypi><root><ACT> Start logic processing
    2020-04-06 16:28:47 <raspberrypi><root><ACT> Session with ID 468270691277926380 created
    2020-04-06 16:28:48 <raspberrypi><root><ERR> User admin failed validation to connect to Default – Insufficient rights

    #6706
    MikhailMikhail
    Moderator

    Hi,

    You should use ScadaAdmin user to connect. Check that ScadaAdmin exists in the Users table.

    #6714
    Avatartshoman
    Participant

    Hi Mikhail

    Everything works now ! . Thanks for your help.

    Regards.

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.