VSOMEIP-두 장치 (TCP / UDP) 간의 통신이 작동하지 않음

롭 크로울리

VSOMEIP 튜토리얼 Vsomeip을 10 분 안에 따라하면 모든 것이 두 장치 간의 통신 지점까지 작동 합니다 .

현재 설정 :

  • Ubuntu 16.04 (2 대의 컴퓨터-서버 및 클라이언트)
  • 이더넷을 통해 연결된 두 대의 머신

사용 된 파일 :

  • server.cpp
  • client.cpp
  • client_config.json
  • server_config.json

서버 출력

[info] Parsed vsomeip configuration in 1ms
[info] Using configuration file: "../clie_prop.json".
[info] Default configuration module loaded.
[info] Initializing vsomeip application "Hello".
[info] SOME/IP client identifier configured. Using 0033 (was: 1313)
[info] Instantiating routing manager [Proxy].
[info] Client [33] is connecting to [0] at /tmp/vsomeip-0
[info] Listening at /tmp/vsomeip-33
[info] Application(Hello, 33) is initialized (11, 100).
[info] Starting vsomeip application "Hello" using 2 threads
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] io thread id from application: 0033 (Hello) is: 7f80f5cd88c0 TID: 1497
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED
[info] io thread id from application: 0033 (Hello) is: 7f80f15e7700 TID: 1501
[info] shutdown thread id from application: 0033 (Hello) is: 7f80f1de8700 TID: 1500
[info] main dispatch thread id from application: 0033 (Hello) is: 7f80f25e9700 TID: 1499
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED
[warning] local_client_endpoint::connect: Couldn't connect to: /tmp/vsomeip-0 (Connection refused / 111)
[info] routing_manager_proxy::on_disconnect: Client 0x33 calling host_->on_state with DEREGISTERED

클라이언트 출력

[info] Parsed vsomeip configuration in 0ms
[info] Using configuration file: "../serv_prop.json".
[info] Default configuration module loaded.
[info] Initializing vsomeip application "World".
[warning] Routing Manager seems to be inactive. Taking over...
[info] SOME/IP client identifier configured. Using 1212 (was: 1212)
[info] Instantiating routing manager [Host].
[info] init_routing_endpoint Routing endpoint at /tmp/vsomeip-0
[info] Client [1212] is connecting to [0] at /tmp/vsomeip-0
[info] Service Discovery enabled. Trying to load module.
[info] Service Discovery module loaded.
[info] Application(World, 1212) is initialized (11, 100).
[info] OFFER(1212): [1234.5678:0.0]
[info] Starting vsomeip application "World" using 2 threads
[info] Watchdog is disabled!
[info] io thread id from application: 1212 (World) is: 7fa68723d8c0 TID: 5370
[info] Network interface "enp0s3" state changed: up
[info] vSomeIP 2.10.21 | (default)
[info] Sent READY to systemd watchdog
[info] io thread id from application: 1212 (World) is: 7fa6828f3700 TID: 5374
[info] shutdown thread id from application: 1212 (World) is: 7fa6838f5700 TID: 5372
[info] main dispatch thread id from application: 1212 (World) is: 7fa6840f6700 TID: 5371
[warning] Releasing client identifier 0003. Its corresponding application went offline while no routing manager was running.
[info] Application/Client 0003 is deregistering.

사용 된 모든 코드 는 vsomeip Tutorial의 Request / Response 에서 사용한 코드와 동일합니다 . 설정 파일 에 지정된 설정 파일과 동일 두 장치 사이의 통신 섹션 내 컴퓨터 주소와 일치하도록 변경된 IP 주소와 .

어떤 도움이라도 대단히 감사하겠습니다.

롭 크로울리

해결책을 찾았습니다 !!

vsomeip 또는 vsomeip-master 디렉토리 / build / examples 폴더로 이동하면 실행 파일 (response-sample, subscribe-sample 등)을 찾을 수 있습니다. vsomeip에서 사용 된 것과 동일한 구성 파일을 10 분 만에 (유니 캐스트 주소 변경 등) 사용하도록 실행하면 완벽하게 작동합니다. 이것은 내가 사용한 구성 파일입니다.

{
    "unicast" : "192.168.43.6",
    "logging" :
    {
        "level" : "debug",
        "console" : "true",
        "file" : { "enable" : "false", "path" : "/tmp/vsomeip.log" },
        "dlt" : "false"
    },
    "applications" :
    [
        {
            "name" : "World",
            "id" : "0x1212"
        }
    ],
    "services" :
    [
        {
            "service" : "0x1234",
            "instance" : "0x5678",
            "unreliable" : "30509"
        }
    ],
    "routing" : "World",
    "service-discovery" :
    {
        "enable" : "true",
        "multicast" : "224.224.224.245",
        "port" : "30490",
        "protocol" : "udp",
        "initial_delay_min" : "10",
        "initial_delay_max" : "100",
        "repetitions_base_delay" : "200",
        "repetitions_max" : "3",
        "ttl" : "3",
        "cyclic_offer_delay" : "2000",
        "request_response_delay" : "1500"
    }
}

