Post Go back to editing

reading from A2B bus connected to RNC sensors

Category: Hardware
Product Number: ADZS-SC589-MINI

Hi,

I am using the SAM (ADZS-SC589-MINI) evaluation board, which is connected to 7 Molex RNC sensors via the A2B bus. The board is also connected to a Raspberry Pi 4B through a USB port, allowing me to read sensor data using a Python script. The board has been configured using SigmaStudio. However, I am encountering an issue: when the sensors are in a stationary position, I expect to receive readings of [0, -1, 0] for each sensor. Instead, I receive different values that repeat continuously. Could you please help me identify and resolve this issue? Thank you in advance!

[ 0.146 -0.326 0. ]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [-0.326 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 -0.536]
parsed_data: [-0.09 -0.798 0. ]
parsed_data: [-0.09 -0.562 -0.268]
parsed_data: [-0.326 -0.798 -0.536]
parsed_data: [-0.09 -0.798 0. ]
parsed_data: [-0.09 -0.562 0. ]
parsed_data: [ 0.146 -1.034 -0.268]
parsed_data: [-0.09 -0.562 -0.536]
parsed_data: [-0.09 -0.562 -0.268]
parsed_data: [-0.326 -0.562 0. ]
parsed_data: [ 0.146 -0.798 0. ]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 -0.536]
parsed_data: [-0.09 -0.326 -0.268]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [ 0.146 -0.562 -0.268]
parsed_data: [-0.09 -0.798 -0.536]
parsed_data: [-0.09 -0.562 -0.536]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [-0.09 -0.562 0. ]
parsed_data: [-0.09 -0.326 -0.536]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 -0.536]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [ 0.146 -0.798 0. ]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [-0.09 -0.562 0. ]
parsed_data: [-0.09 -0.798 0. ]
parsed_data: [-0.09 -0.562 -0.268]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [-0.326 -0.562 -0.536]
parsed_data: [-0.09 -0.798 -0.536]
parsed_data: [ 0.146 -0.562 -0.268]
parsed_data: [-0.09 -0.562 -0.536]
parsed_data: [ 0.146 -0.798 0. ]
parsed_data: [-0.09 -1.034 -0.268]
parsed_data: [-0.09 -0.798 0. ]
parsed_data: [-0.09 -1.034 -0.536]
parsed_data: [ 0.146 -0.798 -0.268]
parsed_data: [-0.09 -0.798 -0.268]
parsed_data: [-0.326 -0.798 -0.268]
parsed_data: [-0.09 -0.798 -0.268]

  

  • Hello, 

    Thank you for contacting us. To provide you with the best possible assistance for your project, could you let us know:

    1. The framework you are using for the SAM board.
    2. The specific board revision you are working with.

    Regards,

    Aradhita

  • Hi Aradhita,

    I apologize for not responding immediately to your message. i'm using SHARC Audio Module ADZS-SC589-MINI Board 2.1 and the framework is sam-audio-starter-Networking-2.0.0-Github. i found the issue and solve it(there was calibration issue). but now i have another issue, i can only read 16 channels data instead of in sigma studio i configure to 24 channels and also i changed the parameters  #define USB_DEFAULT_IN_AUDIO_CHANNELS (16) /* USB IN endpoint audio */
    #define USB_DEFAULT_OUT_AUDIO_CHANNELS (16) /* USB OUT endpoint audio */ in project_root/ARM/include.h to 24 and compile the application binaries in application compilation section. my design in sigma studio is as i sent in the last message 7 molex sensors which each sensor has 3 channels thenm issue is i can only read data of 5 sensors instead of 7 sensors. to solve this issue what can i do to read the data of all 7 sensor and which configuration i need to do? 

    Best regards

    laala

  • Hello, 

    I am glad you were able to figure out the initial calibration issue. 

    The SAM hardware supports a maximum of 16 audio channels for USB audio. Although you configured 24 channels in SigmaStudio and adjusted the USB audio parameters, processing beyond 16 channels is not directly supported by the hardware.

    You can refer to this link to get further information about the SAM's peripheral capabilities and supported configurations.

     Appendix C [Analog Devices Wiki]

  • Hello, 

    You mentioned that you are using 2.0.0 version currently. 

    Please upgrade to software version 3.1.0 to enable 24 USB audio channels. However, note that this will increase the CPU load. 

    Please follow the steps mentioned here for successful USB driver changes : https://wiki.analog.com/resources/tools-software/sharc-audio-module/advanced-audio-projects/appendix-b#no_sound_on_usb_audio_when_changing_code_versions

    Also, since you are modifying the USB driver properties, please uninstall previous USB driver from the device manager settings.

    Regards,

    Aradhita