tomasz-grobelny / AACS

Android Auto Server encapsulates communication with modern car infotainment system
GNU General Public License v3.0
225 stars 29 forks source link

E: in transfer failed: -7 at AAClient #12

Closed rahulsangwn closed 3 years ago

rahulsangwn commented 3 years ago

Hi @tomasz-grobelny , thank you for the project. I am running AACS on the Raspberry Pi 4. Want to proxy android auto traffic through AACS, but open auto display is stuck at the initial AAServer video pattern (large red and yellowish green pixels).

Can you please point out what can be the problem.

pi@raspberrypi:~/snowmix $ sudo modprobe libcomposite
pi@raspberrypi:~/snowmix $ export SNOWMIX=/usr/lib/Snowmix-0.5.1.1/
pi@raspberrypi:~/snowmix $ snowmix base.ini 
Warning. Environment variable SNOWMIX_PREFIX was not set. Using SNOWMIX_PREFIX=.snowmix
Snowmix version 0.5.1.1.
Copyright Peter Maersk-Moller 2012-2015.
Search Path : /home/pi/snowmix, /home/pi/.snowmix, /usr/lib/Snowmix-0.5.1.1/
Initial ini file read
Output pipe connection broken. Resetting socket
pi@raspberrypi:~/snowmix/AA/AACS/build/AAServer $ sudo ./AAServer 
pre read
post read: 12
pre hSM

post hSM: 12
pre read
post read: 12
pre hSM

post hSM: 12
pre read
post read: 12
pre hSM
Got 51, write=2
post hSM: 12
pre read
post read: 12
pre hSM
Got some info: 0=
post hSM: 12
pre read
post read: 8
pre hSM
post hSM: 8
pre read
post read: 12
pre hSM
Got some info: 1=post hSM: 12
pre read
post read: 13
pre hSM
Android Auto
post hSM: 13
pre read
post read: 12
pre hSM
Got some info: 2=post hSM: 12
pre read
post read: 13
pre hSM
Android Auto
post hSM: 13
pre read
post read: 12
pre hSM
Got some info: 3=
post hSM: 12
pre read
post read: 6
pre hSM
post hSM: 6
pre read
post read: 12
pre hSM
Got some info: 4=post hSM: 12
pre read
post read: 22
pre hSM
https://f1xstudio.com
post hSM: 22
pre read
post read: 12
pre hSM
Got some info: 5=post hSM: 12
pre read
post read: 13
pre hSM
HU-AAAAAA001
post hSM: 13
pre read
post read: 12
pre hSM
Got 53, exit
post hSM: 12
pre read
post read: -1
pre close fd
post close fd
DefaultChannelHandler: 0
dumpfile: 
ep0 event 0 
ep0 event 2 
got version request
version negotiation ok
auth complete
got service discovery response
channels {
  channel_id: 7
  media_input_channel {
    stream_type: Audio
    audio_config {
      sample_rate: 16000
      bits_per_sample: 16
      channel_count: 1
    }
  }
}
channels {
  channel_id: 4
  media_channel {
    media_type: Audio
    audio_type: Media
    audio_configs {
      sample_rate: 48000
      bits_per_sample: 16
      channel_count: 2
    }
    5: 1
  }
}
channels {
  channel_id: 5
  media_channel {
    media_type: Audio
    audio_type: Speech
    audio_configs {
      sample_rate: 16000
      bits_per_sample: 16
      channel_count: 1
    }
    5: 1
  }
}
channels {
  channel_id: 6
  media_channel {
    media_type: Audio
    audio_type: System
    audio_configs {
      sample_rate: 16000
      bits_per_sample: 16
      channel_count: 1
    }
    5: 1
  }
}
channels {
  channel_id: 2
  sensor_channel {
    sensors {
      type: DrivingStatus
    }
    sensors {
      type: NightData
    }
  }
}
channels {
  channel_id: 3
  media_channel {
    media_type: Video
    video_configs {
      video_resolution: H480
      video_fps: F30
      margin_width: 0
      margin_height: 0
      dpi: 140
    }
    5: 1
  }
}
channels {
  channel_id: 1
  input_channel {
    available_buttons: PLAY
    screen_config {
      width: 2560
      height: 1440
    }
  }
}
2: "OpenAuto"
3: "Universal"
4: "2018"
5: "20180301"
6: 1
7: "f1x"
8: "OpenAuto Autoapp"
9: "1"
10: "1.0"
11: 0
12: 0

DefaultChannelHandler: 7
DefaultChannelHandler: 4
DefaultChannelHandler: 5
DefaultChannelHandler: 6
DefaultChannelHandler: 2
VideoChannelHandler: 3
InputChannelHandler: 1
connect: 0
get service descriptor
0 data from headunit: 7 4
1 data from headunit: 2 4
Supported buttons (1): {126}
2 data from headunit: 2 4
3 data from headunit: 2 6
4 data from headunit: 2 4
5 data from headunit: 2 6
6 data from headunit: 4 4
7 data from headunit: 5 4
8 data from headunit: 6 4
9 data from headunit: 4 8
10 data from headunit: 5 8
11 data from headunit: 6 8
disconnected: 0
^CQuitting...
pi@raspberrypi:~/snowmix/AA/AACS/build/AAClient $ sudo ./AAClient ../AAServer/socket
18d1:2d01
switch ok!
device found
got sd
setup
version negotiation ok
ssl handshake complete
0 data from phone: 9
1 data from phone: 9
2 data from phone: 9
3 data from phone: 9
4 data from phone: 9
5 data from phone: 3
0 data from headunit: 6
1 data from headunit: 6
6 data from phone: 9
2 data from headunit: 6
3 data from headunit: 8
7 data from phone: 9
4 data from headunit: 6
5 data from headunit: 8
6 data from headunit: 6
7 data from headunit: 6
8 data from headunit: 6
8 data from phone: 7
9 data from phone: 7
10 data from phone: 7
9 data from headunit: 10
10 data from headunit: 10
11 data from headunit: 10
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
pushDataToPipeline
E: in transfer failed: -7
E: in transfer failed: -7
E: in transfer failed: -7
E: in transfer failed: -7
E: in transfer failed: -7
E: in transfer failed: -7
^C
sangwan@SM:~$ autoapp 
[2021-05-05 16:21:39.785772] [0x00007fb5cd9685c0] [warning] [OpenAuto] [RecentAddressesList] failed to read configuration file: openauto_wifi_recent.ini, error: openauto_wifi_recent.ini: cannot open file. Empty list will be used.
[2021-05-05 16:21:39.830236] [0x00007fb5cd9685c0] [error]   [OpenAuto] [btservice] No adapter found.
[2021-05-05 16:21:39.830257] [0x00007fb5cd9685c0] [info]    [OpenAuto] [AndroidBluetoothServer] listening.
qt.bluetooth.bluez: Device does not support Bluetooth or "00:00:00:00:00:00" is not a valid local adapter
[2021-05-05 16:21:39.831114] [0x00007fb5cd9685c0] [error]   [OpenAuto] [btservice] Server start failed.
[2021-05-05 16:21:39.831192] [0x00007fb5cd9685c0] [info]    [OpenAuto] [App] Waiting for USB device...
[2021-05-05 16:21:39.831210] [0x00007fb5cd9685c0] [info]    [OpenAuto] [App] Waiting for Wireless device...
[2021-05-05 16:23:41.525586] [0x00007fb5cb15c700] [info]    [OpenAuto] [App] USB Device connected.
[2021-05-05 16:23:41.526326] [0x00007fb5cd9685c0] [debug]   [OpenAuto] [AudioInput] create.
[2021-05-05 16:23:41.526682] [0x00007fb5cd9685c0] [debug]   [OpenAuto] [QtVideoOutput] create.
[2021-05-05 16:23:41.633012] [0x00007fb5cb15c700] [info]    [OpenAuto] [AndroidAutoEntity] start.
[2021-05-05 16:23:41.633125] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioInputService] start.
[2021-05-05 16:23:41.633464] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] start, channel: MEDIA_AUDIO
[2021-05-05 16:23:41.633549] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] start, channel: SPEECH_AUDIO
[2021-05-05 16:23:41.633697] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] start, channel: SYSTEM_AUDIO
[2021-05-05 16:23:41.633794] [0x00007fb5cb15c700] [info]    [OpenAuto] [SensorService] start.
[2021-05-05 16:23:41.633875] [0x00007fb5cb15c700] [info]    [OpenAuto] [VideoService] start.
[2021-05-05 16:23:41.633923] [0x00007fb5cb15c700] [info]    [OpenAuto] [BluetoothService] start.
[2021-05-05 16:23:41.633961] [0x00007fb5cb15c700] [info]    [AaSdk] [BluetoothServiceChannel] receive 
[2021-05-05 16:23:41.634000] [0x00007fb5cb15c700] [info]    [OpenAuto] [InputService] start.
[2021-05-05 16:23:41.667770] [0x00007fb5c9959700] [error]   [OpenAuto] [SensorService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.668012] [0x00007fb5cb15c700] [error]   [OpenAuto] [AndroidAutoEntity] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.668080] [0x00007fb5ca95b700] [error]   [OpenAuto] [VideoService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.668215] [0x00007fb5ca15a700] [error]   [OpenAuto] [BluetoothService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.668367] [0x00007fb5ca15a700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SPEECH_AUDIO
[2021-05-05 16:23:41.668460] [0x00007fb5cb15c700] [info]    [OpenAuto] [App] quit.
[2021-05-05 16:23:41.668575] [0x00007fb5cb15c700] [info]    [OpenAuto] [AndroidAutoEntity] stop.
[2021-05-05 16:23:41.668625] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] stop, channel: SPEECH_AUDIO
[2021-05-05 16:23:41.668693] [0x00007fb5cb15c700] [info]    [OpenAuto] [VideoService] stop.
[2021-05-05 16:23:41.668794] [0x00007fb5ca15a700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: MEDIA_AUDIO
[2021-05-05 16:23:41.669043] [0x00007fb5ca15a700] [error]   [OpenAuto] [AudioInputService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.669142] [0x00007fb5c9959700] [error]   [OpenAuto] [SensorService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:23:41.669266] [0x00007fb5cb15c700] [info]    [OpenAuto] [BluetoothService] stop.
[2021-05-05 16:23:41.669412] [0x00007fb5ca95b700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SYSTEM_AUDIO
[2021-05-05 16:23:41.669459] [0x00007fb5cb15c700] [info]    [OpenAuto] [InputService] stop.
[2021-05-05 16:23:41.669695] [0x00007fb5cb15c700] [info]    [OpenAuto] [InputDevice] stop.
[2021-05-05 16:23:41.669859] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioService] stop, channel: MEDIA_AUDIO
[2021-05-05 16:23:41.669980] [0x00007fb5cb15c700] [info]    [OpenAuto] [App] Waiting for USB device...
[2021-05-05 16:23:41.670177] [0x00007fb5cb15c700] [info]    [OpenAuto] [App] Waiting for Wireless device...
[2021-05-05 16:23:41.670277] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioService] stop, channel: SYSTEM_AUDIO
[2021-05-05 16:23:41.670452] [0x00007fb5ca95b700] [info]    [OpenAuto] [SensorService] stop.
[2021-05-05 16:23:41.670535] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioInputService] stop.
[2021-05-05 16:23:41.670647] [0x00007fb5cb15c700] [debug]   [OpenAuto] [AndroidAutoEntity] destroy.
[2021-05-05 16:24:14.142004] [0x00007fb5ca95b700] [info]    [OpenAuto] [App] USB Device connected.
[2021-05-05 16:24:14.142384] [0x00007fb5cd9685c0] [debug]   [OpenAuto] [AudioInput] create.
[2021-05-05 16:24:14.142532] [0x00007fb5cd9685c0] [debug]   [OpenAuto] [QtVideoOutput] create.
[2021-05-05 16:24:14.251990] [0x00007fb5ca95b700] [info]    [OpenAuto] [AndroidAutoEntity] start.
[2021-05-05 16:24:14.252017] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioInputService] start.
[2021-05-05 16:24:14.252074] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] start, channel: MEDIA_AUDIO
[2021-05-05 16:24:14.252084] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] start, channel: SPEECH_AUDIO
[2021-05-05 16:24:14.252090] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] start, channel: SYSTEM_AUDIO
[2021-05-05 16:24:14.252096] [0x00007fb5ca95b700] [info]    [OpenAuto] [SensorService] start.
[2021-05-05 16:24:14.252114] [0x00007fb5ca95b700] [info]    [OpenAuto] [VideoService] start.
[2021-05-05 16:24:14.252122] [0x00007fb5ca95b700] [info]    [OpenAuto] [BluetoothService] start.
[2021-05-05 16:24:14.252132] [0x00007fb5ca95b700] [info]    [AaSdk] [BluetoothServiceChannel] receive 
[2021-05-05 16:24:14.252140] [0x00007fb5ca95b700] [info]    [OpenAuto] [InputService] start.
[2021-05-05 16:24:14.253166] [0x00007fb5ca95b700] [info]    [OpenAuto] [AndroidAutoEntity] version response, version: 1.5, status: 0
[2021-05-05 16:24:14.253189] [0x00007fb5ca95b700] [info]    [OpenAuto] [AndroidAutoEntity] Begin handshake.
[2021-05-05 16:24:14.276389] [0x00007fb5c9959700] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 1272
[2021-05-05 16:24:14.288617] [0x00007fb5c9959700] [info]    [OpenAuto] [AndroidAutoEntity] continue handshake.
[2021-05-05 16:24:14.293367] [0x00007fb5c9959700] [info]    [OpenAuto] [AndroidAutoEntity] Handshake, size: 1058
[2021-05-05 16:24:14.293685] [0x00007fb5c9959700] [info]    [OpenAuto] [AndroidAutoEntity] Auth completed.
[2021-05-05 16:24:14.294734] [0x00007fb5cb15c700] [info]    [OpenAuto] [AndroidAutoEntity] Discovery request, device name: AAServer, brand: TAG
[2021-05-05 16:24:14.294812] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioInputService] fill features.
[2021-05-05 16:24:14.294871] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] fill features, channel: MEDIA_AUDIO
[2021-05-05 16:24:14.294902] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] fill features, channel: SPEECH_AUDIO
[2021-05-05 16:24:14.294930] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] fill features, channel: SYSTEM_AUDIO
[2021-05-05 16:24:14.294958] [0x00007fb5cb15c700] [info]    [OpenAuto] [SensorService] fill features.
[2021-05-05 16:24:14.294987] [0x00007fb5cb15c700] [info]    [OpenAuto] [VideoService] fill features.
[2021-05-05 16:24:14.295015] [0x00007fb5cb15c700] [info]    [OpenAuto] [BluetoothService] fill features
[2021-05-05 16:24:14.295038] [0x00007fb5cb15c700] [info]    [OpenAuto] [InputService] fill features.
[2021-05-05 16:24:14.705276] [0x00007fb5ca95b700] [info]    [OpenAuto] [VideoService] open request, priority: 0
[2021-05-05 16:24:14.705313] [0x00007fb5ca95b700] [info]    [OpenAuto] [VideoService] open status: 0
[2021-05-05 16:24:14.705706] [0x00007fb5c9959700] [info]    [OpenAuto] [VideoService] setup request, config index: 3
[2021-05-05 16:24:14.705738] [0x00007fb5c9959700] [info]    [OpenAuto] [VideoService] setup status: 2
[2021-05-05 16:24:14.705841] [0x00007fb5cb15c700] [info]    [OpenAuto] [VideoService] video focus indication.
[2021-05-05 16:24:14.706099] [0x00007fb5cb15c700] [info]    [OpenAuto] [VideoService] start indication, session: 0
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
[2021-05-05 16:24:56.027017] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioInputService] open request, priority: 0
[2021-05-05 16:24:56.027144] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioInputService] open status: 0
[2021-05-05 16:24:56.027858] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] open request, channel: MEDIA_AUDIO, priority: 0
[2021-05-05 16:24:56.027996] [0x00007fb5c9959700] [debug]   [OpenAuto] [AudioService] channel: MEDIA_AUDIO audio output sample rate: 48000, sample size: 16, channel count: 2
[2021-05-05 16:24:56.028679] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] open request, channel: SPEECH_AUDIO, priority: 0
[2021-05-05 16:24:56.028789] [0x00007fb5ca95b700] [debug]   [OpenAuto] [AudioService] channel: SPEECH_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1
[2021-05-05 16:24:56.029392] [0x00007fb5ca15a700] [info]    [OpenAuto] [SensorService] open request, priority: 0
[2021-05-05 16:24:56.029489] [0x00007fb5ca15a700] [info]    [OpenAuto] [SensorService] open status: 0
[2021-05-05 16:24:56.030641] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] open request, channel: SYSTEM_AUDIO, priority: 0
[2021-05-05 16:24:56.030785] [0x00007fb5cb15c700] [debug]   [OpenAuto] [AudioService] channel: SYSTEM_AUDIO audio output sample rate: 16000, sample size: 16, channel count: 1
[2021-05-05 16:24:56.031765] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputService] open request, priority: 0
[2021-05-05 16:24:56.031869] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputService] open status: 0
[2021-05-05 16:24:56.033520] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputService] binding request, scan codes count: 1
[2021-05-05 16:24:56.033704] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputDevice] start.
[2021-05-05 16:24:56.033801] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputService] binding request, status: 0
[2021-05-05 16:24:56.040623] [0x00007fb5ca15a700] [info]    [OpenAuto] [SensorService] sensor start request, type: 13
[2021-05-05 16:24:56.046650] [0x00007fb5ca15a700] [info]    [OpenAuto] [SensorService] sensor start request, type: 10
[2021-05-05 16:24:56.179213] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] open status: 0, channel: MEDIA_AUDIO
RtAudio pulse: _NOT_ running realtime scheduling
RtAudio pulse: _NOT_ running realtime scheduling
[2021-05-05 16:24:56.181258] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] open status: 0, channel: SPEECH_AUDIO
[2021-05-05 16:24:56.182761] [0x00007fb5cb15c700] [info]    [OpenAuto] [AudioService] open status: 0, channel: SYSTEM_AUDIO
RtAudio pulse: _NOT_ running realtime scheduling
[2021-05-05 16:24:56.242279] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] setup request, channel: MEDIA_AUDIO, config index: 1
[2021-05-05 16:24:56.242422] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] setup status: 2, channel: MEDIA_AUDIO
[2021-05-05 16:24:56.243096] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] setup request, channel: SPEECH_AUDIO, config index: 1
[2021-05-05 16:24:56.243205] [0x00007fb5c9959700] [info]    [OpenAuto] [AudioService] setup status: 2, channel: SPEECH_AUDIO
[2021-05-05 16:24:56.243770] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] setup request, channel: SYSTEM_AUDIO, config index: 1
[2021-05-05 16:24:56.243871] [0x00007fb5ca95b700] [info]    [OpenAuto] [AudioService] setup status: 2, channel: SYSTEM_AUDIO
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
QWidget::paintEngine: Should no longer be called
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
Warning: "A lot of buffers are being dropped."
[2021-05-05 16:25:48.878931] [0x00007fb5c9959700] [error]   [OpenAuto] [VideoService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879027] [0x00007fb5ca15a700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SPEECH_AUDIO
[2021-05-05 16:25:48.879116] [0x00007fb5ca15a700] [error]   [OpenAuto] [SensorService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879157] [0x00007fb5ca95b700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: SYSTEM_AUDIO
[2021-05-05 16:25:48.879246] [0x00007fb5c9959700] [error]   [OpenAuto] [AudioService] channel error: AaSdk error code: 10, native code: 1, channel: MEDIA_AUDIO
[2021-05-05 16:25:48.879354] [0x00007fb5cb15c700] [error]   [OpenAuto] [AudioInputService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879415] [0x00007fb5ca15a700] [error]   [OpenAuto] [AndroidAutoEntity] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879476] [0x00007fb5c9959700] [error]   [OpenAuto] [BluetoothService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879542] [0x00007fb5ca95b700] [error]   [OpenAuto] [SensorService] channel error: AaSdk error code: 10, native code: 1
[2021-05-05 16:25:48.879670] [0x00007fb5ca15a700] [info]    [OpenAuto] [App] quit.
[2021-05-05 16:25:48.879750] [0x00007fb5ca15a700] [info]    [OpenAuto] [AndroidAutoEntity] stop.
[2021-05-05 16:25:48.879776] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioInputService] stop.
[2021-05-05 16:25:48.879834] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioService] stop, channel: MEDIA_AUDIO
[2021-05-05 16:25:48.881943] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioService] stop, channel: SPEECH_AUDIO
[2021-05-05 16:25:48.884146] [0x00007fb5ca15a700] [info]    [OpenAuto] [AudioService] stop, channel: SYSTEM_AUDIO
[2021-05-05 16:25:48.886624] [0x00007fb5ca15a700] [info]    [OpenAuto] [SensorService] stop.
[2021-05-05 16:25:48.886689] [0x00007fb5ca15a700] [info]    [OpenAuto] [VideoService] stop.
[2021-05-05 16:25:48.886766] [0x00007fb5ca15a700] [info]    [OpenAuto] [BluetoothService] stop.
[2021-05-05 16:25:48.886864] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputService] stop.
[2021-05-05 16:25:48.886930] [0x00007fb5ca15a700] [info]    [OpenAuto] [InputDevice] stop.
[2021-05-05 16:25:48.887160] [0x00007fb5ca15a700] [info]    [OpenAuto] [App] Waiting for USB device...
[2021-05-05 16:25:48.887255] [0x00007fb5ca15a700] [info]    [OpenAuto] [App] Waiting for Wireless device...
[2021-05-05 16:25:48.887313] [0x00007fb5ca15a700] [debug]   [OpenAuto] [AndroidAutoEntity] destroy.
^C
tomasz-grobelny commented 3 years ago

Error -7 is LIBUSB_ERROR_TIMEOUT. It is hard to say why that would happen when AAClient is communicating with your mobile device. Some ideas/questions:

  1. Does it work for you if you connect your mobile device to openauto directly? I once had a situation that my mobile device was very slow at establishing AA connection and I had to connect it several times before it actually started to work correctly (after that every connection was successful).
  2. Look into dmesg/system logs.
  3. Check if the USB cable is of good quality.
  4. Use DefaultChannelHandler instead of VideoChannelHandler/InputChannelHandler in both AAServer and AAClient. This potentially provides less opportunities for errors introduced by AACS, but I don't see how this could affect this libusb error.

Please let me know if you find something out.

rahulsangwn commented 3 years ago

First, I looked into the dmesg logs and found out a message usbfs: process 1855 (AAClient) did not claim interface 0 before use . Using below code i got rid of this message

if (libusb_kernel_driver_active(handle, interface)) {
     if (libusb_detach_kernel_driver(handle, interface)) {}
}
libusb_claim_interface(handle, interface)

At this point my problem was still unresolved, Open E: in transfer failed: -7.

Then, I use DefaultChannelHandler instead of other handlers in both AAServer and AAClient, which solved my problem completely.

Thank You for your valuable suggestions.