kumajaya

Forum Replies Created

Viewing 15 posts - 61 through 75 (of 143 total)
  • Author
    Posts
  • in reply to: Rapid SCADA 6 Beta #10919
    kumajaya
    Participant

    I found Mqtt client driver much reliable now and I can expose it as OPC UA directly. I have to say RS6 so great!


    @Mikhail
    Can you confirm RS6 OADate in UTC date and time now?

    in reply to: Web API, REST API, version 6 #10843
    kumajaya
    Participant

    My solution in Node-RED is a bit of tricky with Puppeteer help:

    const puppeteer = global.get('puppeteer')
    
    const browser = await puppeteer.launch({headless: true, ignoreHTTPSErrors: true})
    const page = await browser.newPage()
    await page.goto('https://localhost/scada/Login.aspx')
    await page.type('input[name="txtUsername"]', 'admin')
    await page.type('input[name="txtPassword"]', '12345')
    await page.click('[name="btnLogin"]')
    const cookies = await page.cookies()
    browser.close()
    
    msg.payload = cookies
    
    return msg;

    And then access SCADA API using http request node with above session cookie.

    in reply to: Rapid SCADA 6 Beta #10837
    kumajaya
    Participant

    Now all supported security mode with user and password works! Thank you.

    in reply to: Rapid SCADA 6 Beta #10836
    kumajaya
    Participant

    Thank you. I can rebuild it by myself.

    in reply to: Rapid SCADA 6 Beta #10812
    kumajaya
    Participant
    in reply to: Rapid SCADA 6 Beta #10793
    kumajaya
    Participant

    Update:
    Remove user and password from OPC UA server and connect to it anonymously works.

    in reply to: Rapid SCADA 6 Beta #10791
    kumajaya
    Participant

    Just tested RS6 as OPC DA – OPC UA gateway, UAExpert can access it using username and password but RS6 OPC UA client driver running on Linux can’t access it with “BadIdentifyTokenInvalid” error.

    in reply to: Rapid SCADA 6 Beta #10789
    kumajaya
    Participant

    Thanks for your beta update but somehow ScadaReport.dll not included.

    in reply to: TCP Api #9800
    kumajaya
    Participant

    Can we use KpHttpNotif as REST API call to RS? Any instructions how to setup it?

    in reply to: BUG: Can’t save SVG image anymore #9766
    kumajaya
    Participant

    I can save back svg image now, thank you. Image properties show data size, format, and name but still no image size (always show 0,0). Image size information useful as a quick information to set scheme layout size.

    in reply to: BUG: Can’t save SVG image anymore #9762
    kumajaya
    Participant

    Load svg image in Scheme Editor, there will be no data size, format, and size information in image properties and we will got zero size file when try to save it.

    in reply to: Com Ports ? #9641
    kumajaya
    Participant

    If I was in your situation, since I have Mqtt broker (Mosquitto) and Node-RED installed:
    Solution 1: Use python to read serial data and push it to Mqtt broker, RS as Mqtt client
    Solution 2: Use Node-RED to read serial data and also set it as OPCUA server, RS as OPCUA client

    in reply to: Forced Modbus TCP reconnect after serial error. #9633
    kumajaya
    Participant

    Maybe I have experienced the same problem and then let Perle TruePort software maintain TCP connection, RS talk to device serial port virtually via TruePort.

    in reply to: HTTPS on Linux #8148
    kumajaya
    Participant

    I can’t edit my own post, a few correction:
    Step 2. Fix mono-xsp4 service bug:
    sudo nano /etc/init.d/mono-xsp4
    Step 4. Start Mono XSP server. Server will run on port 8084, you can change it in /etc/default/mono-xsp4:
    sudo systemctl start mono-xsp4

    in reply to: HTTPS on Linux #8146
    kumajaya
    Participant

    I just installed RS on Ubuntu server 20.04 and follow https://www.mono-project.com/docs/web/fastcgi/nginx/ without any success, repeatedly errors in table view. I want to run RS purely with Nginx without Apache. A tested working solution:

    1. Add ScadaWeb to Mono XSP server:
    sudo mono-xsp4-admin add --path=/opt/scada/ScadaWeb --app=/scada
    2. Fix mono-xsp service bug:
    sudo nano /etc/init.d/mono-xsp
    change:
    for i in $(ps aux | grep -v grep | grep 'xsp4.exe' | cut -c 10-15)
    to:
    for i in $(ps aux | grep -v grep | grep 'xsp4.exe' | cut -c 10-17)
    3. Reload mono-xsp service:
    sudo systemctl daemon-reload
    4. Start Mono XSP server. Server will run on port 8084, you can change it in /etc/default/mono-xsp4:
    sudo systemctl start mono-xsp
    5. Follow https://www.digitalocean.com/community/tutorials/how-to-install-nginx-on-ubuntu-20-04 to install Nginx
    6. Follow https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-ubuntu-20-04 to secure Nginx
    7. Edit /etc/nginx/sites-available/example.com and add:

            if ($scheme != "https") {
                    return 301 https://$host$request_uri;
            }
    
            location /scada {
                    proxy_pass http://127.0.0.1:8084;
                    sub_filter 'example.com:8084' 'example.com';
                    sub_filter 'example.com%3a8084' 'example.com';
                    sub_filter_once on;
                    proxy_redirect off;
                    proxy_buffering off;
                    proxy_set_header Host $host;
                    proxy_set_header X-Real-IP $remote_addr;
                    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                    proxy_set_header X-Forwarded-Proto $scheme;
            }

    8. Restart Nginx:
    sudo systemctl restart nginx
    9. Test as previous post.

    NOTE: Not tested to load a scheme yet but “Unable to receive list of plugins” in Main Menu – Plugins – Download

Viewing 15 posts - 61 through 75 (of 143 total)