zzz

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 165 total)
  • Author
    Posts
  • in reply to: rapidscada 6.1 install on linux problem #14575
    zzz
    Participant

    a side note:

    To see non-unicode characters correctly. you might need to set LC_ALL= to your language encoding beforehand.

    in reply to: OPC UA View in ScadaAdmin can’t connect in Wine 9.8 #14574
    zzz
    Participant

    I am afraid, I am not thinking straight by turning off encryption and configuring on wine, due to limited connectivity, though the vlans are strictly isolated and secured enough, tough I do feel that leaving PKI dependency while encryption is disabled is not reasonable.
    Please see my other new thread, compared to that, I think this issue affects less people.

    in reply to: E mail #14572
    zzz
    Participant

    Provided that you have configured correctly, many public Email service provider deploy extra constraint or authentication measurement on SMTP to fight spam. Maybe try other Email provider better smaller, less known ones.
    Best with private or internal SMTP.

    in reply to: rapidscada 6.1 install on linux problem #14571
    zzz
    Participant

    – Install wine-staging,
    – Install dotnet core for window x64 into wine prefix like on windows
    – Run wine ScadaAdmin.exe

    in reply to: OPC UA client connection setup ? #14570
    zzz
    Participant

    Could you define the tricky tricky(R) ?
    My project this time is an extension of an existing project, otherwise I wouldn’t get into OPC UA I guess. I think it’s better I don’t fiddle with the KepwareEx service, since the other client software that KepwareEx is installed for seems not so robust. I don’t want to break it. And I have just learn this much about OPC UA.
    I’d rather try my luck with dotnet. I believe my previous attempts on formula in RS5 is more twisted :-D.

    in reply to: OPC UA View in ScadaAdmin can’t connect in Wine 9.8 #14569
    zzz
    Participant

    That PR works, its just unclear to me if skipping cert check simply like that is consistent enough to not leave bugs like uninitialized sth. … since I only tested it on ScadaAdmin+dotnet8+Wine9 which is at most momentary, compared to Communicator.
    Anyway at least, if secmode is disabled as none, encryption stuff being left alone, seem logical to me.

    in reply to: OPC UA client connection setup ? #14559
    zzz
    Participant

    Forgot to tick for notify. 😀

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

    Could you unfold _SYSTEM_ node in pSpace.OPCServer and take a screenshot for that ?

    Anyway, this is just for configuration convenience, shouldn’t affect the operation. Just fold the _SYSTEM_ node in RS6 and use nodes on root to add property.

    in reply to: OPC UA client connection setup ? #14557
    zzz
    Participant

    Also on the TagName thing, for the first time, I need to join two OPCUA string values together. I am not sure if formula like below will be suffice.

    
    Data Len:  '30'
    Data Type: 'Ascii Str'
    TagCode: ''
    TagName: ''
    Formula Enabled: 'true'
    Formula: Val('TagCode1')+Val('TagCode2')
    

    TagCode1, TagCode2 are not referenced anywhere in Channels, only configured in ScadaComm OPC UA Properties.

    in reply to: OPC UA View in ScadaAdmin can’t connect in Wine 9.8 #14554
    zzz
    Participant

    Tried to ignore Success error, nothing happens afterwards, no error, no nothing. Its not a Success as claimed. 🙁

    in reply to: external application requesting sacada data #14553
    zzz
    Participant

    Since there doesn’t seem to be any mention of the session id, it may be worth mentioning that the password encryption is initialized with the sess_id.

    Here is how I did it in my current client.

    
    def Encrypt(s: str, sec_key, sess_id) -> str:
        ct = EncryptBytes(s.encode("UTF8"), sec_key, sess_id)
        return binascii.b2a_hex(ct).decode("ascii").upper()
    
    def EncryptBytes(bstr:bytes, secretKey, sess_id):
        # generate iv from sess_id
        iv = bytearray(IVSize)
        sessBuf = struct.pack("q",sess_id)
        sessBufLen = len(sessBuf)
        for i in range(0, IVSize):
            iv[i] = sessBuf[i % sessBufLen]
        #print("gen_iv=")
        #hexdump(iv)
    
        # encrypt byets
        padder = padding.PKCS7(128).padder()
        cipher = Cipher(algorithms.AES(secretKey), modes.CBC(iv))
        encr = cipher.encryptor()
        bstr = padder.update(bstr) + padder.finalize()
        ct = encr.update(bstr) + encr.finalize()
    
        return ct
    
    in reply to: OPC UA View in ScadaAdmin can’t connect in Wine 9.8 #14551
    zzz
    Participant

    The System.Security.Cryptography.CryptographicException: Success behavior is not affected by setting
    Security Mode = None
    Security Policy = None

    in reply to: OPC UA View in ScadaAdmin can’t connect in Wine 9.8 #14550
    zzz
    Participant

    DotNet version in Wine

    Host:
    Version: 8.0.2
    Architecture: x64
    Commit: 1381d5ebd2
    RID: win-x64

    in reply to: Flux is entered maintenance mode #14080
    zzz
    Participant

    I have InfluxDB2 and RapidScada6.0 on a remote box setup a year ago.
    I was thinking about updating influxdb to the latest and just found the change in v3. I guess we need to use InfluxQL more and diminish the use of Flux for query. But it was treated like a 2nd class citizen in v2.

    in reply to: Running .net8 assembly with mono installed #14072
    zzz
    Participant

    OK, there are some path issue when running with wine dotnet ScadaAdmin.dll.
    No language file is loaded, on both wine and windows. I guess some path func changed behaviour.
    (Also clicking on any menu will lead to crash, which only happens on wine).
    On Windows if I click Tools>Language, an error pops up:

    
    [Error Caption]
    [LoadCultureError]:
    Can not find a part of the path c:\program files\dotnet\lang
    

    But publish ... --os win does create an exe that I can run under wine. With the ScadaAdmin.exe loader running from the same path setup, everything works ok on both Linux/wine and Windows.

    With mono I can’t execute any linux native loader for dotnet assembly, e.g. ScadaAdmin ScadaServer. I guess it’s not possible to work around this without issue (considering the above path issue without loader).

    This is not a bug report but more of an observation though.

    • This reply was modified 1 year, 7 months ago by zzz.
Viewing 15 posts - 31 through 45 (of 165 total)