GEP integration


#1
  • I have a program developed (in Python) a few years ago that reads data from OpenPDC using the C37.118 protocol; I am trying to understand if it is possible to do the same thing using the GEP protocol instead of C37.118. In openPDC manager I saw that there is a separate configuration for input and output streams, but I see that for output streams you can only choose between three protocols: C37.118, PDCstream and IEC 61850; I don’t see any reference to GEP. My first question is: what do I have to do to enable GEP on the OpenPDC?

  • Reading a document (found online) entitled “gep-use-tutorial.pdf” I discovered that the first step to enable data exchange is the creation of an authorization request (SRQ file). As far as I know, however, SRQ files can only be created by Windows Server; does this mean that the client that will act as subscriber can only be a Windows machine? And if I want to use a Linux machine as a subscriber, how should I create the authorization request file?

  • Another doubt concerns the implementation of the API to be written to retrieve data through GEP: is it possible to use cython to integrate them into the existing Python program? Is there an example code that can help me in my work?

  • Trying to understand if GEP was already active I tried to use the tool “GEP Subscription Tester” (GSF Graph Lines) on the Windows Server 2008 R2 Enterprise where OpenPDC was installed (server and manager version = 2.6.13.0), but at every start the tester crashes. Below is the content of the output_log file:

      Initialize engine version: 4.6.1f1 (d1db7a1b5196)
      GfxDevice: creating device client; threaded=1
      d3d11: failed to create D3D11 device (0x887a0004)
      GfxDevice: creating device client; threaded=1
      d3d: no support for this device type (accelerated/ref)
      D3D9 initialization failed
      GfxDevice: creating device client; threaded=1
      d3d11: failed to create D3D11 device (0x887a0004)
      D3D11 initialization failed
      D3D9/D3D11 initialization failed, trying OpenGL
      GfxDevice: creating device client; threaded=1
      OpenGL:
      Version:  OpenGL 1.1 [1.1.0]
      Renderer: GDI Generic
      Vendor:   Microsoft Corporation
      VRAM:     86 MB (via DXGI)
      Extensions: GL_WIN_swap_hint GL_EXT_bgra GL_EXT_paletted_texture
      Crash!!!
      SymInit: Symbol-SearchPath: '.;C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows;C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'VISCARDI'
      OS-Version: 6.1.7601 (Service Pack 1) 0x112-0x3
      C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows\GraphLines32.exe:GraphLines32.exe (00D90000), size: 12271616 (result: 0), SymType: '-exported-', PDB: 'C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows\GraphLines32.exe', fileVersion: 4.6.1.51269
      C:\Windows\SysWOW64\ntdll.dll:ntdll.dll (77980000), size: 1572864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\ntdll.dll', fileVersion: 6.1.7601.18247
      C:\Windows\syswow64\kernel32.dll:kernel32.dll (75E40000), size: 1114112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\kernel32.dll', fileVersion: 6.1.7601.18409
      C:\Windows\syswow64\KERNELBASE.dll:KERNELBASE.dll (77150000), size: 290816 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\KERNELBASE.dll', fileVersion: 6.1.7601.18229
      C:\Windows\system32\HID.DLL:HID.DLL (74790000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\HID.DLL', fileVersion: 6.1.7600.16385
      C:\Windows\syswow64\msvcrt.dll:msvcrt.dll (75440000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\msvcrt.dll', fileVersion: 7.0.7601.17744
      C:\Windows\syswow64\WS2_32.dll:WS2_32.dll (75350000), size: 217088 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WS2_32.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\RPCRT4.dll:RPCRT4.dll (75550000), size: 983040 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\RPCRT4.dll', fileVersion: 6.1.7601.18532
      C:\Windows\syswow64\SspiCli.dll:SspiCli.dll (752F0000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SspiCli.dll', fileVersion: 6.1.7601.18637
      C:\Windows\syswow64\CRYPTBASE.dll:CRYPTBASE.dll (752E0000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPTBASE.dll', fileVersion: 6.1.7600.16385
      C:\Windows\SysWOW64\sechost.dll:sechost.dll (772B0000), size: 102400 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\sechost.dll', fileVersion: 6.1.7600.16385
      C:\Windows\syswow64\NSI.dll:NSI.dll (75E20000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\NSI.dll', fileVersion: 6.1.7600.16385
      C:\Windows\syswow64\USER32.dll:USER32.dll (757B0000), size: 1048576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USER32.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\GDI32.dll:GDI32.dll (75A30000), size: 589824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\GDI32.dll', fileVersion: 6.1.7601.18577
      C:\Windows\syswow64\LPK.dll:LPK.dll (76FB0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\LPK.dll', fileVersion: 6.1.7601.18177
      C:\Windows\syswow64\USP10.dll:USP10.dll (753A0000), size: 643072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USP10.dll', fileVersion: 1.626.7601.18454
      C:\Windows\syswow64\ADVAPI32.dll:ADVAPI32.dll (75B40000), size: 655360 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ADVAPI32.dll', fileVersion: 6.1.7601.18247
      C:\Windows\system32\VERSION.dll:VERSION.dll (75150000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\VERSION.dll', fileVersion: 6.1.7600.16385
      C:\Windows\syswow64\ole32.dll:ole32.dll (76FE0000), size: 1425408 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ole32.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\SHLWAPI.dll:SHLWAPI.dll (75AD0000), size: 356352 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHLWAPI.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\SHELL32.dll:SHELL32.dll (76140000), size: 12886016 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHELL32.dll', fileVersion: 6.1.7601.18429
      C:\Windows\system32\OPENGL32.dll:OPENGL32.dll (6F4B0000), size: 819200 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\OPENGL32.dll', fileVersion: 6.1.7600.16385
      C:\Windows\system32\GLU32.dll:GLU32.dll (71970000), size: 139264 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\GLU32.dll', fileVersion: 6.1.7600.16385
      C:\Windows\system32\DDRAW.dll:DDRAW.dll (6F3C0000), size: 946176 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DDRAW.dll', fileVersion: 6.1.7600.16385
      C:\Windows\system32\DCIMAN32.dll:DCIMAN32.dll (71C40000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DCIMAN32.dll', fileVersion: 6.1.7601.18177
      C:\Windows\syswow64\SETUPAPI.dll:SETUPAPI.dll (773E0000), size: 1691648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SETUPAPI.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\CFGMGR32.dll:CFGMGR32.dll (771A0000), size: 159744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CFGMGR32.dll', fileVersion: 6.1.7601.17621
      C:\Windows\syswow64\OLEAUT32.dll:OLEAUT32.dll (75640000), size: 585728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\OLEAUT32.dll', fileVersion: 6.1.7601.18640
      C:\Windows\syswow64\DEVOBJ.dll:DEVOBJ.dll (76FC0000), size: 73728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\DEVOBJ.dll', fileVersion: 6.1.7601.17621
      C:\Windows\system32\dwmapi.dll:dwmapi.dll (71740000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dwmapi.dll', fileVersion: 6.1.7600.16385
      C:\Windows\system32\WINMM.dll:WINMM.dll (74AE0000), size: 204800 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINMM.dll', fileVersion: 6.1.7601.17514
      C:\Windows\system32\MSACM32.dll:MSACM32.dll (71720000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSACM32.dll', fileVersion: 6.1.7600.16385
      C:\Windows\syswow64\IMM32.dll:IMM32.dll (759D0000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\IMM32.dll', fileVersion: 6.1.7601.17514
      C:\Windows\syswow64\MSCTF.dll:MSCTF.dll (771E0000), size: 835584 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSCTF.dll', fileVersion: 6.1.7600.16385
      C:\Windows\system32\DNSAPI.dll:DNSAPI.dll (74880000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DNSAPI.dll', fileVersion: 6.1.7601.17570
      C:\Windows\system32\IPHLPAPI.DLL:IPHLPAPI.DLL (751C0000), size: 114688 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\IPHLPAPI.DLL', fileVersion: 6.1.7601.17514
      C:\Windows\system32\WINNSI.DLL:WINNSI.DLL (751B0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINNSI.DLL', fileVersion: 6.1.7600.16385
      C:\Windows\system32\WINHTTP.dll:WINHTTP.dll (6F360000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINHTTP.dll', fileVersion: 6.1.7601.17514
      C:\Windows\system32\webio.dll:webio.dll (6F310000), size: 323584 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Windows\system32\webio.dll', fileVersion: 6.1.7601.17725
      C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows\GraphLines32_Data\Mono\mono.dll:mono.dll (10000000), size: 2289664 (result: 0), SymType: '-exported-', PDB: 'C:\Users\VISCARDI\Desktop\GSF Graph Lines\Windows\GraphLines32_Data\Mono\mono.dll'
      C:\Windows\syswow64\PSAPI.DLL:PSAPI.DLL (75E30000), size: 20480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\PSAPI.DLL', fileVersion: 6.1.7600.16385
      C:\Windows\system32\MSWSOCK.dll:MSWSOCK.dll (74DB0000), size: 245760 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSWSOCK.dll', fileVersion: 6.1.7601.18254
      C:\Windows\syswow64\WINTRUST.dll:WINTRUST.dll (773B0000), size: 184320 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WINTRUST.dll', fileVersion: 6.1.7601.17787
      C:\Windows\syswow64\CRYPT32.dll:CRYPT32.dll (758B0000), size: 1179648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPT32.dll', fileVersion: 6.1.7601.18277
      C:\Windows\syswow64\MSASN1.dll:MSASN1.dll (77950000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSASN1.dll', fileVersion: 6.1.7601.17514
      C:\Windows\system32\dbghelp.dll:dbghelp.dll (740E0000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dbghelp.dll', fileVersion: 6.1.7601.17514
      ========== OUTPUTING STACK TRACE ==================
      (0x01160BAE) (GraphLines32): (filename not available): Behaviour::Transfer<RemapPPtrTransfer> + 0x16ece
      (0x011D5714) (GraphLines32): (filename not available): Behaviour::Transfer<RemapPPtrTransfer> + 0x8ba34
      (0x011CEE70) (GraphLines32): (filename not available): Behaviour::Transfer<RemapPPtrTransfer> + 0x85190
      (0x00E8F8BD) (GraphLines32): (filename not available): Object::Transfer<StreamedBinaryWrite<0> > + 0x38dd
      (0x00F1FB70) (GraphLines32): (filename not available): Object::Transfer<StreamedBinaryWrite<0> > + 0x93b90
      (0x00F879D9) (GraphLines32): (filename not available): Object::Transfer<StreamedBinaryWrite<0> > + 0xfb9f9
      (0x011FCA78) (GraphLines32): (filename not available): Behaviour::Transfer<RemapPPtrTransfer> + 0xb2d98
      (0x01231970) (GraphLines32): (filename not available): Behaviour::Transfer<RemapPPtrTransfer> + 0xe7c90
      (0x75E5338A) (kernel32): (filename not available): BaseThreadInitThunk + 0x12
      (0x779B9F72) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x63
      (0x779B9F45) (ntdll): (filename not available): RtlInitializeExceptionChain + 0x36
      ========== END OF STACKTRACE ===========
      **** Crash! ****

#2

GEP is an independent protocol for data exchange. API’s exist in C#, C++ and Java. Currently GEP is in the process of becoming a standard, IEEE P2664.

See the folllowing for more information:
http://gridprotectionalliance.org/docs/products/gsf/gep-overview.pdf


Thanks,
Ritchie