Jump to content
OpenSplice DDS Forum

getviswa

Members
  • Content count

    26
  • Joined

  • Last visited

About getviswa

  • Rank
    Member
  • Birthday 05/11/1986

Contact Methods

  • Skype
    pickviswa

Profile Information

  • Gender
    Male
  • Company
    Viswa
  1. Hi All, OpenSpliceDDS not connecting (not working) in WAN I am running OpenSpliceDDS in public IP 'x.x.x.x' and i am trying to connect with diffent subnet ip 'x.x.y.y' with following configuration, Note: Both machines having single ethernet so OpenSpliceDDS will take the same Server Side <General> <NetworkInterfaceAddress>AUTO</NetworkInterfaceAddress> <AllowMulticast>true</AllowMulticast> <EnableMulticastLoopback>true</EnableMulticastLoopback> </General> <Partitioning> <GlobalPartition Address="multicast"/> </Partitioning> Client Side <General> <NetworkInterfaceAddress>AUTO</NetworkInterfaceAddress> </General> <Partitioning> <GlobalPartition Address="x.x.x.x"> </Partitioning> <Discovery Scope="*.*" enabled="true"> <PortNr>54120</PortNr> <ProbeList>x.x.x.x</ProbeList> </Discovery> Please help me to resolve the issue. Thanks -Viswa
  2. Subscriber QoS Policy

    Hi Hans, Thanks for the reply, I have configured the transient_local to achive the same but not working, following is my QoS sample code. Topic QoS topicQos.value.reliability.kind = ReliabilityQosPolicyKind.RELIABLE_RELIABILITY_QOS; topicQos.value.durability.kind = DurabilityQosPolicyKind.TRANSIENT_LOCAL_DURABILITY_QOS; topicQos.value.destination_order.kind=DestinationOrderQosPolicyKind.BY_SOURCE_TIMESTAMP_DESTINATIONORDER_QOS; status = participant.set_default_topic_qos(topicQos.value); topic = participant.create_topic(topicName, typeName, topicQos.value,null, ANY_STATUS.value); Publisher and Subscriber i left it default QoS. Data Writer QoS publisher.copy_from_topic_qos(wQoS, topicQos.value); wQoS.value.writer_data_lifecycle.autodispose_unregistered_instances = false; writer = publisher.create_datawriter(topic, wQoS.value, null,ANY_STATUS.value); Data Reader QoS subscriber.get_default_datareader_qos(rQoS); subscriber.copy_from_topic_qos(rQoS, topicQos.value); reader = subscriber.create_datareader(topic, rQoS.value, null, ANY_STATUS.value); Please suggest me to achive the scenario. Thanks -Viswa
  3. CamelOS with OpenSpliceDDS

    Hello All, I found where the issue caused, in the evaluation version while compiling IDL it is displaying "EVALUATION VERSION" as result, So it takes as failure. I have used Community Edition 5.5.1 and it is compiled successfully. Thanks -Viswa
  4. Subscriber QoS Policy

    Hello All, Please help me configure QoS to implement the following, I am having one publisher and many subscribers, from the subscriber side i want to receive the same content only one time. That is, publisher publishing content1,content2 Subscriber receiving content1,content2 and it will end. Again publisher publishing content3 Normally subscriber again starts receiving from content1,content2,content3 I want to configure subscriber who are all receiving the contents they should not be receiving the same content next time, that is from above example, the subscriber should be receive content3 alone in second run. How to configure the QoS to achieve this ?? Thanks -Viswa
  5. CamelOS with OpenSpliceDDS

    Hi All, While i am trying to implement CamelOs with OpenSpliceDDS Evaluation 6.1 version i am facing following error (with OpenSplice version 5.3 working fine) . Please explain me what may be the issue ?? how to resolve it ?? ------------------------------------------------------- T E S T S ------------------------------------------------------- Running org.opensplice.dds.idlcompiler.IDLMojoTest [iNFO] Executing idl command[C:\Program Files (x86)\PrismTech\OpenSpliceDDS\V6.1.1p1\HDE\x86_64.win64\bin\idlpp, -d, E:\camel-windows\camelopensp lice\maven-dds\plugins\opensplice-idl-plugin arget est-classes, -S, -l, java, -c, E:\camel-windows\camelopensplice\maven-dds\plugins\opensplice -idl-plugin\pre, -D, Hello, -D, World, -I, E:\camel-windows\camelopensplice\maven-dds\plugins\opensplice-idl-plugin\myDir1, -I, E:\camel-windows\ camelopensplice\maven-dds\plugins\opensplice-idl-plugin\myDir2, E:\camel-windows\camelopensplice\maven-dds\plugins\opensplice-idl-plugin\src est \java\projects\project1\resources\durable.idl] [iNFO] C:\Program Files (x86)\PrismTech\OpenSpliceDDS\V6.1.1p1\HDE\x86_64.win64\bin\idlpp EVALUATION VERSION Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.663 sec <<< FAILURE! Results : Tests in error: testIDLCompilation(org.opensplice.dds.idlcompiler.IDLMojoTest) Tests run: 2, Failures: 0, Errors: 1, Skipped: 0 [iNFO] ------------------------------------------------------------------------ [iNFO] BUILD FAILURE [iNFO] ------------------------------------------------------------------------ [iNFO] Total time: 2:54.281s [iNFO] Finished at: Mon Jul 23 22:36:18 IST 2012 [iNFO] Final Memory: 7M/85M [iNFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.10:test (default-test) on project opensplice-idl-plugin: There ar e test failures. [ERROR] [ERROR] Please refer to E:\camel-windows\camelopensplice\maven-dds\plugins\opensplice-idl-plugin arget\surefire-reports for the individual test results. [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache....ailureException Thanks -Viswa
  6. Message Instance and Samples

    Hello All, I am trying to publish the sequence of messages in the topic. I can publish it successfully but i trying to subscribe the messages i am getting last message which i was published. Note I have used HelloWorld: DDSEntityManager.java from the example. Publisher Code: public static void messagePublisher(String devMessage,String devMessageType, String devDeviceSerialType,String devAction ) { SimpleDDS mgr = new SimpleDDS(); String partitionName = "MessageService"; mgr.createParticipant(partitionName); DDSMessageTypeSupport msgTS = new DDSMessageTypeSupport(); mgr.registerType(msgTS); mgr.createTopic("Messages"); mgr.createPublisher(); mgr.createWriter(); DataWriter dwriter = mgr.getWriter(); DDSMessageDataWriter ddsWriter = DDSMessageDataWriterHelper.narrow(dwriter); DDSMessage msgInstance = new DDSMessage(devDeviceSerialType, devMessageType, devAction, devMessage); ddsWriter.register_instance(msgInstance); int status = ddsWriter.write(msgInstance, HANDLE_NIL.value); ErrorHandler.checkStatus(status, "DDSMessageDataWriter.write"); try { Thread.sleep(1000); } catch (InterruptedException e) { e.printStackTrace(); } mgr.getPublisher().delete_datawriter(ddsWriter); mgr.deletePublisher(); mgr.deleteTopic(); mgr.deleteParticipant(); try { Thread.sleep(200); } catch (InterruptedException e) { e.printStackTrace(); } } public static void main(String[] args) { messagePublisher("112-2134354","response","XMLMessage","123"); messagePublisher("112-2134354","response","XMLMessage","1234"); messagePublisher("230-4353456","response","XMLMessage","12345"); } Subscriber Code: public static void messageSubscriber(String args) { SimpleDDS mgr = new SimpleDDS(); String partitionName = "MessageService"; mgr.createParticipant(partitionName); DDSMessageTypeSupport msgTS = new DDSMessageTypeSupport(); mgr.registerType(msgTS); mgr.createTopic("Messages"); mgr.createSubscriber(); mgr.createReader(); DataReader dreader = mgr.getReader(); DDSMessageDataReader ddsReader = DDSMessageDataReaderHelper.narrow(dreader); DDSMessageSeqHolder msgSeq = new DDSMessageSeqHolder(); SampleInfoSeqHolder infoSeq = new SampleInfoSeqHolder(); boolean terminate = false; int count = 0; while (!terminate && count < 1500) { ddsReader.take(msgSeq, infoSeq, LENGTH_UNLIMITED.value, ANY_SAMPLE_STATE.value, ANY_VIEW_STATE.value, ANY_INSTANCE_STATE.value); System.out.println(msgSeq.value.length); for (int i = 0; i < msgSeq.value.length; i++) { System.out.println(" userID : " + msgSeq.value[i].deviceSerialType); System.out.println(" type : " + msgSeq.value[i].messageType); System.out.println(" action : " + msgSeq.value[i].actionType); System.out.print(" Message : \"" + msgSeq.value[i].message + "\""); //terminate = true; } try { Thread.sleep(200); } catch(InterruptedException ie) { // nothing to do } ++count; } ddsReader.return_loan(msgSeq, infoSeq); mgr.getSubscriber().delete_datareader(ddsReader); mgr.deleteSubscriber(); mgr.deleteTopic(); mgr.deleteParticipant(); } public static void main(String[] args) { messageSubscriber("test"); } But Subscriber resulting last message which is published. Please help me. userID : XMLMessage type : response action : 12345 Message : "230-4353456" Thanks -Viswa
  7. MAC access policy

    Hello All, I am using OpenSpliceVersion : 6.1 evaluation DDSServer has the list of trusted certificates of the users, i would like to restrict the users who are all not in the server trusted list. How can i implement this ?? I have configured x509 authentication and MAC access policy. Really i am struggling to know how it will work. Please explain MAC access policy. Following server configuration i done so far, ospl.xml <OpenSplice> <Domain> <Name>DDSServer</Name> <Id>0</Id> <Database> <Size>10485760</Size> </Database> <Service enabled="true" name="networking"> <Command>snetworking</Command> </Service> <Service name="durability"> <Command>durability</Command> </Service> <Service name="cmsoap"> <Command>cmsoap</Command> </Service> </Domain> <NetworkService name="networking"> <Partitioning> <GlobalPartition Address="broadcast,x.x.x.x" SecurityProfile="GlobalProfile"/> </Partitioning> <Security enabled="true" > <SecurityProfile Name="GlobalProfile"Cipher="aes128" CipherKey="716AC3C0333D38D61B4CA0734C7A7274" /> [b] <AccessControl enabled="true" policy="file:///opt/PrismTech/OpenSpliceDDS/V6.1.1p1/HDE/x86_64.linux2.6-debug/etc/config/access_policy.xml"> <AccessControlModule enabled="true" type="MAC"/> </AccessControl>[/b] [b] <Authentication enabled="true"> <X509Authentication> <Credentails> <Key>file:///opt/PrismTech/OpenSpliceDDS/V6.1.1p1/HDE/x86_64.linux2.6-debug/keyCerts/key.dds.test.pem</Key> <Cert>file:///opt/PrismTech/OpenSpliceDDS/V6.1.1p1/HDE/x86_64.linux2.6-debug/keyCerts/dds.test.pem</Cert> </Credentails> <TrustedCertificates>file:///opt/PrismTech/OpenSpliceDDS/V6.1.1p1/HDE/x86_64.linux2.6-debug/keyCerts/trusted/agent.test.pem</TrustedCertificates> </X509Authentication> </Authentication>[/b] </Security> <Channels> <Channel enabled="true" name="default" default="true"> <PortNr>2020</PortNr> </Channel> </Channels> </NetworkService> <DurabilityService name="durability"> <Network> <Alignment> <TimeAlignment>FALSE</TimeAlignment> <RequestCombinePeriod> <Initial>2.5</Initial> <Operational>0.1</Operational> </RequestCombinePeriod> </Alignment> <WaitForAttachment maxWaitCount="10"> <ServiceName>networking</ServiceName> </WaitForAttachment> </Network> <NameSpaces> <NameSpace name="defaultNamespace"> <Partition>*</Partition> </NameSpace> <Policy nameSpace="defaultNamespace" durability="Durable" alignee="Initial" aligner="True"/> </NameSpaces> </DurabilityService> <TunerService name="cmsoap"> <Server> <PortNr>50000</PortNr> </Server> </TunerService> </OpenSplice> access_policy.xml <accessControlPolicy> <secrecyLevels> <!-- for MAC --> <secrecyLevel>UNCLASSIFIED</secrecyLevel> <secrecyLevel>RESTRICTED</secrecyLevel> <secrecyLevel>CONFIDENTIAL</secrecyLevel> <secrecyLevel>SECRET</secrecyLevel> <secrecyLevel>TOP_SECRET</secrecyLevel> </secrecyLevels> <integrityLevels> <!-- for MAC --> <integrityLevel>LEVEL_0</integrityLevel> <integrityLevel>LEVEL_1</integrityLevel> <integriyLevel>LEVEL_2</integrityLevel> </integrityLevels> <users> <user> <id>123</id> <clearance> <!-- for MAC --> <secrecyLevel>RESTRICTED</secrecyLevel> <integrityLevel>LEVEL_2</integrityLevel> <compartments> <compartment>US</compartment> </compartments> </clearance> <authentication> <x509Authentication> <subject>agent.test.com</subject> </x509Authentication> </authentication> </user> </users> <resources> <resource> <type>PARTITION</type> <id>HelloWorld example</id> <topics> <topic>HelloWorldData_Msg<topic> <topics> <classification> <!-- for MAC --> <secrecyLevel>RESTRICTED</secrecyLevel> <integrityLevel>LEVEL_2</integrityLevel> <compartments> <compartment>US</compartment> </compartments> </classification> <resource> </resources> </accessControlPolicy> Thanks -Viswa
  8. Security featue is not available issue

    Thanks .. I am using 6.1 evaluation version now.
  9. Hello All, While i am working on the X509 authentication in ospl config, i faced issue Credentials tag missing. While analizing library file, It seems XML file parsed by "Credentails". I have changed the tags as follows it works, <Credentials>.....</Credentials> To <Credentails>.....</Credentails> Thanks -Viswa
  10. Evaluation version 6.1 X509 authtication

    Hello All, File URI syntax was the issue. "file://keyCerts/key.dds.pem" changed to "file:///keyCerts/key.dds.pem". Now it is not showing errors. Thanks -Viswa
  11. Hello All, I'm using 6.1 evaluation version to testing X509 authentication. I have created self signed certificate (key and cert). Steps i followed to generate self signed certificate Generating Private Key # openssl genrsa –out key.dds.pem 1024 Generating CSR # openssl req –new –key key.dds.pem –out dds.csr Generating Self Signed Key # openssl x509 -req -days 365 -in dds.csr -signkey key.dds.pem -out dds.pem key.dds.key file format: -----BEGIN RSA PRIVATE KEY----- <key> -----END RSA PRIVATE KEY----- My config file <X509Authentication> <Credentails> <Key>file://keyCerts/key.dds.pem</Key> <Cert>file://keyCerts/dds.pem</Cert> </Credentails> <TrustedCertificates>file://keyCerts/trusted/trusted1.pem</TrustedCertificates> </X509Authentication> While i am trying to start ospl i am facing following error, Please help me in solving this issue. ======================================================================================== Report : ERROR Date : Wed Jul 11 11:50:31 2012 Description : Failed to read the private key from file://keyCerts/key.dds.pem Node : viswa-co Process : networking <12899> Thread : main thread 7f9be96e5700 Internals : V6.1.1p1/6257f53/f11a680/networking: nw_authenticationResolvePrivateKeyFromUri/nw_authentication.c/525/0/1341987631.757719810 ======================================================================================== Report : ERROR Date : Wed Jul 11 11:50:31 2012 Description : Failed to read private key from URI 'file://keyCerts/key.dds.pem' Node : viswa-co Process : networking <12899> Thread : main thread 7f9be96e5700 Internals : V6.1.1p1/6257f53/f11a680/networking: nw_authenticationConfigInitPrivateKey/nw_authentication.c/563/0/1341987631.757742033 ======================================================================================== Report : ERROR Date : Wed Jul 11 11:50:31 2012 Description : Failed to initialize credentials Node : viswa-co Process : networking <12899> Thread : main thread 7f9be96e5700 Internals : V6.1.1p1/6257f53/f11a680/networking: parseX509AuthenticationElement/nw_authentication.c/696/0/1341987631.757752100 ======================================================================================== Report : ERROR Date : Wed Jul 11 11:50:31 2012 Description : Unknown error Node : viswa-co Process : networking <12899> Thread : main thread 7f9be96e5700 Internals : V6.1.1p1/6257f53/f11a680/networking: Security Module Initialization/nw_controller.c/755/0/1341987631.757762107 Thanks -Viswa
  12. Hello All, Security featue is not available issue. OSPL-INFO.LOG Report : WARNING Date : Thu Jun 14 16:03:16 2012 Description : Security feature not available, configured security profile 'testing' will not take effect on global partition Node : viswa-co Process : networking <16555> Thread : main thread 7fb9d32ba700 Internals : V5.5.1OSS/networking: initializing network/nw_controller.c/730/0/337891172 is it possible to configure security in the community version 5.5 ?? otherwise please guide me configure opensplice in secure layer (TLS/SSL) ... Here is my configuration : <NetworkService name="networking"> <Security enabled="true"> <SecurityProfile Name="testing" Cipher="aes128" CipherKey="http://localip/CipherKey.key" /> </Security> <Partitioning> <GlobalPartition Address="broadcast" SecurityProfile="testing"/> </Partitioning> <Channels> <Channel enabled="true" name="default" default="true"> <PortNr>443</PortNr> </Channel> </Channels> </NetworkService> Thanks -Viswa
  13. Hi All, I like to configure the OpenSpliceDDS as following. Please find the image for clear understanding. I have to configure the centralized OpenSpliceDDS. It will send and receive all data from global. In the centralized dds server only 443 port will be opened. How to configure the OpenSpliceDDS with port 443 (secure layer) ?? Client machines have the local OpenSpliceDDS. the local OpenSpliceDDS should be responsible sending local data to the centralized OpenSpliceDDS with secure layer (443). How to configure with client side ?? Thanks -Viswa
  14. Getting Present Topic

    Hi Hans, Is it possible to get in-use Content-Filtering topics ?? Thanks -Viswa
  15. Hi All, I am using websocket to run the publishers and subscribers from web-broswer. i.e) The web-brower sends the details to the websocket .. websocket get the details and start the publishers or subscribers using pthread on the same machine as per the requests from the web-browers. In order to reduce the server load, i would like to running the publishers and subscribers from the web-browser(i.e Client side) itself. Is there any possibility to run the publishers and subscribers from the web-browser (client-side) ?? Thanks -Viswa
×