JW

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 140 total)
  • Author
    Posts
  • in reply to: external application requesting sacada data #14450
    JW
    Participant

    Comparing the network traffic, I found a mismatch of the protocol document.

    for the 0x0002 function,
    for the field of username, password, instance,
    actually should be
    length of username (2bytes),
    username,
    length of password (2bytes),
    password
    length of instance (2bytes),
    instance

    in reply to: external application requesting sacada data #14448
    JW
    Participant

    I am confused with the encrypted password meaning for the API.
    for the HelloWorld Project, default ScadaComm account
    Plain test pw = scada
    pw from user table = F9A226BC671CB198C7D83ADEA0B1F2B8
    pw from encrypt password tool = B9D0F030265751578B00E9801C69320C
    secrete key = 0E063D581B1DB27B8E984993DED65CE99284A706756C706C7F3B12C44BD55D4D

    for the API 0x0002 login, a field say encrypted password, does it mean the pw from encrypt password tool? or I need to do AES encryption again using pw from encrypt password tool with secrete key

    in reply to: external application requesting sacada data #14447
    JW
    Participant

    finally found the issue, in the password field of the xml, can not use the password copy from user table.

    need to use the password generated from the Project Tools -> Encrypt Password.

    in reply to: external application requesting sacada data #14446
    JW
    Participant

    After trying all the methods, still not working.

    Then I downloaded the ScadaTestClient again, this time running it, then it worked.

    There is a windows warning about the unsigned application this time, never popup before, then after clicking yes, it can run. not sure if it is relevant.

    in reply to: external application requesting sacada data #14442
    JW
    Participant

    Still can get it to work. same error when I use different username and password and key.

    The source code example is quite detail for other function codes, but there is no detail of the log in function.

    I am using python to work with the API, putting together the commands from bytes, so quite relies on the API documents.

    in reply to: external application requesting sacada data #14433
    JW
    Participant

    Uploaded the ScadaTestClient error again
    ScadaTestClient Error
    Screenshot-2024-04-17-215957

    in reply to: external application requesting sacada data #14431
    JW
    Participant

    I downloaded the ScadaTestClient, but get the following error on starting.

    https://1drv.ms/i/c/7d196e63b671ad1b/ESoeGQzc1ypPnSTSW0IhcxcBn1E_3c0zCZ4ng3FaE967LQ?e=ZDmeGt

    in reply to: external application requesting sacada data #14430
    JW
    Participant

    I copied the encrypted password string from ScadaAdmin.
    username = guest
    encrypted password string = D353B3161AC1FFC43C79CE23FAE333EF
    Also very weird the error message missed the first 2 letters of the username
    estD353B3161AC1FFC43C79CE23FAE333EF

    in reply to: external application requesting sacada data #14429
    JW
    Participant

    where can I find the ScadaTestClient?

    in reply to: 获取力控OPC服务节点重复 #14423
    JW
    Participant

    发到论坛的英文主板块上去问问吧

    in reply to: external application requesting sacada data #14421
    JW
    Participant

    I am testing the api, have some questions about the strings types.

    I tested function code 0x01,03,04, all worked.

    but for 0x02 login, the server showed the following error message.
    I suspect is the error on my request message.

    Authentication failed for user estD353B3161AC1FFC43C79CE23FAE333EF 
    Username or password can not be empty

    Is there any padding for each string or space between strings before encoding?
    Or did I just encode the following string? where user=guest and instance=” by default
    guestD353B3161AC1FFC43C79CE23FAE333EF

    in reply to: external application requesting sacada data #14420
    JW
    Participant

    deleted

    in reply to: external application requesting sacada data #14419
    JW
    Participant

    Thanks Mikhail, the protocol is very detailed.

    I am going to try and compare the speed of application protocol and reading file.

    in reply to: 获取力控OPC服务节点重复 #14392
    JW
    Participant

    6.2.1中opc驱动更新到了DrvDsOpcUaServer 6.0.0.2,更新试试看

    in reply to: 關於服務無法啟動 #14371
    JW
    Participant

    dotnet runtime 8.0和6.0可以共存的。
    如果不行,直接删掉只是手动下载的文件夹和创建的链接即可。

    视乎发行版是用apt还是yum,如是ubuntu可直接安装,用以下指令

    sudo apt-get update && \
      sudo apt-get install -y aspnetcore-runtime-8.0
Viewing 15 posts - 1 through 15 (of 140 total)