이를 위해 쉘 스크립트를 사용했습니다.

#!/bin/bash
route add -host 224.224.224.245 dev <interface>
export VSOMEIP_CONFIGURATION=<config_file>
export VSOMEIP_APPLICATION_NAME=<application_name>
./<executable>

어쨌든 그것은 나를 위해했다! 도움이 되었기를 바랍니다! :)

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

두 장치 간의 LAN이 작동하지 않음

인터페이스를 사용하는 두 활동 간의 통신이 예상대로 작동하지 않음

아무것도 연결되지 않은 상태에서 스위치를 통과 할 때 두 장치간에 Ping이 작동하지 않음

SMS를 사용하여 두 장치 간의 통신

SMS를 사용하는 두 장치 간의 통신

두 테이블 간의 단순 외부 조인이 작동하지 않음

두 테이블 간의 dlookup (중첩 된 dlookup이 작동하지 않음)

Electron과 Window간에 IPC 통신이 작동하지 않음

Angular 4 구성 요소 간의 통신이 작동하지 않음

헤더와 컴포넌트 간의 통신이 작동하지 않음

Kubernetes의 Istio : 포드 간 서비스 통신이 작동하지 않음

2개의 arduinos 간에 I2C 통신이 작동하지 않음

Xamarin을 사용하는 동일한 장치 iOS / Android의 두 앱 간 통신

두 개의 ajax 양식이 동시에 작동하지 않음

Android TCP / IP 클라이언트가 실제 장치에서 작동하지 않음

Nat 장치 뒤의 컴퓨터 간 전송 모드 IPsec이 작동하지 않음

Linux에서 호스트 이름을 사용하여 두 장치 간 통신

로컬 컴퓨터의 포트 간 TCP 통신이 다른 Windows OS에서 작동하지 않는 이유는 무엇입니까?

배치 파일에서 두 번째 시간 초과 기능이 작동하지 않음

두 번째 창의 푸시 버튼이 작동하지 않음

Bootstrap Grid의 열 사이 테두리가 작동하지 않음

두 양식 사이의 tabindex가 작동하지 않음

iOS의 Cordova 및 Ionic-장치 플러그인이 작동하지 않음

AppCompat 툴바 어두운 테마 스타일이 21 이전 장치에서 작동하지 않음

두 개의 쉘 매개 변수 확장이 차례로 작동하지 않음 (배시)

Swift : 두 장치간에 사용자 지정 데이터 전송 (동일한 네트워크에 있지 않음)

Yi2 | GridView 테이블, 모델 간 통신이 작동하지 않음

PHP를 통해 배치 파일이 작동하지 않음 (시간 초과)

동일한 홈 LAN에있는 두 Mac 간의 SCP 및 Telnet이 작동하지 않음

TOP 리스트

  1. 1

    Matlab의 반복 Sortino 비율

  2. 2

    ImageJ-히스토그램 빈을 변경할 때 최대, 최소 값이 변경되는 이유는 무엇입니까?

  3. 3

    Excel : 합계가 N보다 크거나 같은 상위 값 찾기

  4. 4

    C #에서 'System.DBNull'형식의 개체를 'System.String'형식으로 캐스팅 할 수 없습니다.

  5. 5

    원-사각형 충돌의 충돌 측면을 찾는 문제

  6. 6

    Oracle VirtualBox-설치를 위해 게스트를 부팅 할 때 호스트 시스템이 충돌 함

  7. 7

    어떻게 아무리 "나쁜", ANY의 SSL 인증서와 HttpClient를 사용하지합니다

  8. 8

    Ubuntu는 GUI에서 암호로 사용자를 만듭니다.

  9. 9

    잘못된 상태 예외를 발생시키는 Apache PoolingHttpClientConnectionManager

  10. 10

    Python 사전을 사용하는 동안 "ValueError : could not convert string to float :"발생

  11. 11

    openCV python을 사용하여 텍스트 문서에서 워터 마크를 제거하는 방법은 무엇입니까?

  12. 12

    Vuetify 다중 선택 구성 요소에서 클릭 한 항목의 값 가져 오기

  13. 13

    C ++ VSCode에서 같은 줄에 중괄호 서식 지정

  14. 14

    Cassandra에서 버전이 지정된 계층의 효율적인 모델링

  15. 15

    JQuery datepicker 기능이 인식되지 않거나 새 프로젝트에서 작동하지 않음

  16. 16

    cuda 11.1에서 Pytorch를 사용할 때 PyTorch가 작동하지 않음: Dataloader

  17. 17

    jfreecharts에서 x 및 y 축 선을 조정하는 방법

  18. 18

    상황에 맞는 메뉴 색상

  19. 19

    마우스 휠 JQuery 이벤트 핸들러에 대한 방향 가져 오기

  20. 20

    매개 변수에서 쿼리 객체를 선언하는 방법은 무엇입니까?

  21. 21

    Maven은 아이 프로젝트 대상 폴더를 청소하지

뜨겁다태그

보관