Forum Replies Created
-
AuthorPosts
-
JWParticipant
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),
instanceJWParticipantI 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 = 0E063D581B1DB27B8E984993DED65CE99284A706756C706C7F3B12C44BD55D4Dfor 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
JWParticipantfinally 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.
JWParticipantAfter 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.
JWParticipantStill 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.
JWParticipantJWParticipantI downloaded the ScadaTestClient, but get the following error on starting.
https://1drv.ms/i/c/7d196e63b671ad1b/ESoeGQzc1ypPnSTSW0IhcxcBn1E_3c0zCZ4ng3FaE967LQ?e=ZDmeGt
JWParticipantI 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
JWParticipantwhere can I find the ScadaTestClient?
JWParticipant发到论坛的英文主板块上去问问吧
JWParticipantI 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
JWParticipantdeleted
JWParticipantThanks Mikhail, the protocol is very detailed.
I am going to try and compare the speed of application protocol and reading file.
JWParticipant6.2.1中opc驱动更新到了DrvDsOpcUaServer 6.0.0.2,更新试试看
JWParticipantdotnet runtime 8.0和6.0可以共存的。
如果不行,直接删掉只是手动下载的文件夹和创建的链接即可。视乎发行版是用apt还是yum,如是ubuntu可直接安装,用以下指令
sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-8.0
-
AuthorPosts