Project

General

Profile

機能 #3395

⑪ 共有メモリ型データポート接続機能

Added by n-ando almost 6 years ago. Updated about 4 years ago.

Status:
担当
Priority:
通常
Assignee:
Start date:
12/11/2015
Due date:
% Done:

100%

Estimated time:

Description

同一ノード内のコンポーネント間のデータポート接続において、マーシャリング後のデータのPutを共有メモリ経由で行うことで、TCP/IPスタックを経由することなく高速にデータ転送する機能を実装すること。

Associated revisions

Revision 799 (diff)
Added by win-ei over 5 years ago

Not implemented yet. refs #3395

Revision 800 (diff)
Added by win-ei over 5 years ago

Not implemented yet. refs #3395

Revision 847 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 848 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 849 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 850 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 851 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 852 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 853 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 854 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 855 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 856 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 857 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 858 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 860 (diff)
Added by win-ei about 5 years ago

Fixed bugs. refs #3395

Revision 861 (diff)
Added by win-ei almost 5 years ago

Fixed bugs. refs #3395

Revision 862 (diff)
Added by win-ei almost 5 years ago

Added libraries for JNA. refs #3395

Revision 863 (diff)
Added by win-ei almost 5 years ago

Added JNA libraries to the classpath. refs #3395

Revision 864 (diff)
Added by win-ei almost 5 years ago

Added processing of SharedMemory of windows edition. refs #3395

Revision 865 (diff)
Added by win-ei almost 5 years ago

Added JNA libraries to the classpath. refs #3395

Revision 866 (diff)
Added by win-ei almost 5 years ago

Modified to include JNA libraries in jar.zip. refs #3395

History

#1 Updated by win-ei about 5 years ago

動作確認

ConsoluOut と ConsoluIn で動作確認

  • Java版同士の接続確認
    • 別々のターミナルで ConsoleOut(Java版) ConsoleIn(Java版) を起動する。
    • rtcon でポートが接続する
      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory  --roperty dataport.dataflow_type=pull 
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      

      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory  --roperty dataport.dataflow_type=push 
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      
  • Java版とpython版との接続確認
    • 別々のターミナルで ConsoleOut(python版) ConsoleIn(Java版) を起動する。
      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory --property dataport.dataflow_type=push --property dataport.serializer.cdr.endian=little
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      

      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory --property dataport.dataflow_type=push --property dataport.serializer.cdr.endian=big
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      
    • 別々のターミナルで ConsoleOut(Java版) ConsoleIn(Python版) を起動する。
      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory --property dataport.dataflow_type=push --property dataport.serializer.cdr.endian=little
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      

      $ rtcon ./localhost/ConsoleIn0.rtc:out ./localhost/ConsoleOut0.rtc:in --property dataport.interface_type=shared_memory --property dataport.dataflow_type=push --property dataport.serializer.cdr.endian=big
      $ rtact ./localhost/ConsoleIn0.rtc
      $ rtact ./localhost/ConsoleOut0.rtc
      

#2 Updated by win-ei almost 5 years ago

Windowsの場合

Java Native Access (JNA) を使用して、WindowsAPI(CreateFileMappingA、MapViewOfFile、UnmapViewOfFile、CloseHandle) を使用します。
JNA を使用するために、以下のライブラリを追加。
  • jna-4.2.2.jar
  • jna-platform-4.2.2.jar

動作確認

ConsoluOut と ConsoluIn で動作確認

  • Java版同士の接続確認
    • 別々のターミナルで ConsoleOut(Java版) ConsoleIn(Java版) を起動する。
    • RTSystemEditorRCP でポートを接続(interface_typeはshared_memory)して、ConsoleOut と ConsoleIn を Activate する。
  • Java版とpython版との接続確認
    • 別々のターミナルで ConsoleOut(python版) ConsoleIn(Java版) を起動する。
    • RTSystemEditorRCP でポートを接続(interface_typeはshared_memory)して、ConsoleOut と ConsoleIn を Activate する。
  • Java版とpython版との接続確認
    • 別々のターミナルで ConsoleOut(Java版) ConsoleIn(Python版) を起動する。
    • RTSystemEditorRCP でポートを接続(interface_typeはshared_memory)して、ConsoleOut と ConsoleIn を Activate する。

#3 Updated by katami about 4 years ago

  • Status changed from 新規 to 担当
  • Assignee set to win-ei
  • % Done changed from 0 to 100

#4 Updated by katami about 4 years ago

  • Target version set to RELEASE_1_2_0

Also available in: Atom PDF