Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fast rtps run on the qnx #343

Closed
darbee opened this issue Dec 3, 2018 · 2 comments
Closed

fast rtps run on the qnx #343

darbee opened this issue Dec 3, 2018 · 2 comments

Comments

@darbee
Copy link

darbee commented Dec 3, 2018

Hi guys:
I have compiled FAST-RTPS for QNX , The step can find at:
https://github.com/eProsima/Fast-RTPS/issues/new

But In one machine which run on qnx system, I compiled a HelloWorld example to test FAST-RTPS.

The HelloWorld example can be found at
https://github.com/eProsima/Fast-RTPS/tree/master/examples/C%2B%2B/HelloWorldExample

I did not change anything in the example code.

In one console I run
./HelloWorldExample publisher

In another console I run
./HelloWorldExample Subscriber

But very sad. Nothing happened. They did not communicate with each other.

In my qnx machine , system info is

ifconfig

`root@# ifconfig
lo0: flags=ffff8049<UP,LOOPBACK,RUNNING,MULTICAST,IP6FORWARDING,ACCEPTRTADV,SHIM> mtu 33136

 inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
    ravb0: flags=8a43<UP,BROADCAST,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu 1500
    address: 4a:3b:83:03:38:36
media: Ethernet autoselect (1000baseT full-duplex)
status: active
inet 172.20.102.35 netmask 0xffffff00 broadcast 172.20.102.255
inet6 fe80::483b:83ff:fe03:3836%ravb0 prefixlen 64 scopeid 0x11

`

route show

` root@# route show
Routing tables

   Internet:
  Destination        Gateway            Flags
  default            172.20.102.1       UG
  salvator-xs        127.0.0.1          UH
  172.20.102.0/24    link#17            U
  172.20.102.1       74:1f:4a:92:63:78  UHL
  172.20.102.32      a0:8c:fd:c5:d7:b5  UHL
  172.20.102.35      127.0.0.1          UGH
  172.20.102.153     00:0b:ab:9f:a7:6b  UHL
  224.0.0.0/8        172.20.102.35      UG

  Internet6:
  Destination        Gateway            Flags
  Localhost.localdom localhost.localdom UH
 fe80::%lo0         fe80::1%lo0        U
 fe80::1%lo0        link#1             UHL
 fe80::%ravb0       link#17            U
 fe80::483b:83ff:fe03:3836%ravb0 4a:3b:83:03:38:36  UHL
 ff01:1::           localhost.localdom U
 ff01:11::          link#17            U
 ff02::%lo0         localhost.localdom U
 ff02::%ravb0       link#17            U
`

netstat

` root@:~# netstat

 Active Internet connections

  Proto Recv-Q Send-Q  Local Address          Foreign Address        State
  tcp        0      0  172.20.102.35.ssh      172.24.187.62.55970    ESTABLISHED
  tcp        0      0  172.20.102.35.ssh      172.20.102.32.46004    ESTABLISHED
  tcp        0      0  *.1234                 *.*                    LISTEN
  tcp        0      0  172.20.102.35.ssh      172.20.102.32.45254    ESTABLISHED
 tcp        0      0  *.ssh                  *.*                    LISTEN
 tcp        0      0  *.8000                 *.*                    LISTEN
 tcp        0      0  *.telnet               *.*                    LISTEN
 tcp        0      0  *.ftp                  *.*                    LISTEN
 udp        0      0  *.*                    *.*
udp        0      0  *.65463                *.*
udp        0      0  *.7413                 *.*
udp        0      0  *.7412                 *.*
udp        0      0  *.7402                 *.*
udp        0      0  *.bootpc               *.*
Active Internet6 connections
Proto Recv-Q Send-Q  Local Address          Foreign Address        (state)
tcp6       0      0  *.ssh                  *.*                    LISTEN`

netstat -g
` . root# netstat -g

   Virtual Interface Table is empty
   
    Multicast Forwarding Cache is empty
    IPv6 Multicast Interface Table is empty
    IPv6 Multicast Routing Table is empt. `

please let me know if you need any more information.

address : IN one machine

I really don't know how to solve the problem, any help is appreciated.

thanks all.

@MiguelCompany
Copy link
Member

MiguelCompany commented Dec 10, 2018

Hi @darbee

Using the info provided on #272, I have created PR #350 to avoid the need of patching asio to enable multicast. That should solve the problem you are having on QNX.

@MiguelCompany
Copy link
Member

Closing this as it should have been fixed by #350.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants