element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Moto Mods
  • Products
  • Manufacturers
  • Moto Mods
  • More
  • Cancel
Moto Mods
Forum MotoMod :Having problem with Audio greybus protocol
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Moto Mods to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 5 replies
  • Subscribers 57 subscribers
  • Views 481 views
  • Users 0 members are here
Related

MotoMod :Having problem with Audio greybus protocol

lgamini
lgamini over 8 years ago

Hi Everyone,

 

I am using Moto Mod Audio greybus protocol [ I2S management protocol and Mods audio protocol ] to get I2S data from Moto Z phone audio player application. When i start playback from application, i am able to receive I2S data on Moto Mod I2S lines. But, if i stop playback from application, i am not receiving any message from greybus GB_I2S_MGMT_TYPE_STOP command. After that, playback also stopped. Hope someone can help me. Thanks in advance.

  • Sign in to reply
  • Cancel
Parents
  • motomodsdev
    0 motomodsdev over 8 years ago

    Are you going through the Moto High Speed bridge, or using the PHY lines directly for i2s?

    Could you provide MuC logs?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lgamini
    0 lgamini over 8 years ago in reply to motomodsdev

    Thanks alot for your response.

    Right now, i am using I2S lines from phone Connector directly. [Made Dip Switch A2 as High on Mod]

    device_i2s_start_receiver_port function is called when i start playback from Moto Z phone. After that i am not receiving any command even if i stop player from application or changing volume keys of Moto Z.

    Here are the logs of MuC.

     

     

    NuttShell (NSH) NuttX-0.1

    nsh>

    nsh> dmesg

    01 status: 00000030

    [1489119709.061] stm32_i2c_process: Timed out: CR1: 0001 status: 00000030

    [1489119709.081] stm32_i2c_process: Timed out: CR1: 0001 status: 00000030

    [1489119709.101] stm32_i2c_process: Timed out: CR1: 0001 status: 00000030

    [1489119709.105] wdog_ping_thread: Watchdog started

    [1489119709.106] [D]: cport_id = 0

    [1489119709.106] [D]: cport_id = 1

    [1489119709.107] [D]: cport_id = 2

    [1489119709.107] [D]: cport_id = 3

    [1489119709.107] [D]: cport_id = 4

    [1489119709.108] [D]: cport_id = 5

    [1489119709.108] [I]: IID-1 interface inserted

    [1489119709.109] [D]: _rtr_alloc_table ALLOC 0 -> 10001850 10001854

    [1489119709.119] set_pkt_size: 36 bytes, 160 entries

    [1489119709.120] [I]: Registering CONTROL greybus driver.

    [1489119709.121] [D]: Registering Greybus driver on CP0

    [1489119709.121] [D]: NOT FOUND

    [1489119709.122] [D]: NOT FOUND

    [1489119709.122] [D]: add cport 0

    [1489119709.122] [D]: rtr_add_value(10001854, 0x0000, 10005ce0)

    [1489119709.123] [D]: _rtr_alloc_table ALLOC 10001854 -> 10005d60 10005d64

    [1489119709.124] [D]: _rtr_alloc_table ALLOC 10005d64 -> 10005db0 10005db4

    [1489119709.125] [D]: _rtr_alloc_table ALLOC 10005db4 -> 10005e00 10005e04

    [1489119709.127] [I]: Registering Vendor greybus driver.

    [1489119709.127] [D]: Registering Greybus driver on CP1

    [1489119709.128] [D]: NOT FOUND

    [1489119709.128] [D]: NOT FOUND

    [1489119709.128] [D]: add cport 1

    [1489119709.129] [D]: rtr_add_value(10001854, 0x0001, 10006350)

    [1489119709.130] [I]: Registering BATTERY greybus driver.

    [1489119709.131] [D]: Registering Greybus driver on CP2

    [1489119709.132] [D]: NOT FOUND

    [1489119709.132] [E]: Can not init greybus/battery.c

    [1489119709.133] [I]: Registering PTP greybus driver.

    [1489119709.133] [D]: Registering Greybus driver on CP3

    [1489119709.134] [D]: NOT FOUND

    [1489119709.135] ext_power_init: external power source 0 is not supported

    [1489119709.136] ext_power_init: external power source 1 is not supported

    [1489119709.138] [D]: NOT FOUND

    [1489119709.138] [D]: add cport 3

    [1489119709.139] [D]: rtr_add_value(10001854, 0x0003, 10006970)

    [1489119709.140] [I]: Registering I2S Direct MGMT greybus driver.

    [1489119709.141] [D]: gb_i2s_direct_mgmt_register()

    [1489119709.142] [D]: Registering Greybus driver on CP4

    [1489119709.142] [D]: NOT FOUND

    [1489119709.143] [D]: gb_i2s_mgmt_init()

    [1489119709.143] device_i2s_register_callback: device_i2s : device_i2s_register_callback

    [1489119709.144] [D]: NOT FOUND

    [1489119709.144] [D]: add cport 4

    [1489119709.145] [D]: rtr_add_value(10001854, 0x0004, 10006ef0)

    [1489119709.146] [I]: Registering Audio greybus driver.

    [1489119709.147] [D]: gb_aud_register()

    [1489119709.147] [D]: Registering Greybus driver on CP5

    [1489119709.148] [D]: NOT FOUND

    [1489119709.148] gb_aud_init: audio_gb: gb_aud_init

    [1489119709.171] Codec_Software_reset: After Soft Reset - DevID :6360

    [1489119711.082] device_audio_register_callback: device_audio : device_audio_register_callback

    [1489119711.083] [D]: NOT FOUND

    [1489119711.083] [D]: add cport 5

    [1489119711.083] [D]: rtr_add_value(10001854, 0x0005, 10007530)

    [1489119711.085] [D]: Registering Greybus driver on CP65535

    [1489119711.086] [D]: NOT FOUND

    [1489119711.086] [D]: Failed to open SLAVE Power Control

    [1489119711.087] [D]: NOT FOUND

    [1489119711.087] [D]: add cport 65535

    [1489119711.087] [D]: rtr_add_value(10001854, 0xffff, 10007ad0)

    [1489119711.088] [D]: _rtr_alloc_table ALLOC 10001854 -> 10007b50 10007b54

    [1489119711.089] [D]: _rtr_alloc_table ALLOC 10007b54 -> 10007ba0 10007ba4

    [1489119711.090] [D]: _rtr_alloc_table ALLOC 10007ba4 -> 10007bf0 10007bf4

    [1489119711.092] base_attach_worker: base_state=1

    [1489119711.171] set_pkt_size: 68 bytes, 160 entries

    [1489119711.174] [D]: gb_control_protocol_version: 0

    [1489119711.20�  D]: mb_control_rtc_sync: 0

    [1489119711.211] [D]: gb_control_get_ids: 0

    [1489119711.217] [D]: mb_control_get_root_vers: 0

    [1489119711.221] [D]: mb_control_get_pwrup_reason: 0

    [1489119711.226] [D]: gb_control_protocol_version: 0

    [1489119711.230] [D]: gb_control_get_manifest_size: 0

    [1489119711.234] [D]: gb_control_get_manifest: 0

    [1489119711.383] [D]: gb_control_connected: 0

    [1489119711.387] [D]: gb_control_connected: 0

    [1489119711.391] [D]: gb_vendor_moto_protocol_version: 0

    [1489119711.394] [D]: gb_vendor_moto_get_dmesg_size: 0

    [1489119711.398] [D]: gb_vendor_moto_pwr_up_reason: 0

    [1489119711.402] [D]: gb_vendor_moto_get_uptime: 0

    [1489119711.405] [D]: gb_control_connected: 0

    [1489119711.409] [D]: gb_control_connected: 0

    [1489119711.412] [D]: gb_ptp_protocol_version: 0

    [1489119711.414] [D]: mb_control_set_current_limit: 0

    [1489119711.419] [D]: gp_ptp_get_functionality: 0

    [1489119711.422] [D]: gb_control_connected: 0

    [1489119711.424] [D]: gp_ptp_get_functionality: 0

    [1489119711.426] [D]: NOT FOUND

    [1489119711.428] [D]: NOT FOUND

    [1489119711.429] [D]: NOT FOUND

    [1489119711.430] [D]: gb_control_connected: 254

    [1489119711.432] [D]: gb_ptp_power_required: 0

    [1489119711.433] [D]: gb_vendor_moto_pwr_up_reason: 0

    [1489119711.437] [D]: gb_control_disconnected: 0

    [1489119711.441] [D]: gb_control_disconnected: 0

    [1489119711.446] [D]: gb_control_connected: 0

    [1489119711.449] [D]: gb_control_connected: 0

    [1489119711.453] gb_aud_protocol_version: audio_gb: gb_aud_protocol_version

    [1489119711.454] [D]: gb_aud_protocol_version: 0

    [1489119711.457] gb_aud_get_vol_range: audio_gb: gb_aud_get_vol_range

    [1489119711.458] device_audio_get_volume_db_range: device_audio : device_audio_get_volume_db_range

    [1489119711.459] [D]: gb_aud_get_vol_range: 0

    [1489119711.462] gb_aud_get_supported_use_case: audio_gb: gb_aud_get_supported_use_case

    [1489119711.463] device_audio_get_supported_use_cases: device_audio : device_audio_get_supported_use_cases

    [1489119711.464] [D]: gb_aud_get_supported_use_case: 0

    [1489119711.467] [D]: gb_aud_protocol_get_devices()

    [1489119711.468] device_audio_get_supp_devices: device_audio : device_audio_get_supp_devices

    [1489119711.469] [D]: gb_aud_protocol_get_devices: 0

    [1489119711.472] [D]: gb_aud_protocol_get_spkr_preset_eq()

    [1489119711.473] [D]: gb_aud_protocol_get_spkr_preset_eq() -status 1:268459212

    [1489119711.474] device_audio_get_spkr_preset_eq: device_audio : device_audio_get_spkr_preset_eq

    [1489119711.475] [D]: gb_aud_protocol_get_spkr_preset_eq() -status 2:-38

    [1489119711.475] [D]: gb_aud_protocol_get_spkr_preset_eq() - Error

    [1489119711.476] [D]: gb_aud_protocol_get_spkr_preset_eq: 254

    [1489119711.480] gb_aud_protocol_set_playback_use_case: audio_gb: gb_aud_protocol_set_playback_use_case

    [1489119711.480] [D]: gb_aud_protocol_set_playback_use_case()

    [1489119711.481] device_audio_set_playback_use_case: device_audio : device_audio_set_playback_use_case

    [1489119714.472] [D]: gb_control_protocol_version: 0

    [1489119714.475] [D]: gb_control_connected: 0

    [1489119714.478] [D]: gb_control_connected: 0

    [1489119714.481] [D]: gb_i2s_mgmt_protocol_version()

    [1489119714.482] [D]: gb_i2s_mgmt_protocol_version: 0

    [1489119714.485] [D]: gb_i2s_mgmt_protocol_get_supported_cfgs()

    [1489119714.485] [D]: gb_i2s_mgmt_protocol_get_cfg_masks()

    [1489119714.486] device_i2s_get_caps: device_i2s : device_i2s_get_caps

    [1489119714.487] [D]: gb_i2s_mgmt_protocol_get_supported_cfgs: 0

    [1489119717.542] [D]: gb_control_protocol_version: 0

    [1489119723.179] [D]: gb_control_protocol_version: 0

    [1489119723.186] [D]: gb_i2s_mgmt_protocol_start() port type 1:

    [1489119723.187] device_i2s_start_receiver: device_i2s : device_i2s_start_receiver

    [1489119723.187] [D]: gb_i2s_mgmt_protocol_start: 0

    [1489119723.236] [D]: gb_i2s_mgmt_protocol_activate_port() activate port type: 1

    [1489119723.237] device_i2s_start_receiver_port: device_i2s : device_i2s_start_receiver_port

    [1489119725.236] [D]: gb_control_protocol_version: 0

    [1489119733.426] [D]: gb_control_protocol_version: 0

    [1489119737.523] [D]: gb_control_protocol_version: 0

    [1489119742.711] [D]: gb_control_protocol_version: 0

    [1489119748.074] [D]: gb_control_protocol_version: 0

     

     

    nsh>

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • motomodsdev
    0 motomodsdev over 8 years ago in reply to lgamini

    Stupid question, are you registered for device_i2s_stop_receiver?

    Do you have logs of the stop, we're curious if the lower level greybus is being called but not making it to your handler somehow.  If that's actually the complete log including stop, this is very interesting...

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • lgamini
    0 lgamini over 8 years ago in reply to motomodsdev

    The problem is resolved.

    Actually i have already registered for device_i2s_stop_receiver call. But the problem is with device_i2s_start_receiver_port API.

    Due to a stupid bug, it was hung there. After fixing it, i am able to receive all next commands perfectly even stop also.

     

    Thanks very for much.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • lgamini
    0 lgamini over 8 years ago in reply to motomodsdev

    The problem is resolved.

    Actually i have already registered for device_i2s_stop_receiver call. But the problem is with device_i2s_start_receiver_port API.

    Due to a stupid bug, it was hung there. After fixing it, i am able to receive all next commands perfectly even stop also.

     

    Thanks very for much.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • motomodsdev
    0 motomodsdev over 8 years ago in reply to lgamini

    Cool, anything worth sharing for others?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube