[Solved] Matrix Malos test_micarray.js not working


#1

When running matrixio-malos test_micarray.js I receive the following output:

“”"
Got SIGNAL startComplete
Received Info: ALSA lib pcm.c:2495:(snd_pcm_open_noupdate) Unknown PCM mic_channel8
arecord: main:788: audio open error: No such file or directory

recording audioProcess has exited with code = 1
Got SIGNAL pauseComplete
Microphone paused
Got SIGNAL resumeComplete
Microphone resumed
Got SIGNAL stopComplete
Microhphone stopped
“”"

If anyone knows how to fix this it would be much appreciated.

Thanks


#2

Hi @twl,

What installation steps did you follow before testing this?

Can you share the output of :

sudo lsmod | grep matrix
sudo dpkg -l | grep matrix

-Yoel


#3

Try using the card # 2 and device # 0., Change line 65 to :
device: "hw:2,0"

See here:

This should work. Thank for the feedback we will be updating this.

-Yoel


#4

Hey this worked like a charm, cheers for the fix.


#5

I got a same error, but I’ll still make a mistake if I change “mic_channel8” to “hw:2,0”

“”"
Got SIGNAL startComplete
Received Info: ALSA lib pcm_hw.c:1713:(_snd_pcm_hw_open) Invalid value for card
arecord: main:788: audio open error: No such file or directory

recording audioProcess has exited with code = 1
Got SIGNAL pauseComplete
Microphone paused
Got SIGNAL resumeComplete
Microphone resumed
Got SIGNAL stopComplete
Microhphone stopped
“”"
why?

sudo dpkg -l | grep matrix
I can got:
“”"
ii libmatrixio-creator-hal:armhf 0.3.7 armhf Hardware Abstraction Layer for MATRIX.
ii libmatrixio-malos:armhf 0.1.3 armhf Libraries of MATRIX abstraction layer for MOS
ii libmatrixio-protos:armhf 0.1.5 armhf Protocolbuffers for MATRIX abstraction layer
ii libswresample2:armhf 7:3.2.12-1~deb9u1 armhf FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii matrixio-creator-init 0.4.13 armhf Install scripts that can program the MATRIX Creator FPGA and SAM3 IMU.
ii matrixio-malos 0.3.5 armhf Allows queries to MATRIX Creator hardware via ZMQ.
ii matrixio-openocd 1.0.1 armhf Open on-chip JTAG debug solution for ARM and MIPS systems
ii matrixio-protobuf 3.5.0 armhf Protocol Buffers - Google’s data interchange format. (From GRPC 3.5.0)
ii matrixio-xc3sprog 1.1.1 armhf Spartan3, XCF and CPLD JTAG programmer and other utilities.
“”"

And run DOA.js, I aways got:
polar_angle (degrees) = 0
azimutal_angle (degrees) = -157.49999584510033