Can’t open any device

Hello ,

First of all my apology for my english.
I have a matrix voice with an rpi.
Nothing work
Arecord -l don’t show the matrix voice
ls /tmp don’t show the microarray
The résult of Service matrixio-malos status is always beggining by can’t find any device
I don’t know what to do more ?
Thanks you
Speke

What setup instructions did you follow?

i use this link
https://matrix-io.github.io/matrix-documentation/matrix-os/getting-started/installation/

here is the return of node index.js
MALOS/CORE Unavailable
=<[^/^]>= [d95dc4f3e594] ready
[5ac8dab19e7e1d01005340ba]


|/| || | |/ | / [o__o]
| | | | | | \ | _/_ v0.17.1-22211c5
MATRIX OS can be upgraded. 0.17.0 available! 0.17.1
hb: sen> [] svc> []

MALOS service should have installed while following the steps you mentioned. To check everything is OK please share the output of:

sudo dpkg -l | grep matrix

Thanks

thanks for you’re reply
here’s the result :slight_smile:pi@raspberrypi:

~/matrix-os $ sudo dpkg -l | grep matrix
ii  libmatrixio-creator-hal:armhf         0.3.2                                armhf        Hardware Abstraction Layer for MATRIX.
ii  libmatrixio-creator-hal-dev           0.3.2                                armhf        Hardware Abstraction Layer for MATRIX (headers)
ii  libmatrixio-malos:armhf               0.1.2                                armhf        Libraries of MATRIX abstraction layer for MOS
ii  libmatrixio-malos-dev                 0.1.2                                armhf        Libraries of MATRIX abstraction layer for MOS
ii  libmatrixio-protos:armhf              0.1.4                                armhf        Protocolbuffers for MATRIX abstraction layer
ii  libmatrixio-protos-dev                0.1.4                                armhf        Protocolbuffers headers for MATRIX abstraction layer
ii  libswresample2:armhf                  7:3.2.10-1~deb9u1+rpt1               armhf        FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii  matrixio-creator-init                 0.4.8                                armhf        Install scripts that can program the MATRIX Creator FPGA and SAM3 IMU.
ii  matrixio-malos                        0.3.3                                armhf        Allows queries to MATRIX Creator hardware via ZMQ.
ii  matrixio-malos-zigbee                 0.1.4                                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-pocketsphinx                 0.1.0                                armhf        This is PocketSphinx, one of Carnegie Mellon University's open source large
ii  matrixio-protobuf                     3.4.0                                armhf        Protocol Buffers - Google's data interchange format. (From GRPC 3.4.0)
ii  matrixio-sphinxbase                   0.1.0                                armhf        This is PocketSphinx, one of Carnegie Mellon University's open source large
ii  matrixio-xc3sprog                     1.1.1                                armhf        Spartan3, XCF and CPLD JTAG programmer and other utilities.

If you install matrixio-malos, there will be no input device to arecord.

If you want that, uninstall malos (or disable) and install the kernel-modules:

Thanks
I will try and i tell you
But did it explain why malos/core are Unavailable?

Type:

malos &

at the command prompt.

You should see:

INFO: [/dev/matrixio_regmap] was opened
You can query specific driver info using port 20012.
Registered driver IMU with port 20013.
Registered driver Humidity with port 20017.
Registered driver Everloop with port 20021.
Registered driver Pressure with port 20025.
Registered driver UV with port 20029.
INFO: Microphone Array Driver => Kernel Modules has been loaded. Use ALSA implementation
Registered driver Servo with port 20045.
Registered driver Gpio with port 20049.

If you see “stack smashing” at the bottom, see this thread:

-Sean

Hello ,

I make a new install
Now i have

INFO: [/dev/matrixio_regmap] was opened
Matrix device has not benn detected
You can query specific driver info using port 20012.
Registered driver IMU with port 20013.
Registered driver Humidity with port 20017.
Registered driver Everloop with port 20021.
Registered driver Pressure with port 20025.
Registered driver UV with port 20029.
INFO: Microphone Array Driver => Kernel Modules has been loaded. Use ALSA implementation
Registered driver Servo with port 20045.
Registered driver Gpio with port 20049.

:frowning:

Someone can help ?
Maybe this is an hardware issue ?
How the A.S.S work?

Here is a step by step video on the installation. Perhaps you can compare what you have done to see if there was a step missing:

thx ,

i can install api but nothing works :

INFO: [/dev/spidev0.0] was opened
MATRIX device has not been detected
FPGA IDENTIFY = 0
FPGA VERSION = 10c4c


pi@raspberrypi:~ $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-53, parent: platform/3f200000.gpio, pinctrl-bcm2835:
 gpio-6   (                    |sysfs               ) in  lo IRQ
 gpio-18  (                    |sysfs               ) out lo
 gpio-26  (                    |sysfs               ) out lo

gpiochip2: GPIOs 100-101, brcmvirt-gpio, can sleep:
 gpio-100 (                    |led0                ) out hi

gpiochip1: GPIOs 128-135, brcmexp-gpio, can sleep:
 gpio-135 (                    |led1                ) in  hi
Environment Selected: dev
Loading...  device
  device Loading...  device > gpio +0ms
  device Loading...  device > heartbeat +9ms
  device Loading...  device > maintain +9ms
  device Loading...  device > malos +3ms
  device Loading...  device > network +2ms
  device Loading...  device > port +121ms
  device Loading...  device > sensor +2ms
  device Loading...  device > service +5ms
  device Loading...  device > system +5ms
  device Loading...  device > wifi +2ms
  device Loading...  device > driver > accelerometer +3ms
  device Loading...  device > driver > altitude +3ms
  device Loading...  device > driver > detection +3ms
  device Loading...  device > driver > gesture +4ms
  device Loading...  device > driver > gpio +4ms
  device Loading...  device > driver > gyroscope +3ms
  device Loading...  device > driver > humidity +3ms
  device Loading...  device > driver > ir +3ms
  device Loading...  device > driver > led +3ms
  device Loading...  device > driver > magnetometer +7ms
  device Loading...  device > driver > mic +3ms
  device Loading...  device > driver > pressure +13ms
  device Loading...  device > driver > recognition +3ms
  device Loading...  device > driver > temperature +888ms
  device Loading...  device > driver > uv +3ms
  device Loading...  device > driver > voice +3ms
  device Loading...  device > driver > zigbee +4ms
  device Init Cmds Registered:> 15 accelerometer face demographics palm thumb-up fist pinch gpio gyroscope humidity magnetometer pressure recognition temperature uv +7ms
Loading...  event
  matrix Loading...  event > app +4ms
  matrix Loading...  event > device +6ms
  matrix Loading...  event > sensors +3ms
  matrix Loading...  event > server +5ms
  matrix Loading...  event > service +3ms
  matrix Loading...  event > token +3ms
  matrix Loading...  event > util +3ms
Loading...  service
  matrix Loading...  service > application +7ms
  matrix Loading...  service > auth +352ms
  matrix Loading...  service > component +2ms
  matrix Loading...  service > cypher +3ms
  matrix Loading...  service > firebase +3ms
  matrix Loading...  service > grpc +761ms
  matrix Loading...  service > lifecycle +1ms
  matrix Loading...  service > manager +3ms
  matrix Loading...  service > protobuf +13ms
  proto Protobuf :: vision v1 +5ms
  proto Protobuf :: recognition v1 +0ms
  proto Protobuf :: malos v1 +0ms
  matrix Loading...  service > stream +1ms
  matrix Loading...  service > timers +8ms
  matrix Loading...  service > token +2ms
  matrix Loading...  service > track +49ms
  matrix Loading...  service > tracking +3ms
  matrix Loading...  service > ves +3ms
  matrix Loading...  service > zeromq +2ms
  matrix Debug: *,-engine*,-Component* +51ms
  matrix ====== config ===vvv +1ms
  matrix { fakeApp: undefined,
  matrix   path:
  matrix    { root: '/home/pi/matrix-os/',
  matrix      db:
  matrix       { device: '/home/pi/matrix-os/db/device.db',
  matrix         config: '/home/pi/matrix-os/db/config.db',
  matrix         user: '/home/pi/matrix-os/db/user.db',
  matrix         service: '/home/pi/matrix-os/db/service.db',
  matrix         pending: '/home/pi/matrix-os/db/pending.db' },
  matrix      pendingFiles: '/home/pi/matrix-os/public/pending_files',
  matrix      update: '/tmp/matrix-update/',
  matrix      backup: '/tmp/matrix-backup/',
  matrix      apps: '/home/pi/matrix-os/apps',
  matrix      protos: '/home/pi/matrix-os/proto',
  matrix      appLog: '/home/pi/matrix-os/apps/app.log' },
  matrix   jwt: { secret: undefined },
  matrix   version: '0.17.1',
  matrix   local: {},
  matrix   heartbeatInterval: 10000,
  matrix   spaceLimit: 5000000,
  matrix   splashInterval: 30,
  matrix   sensorRefresh: 2500,
  matrix   sensorSockets: true,
  matrix   socketCheckDelay: 1000,
  matrix   socketRefreshTimeout: 10,
  matrix   registrationUUID: 'b1a6752152eb4d36e13e357d7c225466',
  matrix   configurationUUID: 'b1a6752152eb4d36e13e357d7c225467',
  matrix   envs:
  matrix    { deviceSecret: 'a6287d536cb81c30d3634f22fe54c526960036dfecabd38e1c33151f23f03fb842d55794a387b0b8dc49fffde4',
  matrix      deviceId: 'd050ae7ea9e8',
  matrix      nodeEnv: 'dev' },
  matrix   serverHeartbeat: 60000,
  matrix   maxSkipBeats: 3,
  matrix   writeInterval: 10000,
  matrix   writeLogInterval: 3600000,
  matrix   components: {},
  matrix   paths: { root: '/home/pi/matrix-os/config' } }
 +0ms
  matrix  ENV: dev API: https://dev-api.admobilize.com MXSS: http://dev-mxss.admobilize.com +85ms
  device device init: heartbeat +173ms
  device driver init: accelerometer +6ms
  device driver init: altitude +1ms
  device driver init: detection +1ms
  device driver init: gesture +0ms
  device driver init: gpio +1ms
  device driver init: gyroscope +1ms
  device driver init: humidity +0ms
  device driver init: ir +1ms
  zeromq [zmq][registerComponent> led +2ms
  device driver init: led +8ms
  device driver init: magnetometer +1ms
  device driver init: mic +1ms
  device driver init: pressure +0ms
  device driver init: recognition +1ms
  device driver init: temperature +1ms
  device driver init: uv +1ms
  device driver init: voice +0ms
  device driver init: zigbee +9ms
  led Loader stopped +2ms
Not using device data from db, using MATRIX_DEVICE_ID and MATRIX_DEVICE_SECRET instead!
  matrix event listener: app +114ms
  matrix event listener: device +1ms
  matrix event listener: sensors +1ms
  matrix event listener: server +1ms
  matrix event listener: service +1ms
  matrix event listener: token +1ms
  matrix event listener: util +0ms
  matrix service init: timers +2ms
Starting as device: d050ae7ea9e8
  matrix Offline setup successful +4ms
  matrix Checking API server... +6ms
  sdk secret-> aXXXX+421ms
  sdk [post] params: { url: 'https://dev-api.admobilize.com/v2/device/token',
  form:
   { device_id: 'XXXX',
     device_secret: 'XXXX',
     jwt_token: true },
  json: true } +4ms
  sdk [post] body: { status: 'error', status_code: 400, error: 'Device not found.' } +246ms
  sdk Device Error { status: 'error', status_code: 400, error: 'Device not found.' } +8ms
API Error:  400 - Device not found.
Unable to setup online MOS, something went wrong (400) (Device Token Retrieval Error)
Bad Matrix Initialization Device Token Retrieval Error
  led Loader stopped +7ms
  led Loader stopped +2s
  matrix DESTROYING +5ms
  matrix Firebase wasn't initialized +3ms
Cleanup complete...
pi@raspberrypi:~/matrix-os $```

Hello @Speke,

Did you test with: MATRIX Creator/Voice Hardware Test?

Could you test with a raspbian from scratch? (discard any physical trouble)

Regards,

Kevin Patino

Hello @kevindpatino ,

Yes i test from scratch

INFO: [/dev/spidev0.0] was opened
MATRIX device has not been detected
FPGA IDENTIFY = 0
FPGA VERSION = 10c4c 

pi@raspberrypi:~ $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-53, parent: platform/3f200000.gpio, pinctrl-bcm2835:
 gpio-6   (                    |sysfs               ) in  lo IRQ
 gpio-18  (                    |sysfs               ) out lo
 gpio-26  (                    |sysfs               ) out lo

gpiochip2: GPIOs 100-101, brcmvirt-gpio, can sleep:
 gpio-100 (                    |led0                ) out hi

gpiochip1: GPIOs 128-135, brcmexp-gpio, can sleep:
gpio-135 (                    |led1                ) in  hi

Regard’s
Speke

@kevindpatino
here is all my test from scratch

 pi@raspberrypi:~ $ sudo /usr/share/matrixlabs/matrixio-devices/matrix-init.bash
MATRIX device has not been detected
**** Could not program FPGA
MATRIX device has not been detected
pi@raspberrypi:~ $ sudo /usr/share/matrixlabs/matrixio-devices/fpga_info 
INFO: [/dev/spidev0.0] was opened
MATRIX device has not been detected
FPGA IDENTIFY = 0
FPGA VERSION = 10c4c
pi@raspberrypi:~ $ cd /usr/share/matrixlabs/matrixio-devices/
pi@raspberrypi:/usr/share/matrixlabs/matrixio-devices $ sudo ./fpga-program.bashMATRIX device has not been detected
**** Could not program FPGA
pi@raspberrypi:/usr/share/matrixlabs/matrixio-devices $ sudo cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-53, parent: platform/3f200000.gpio, pinctrl-bcm2835:
 gpio-18  (                    |sysfs               ) out lo    
 gpio-26  (                    |sysfs               ) out lo    

gpiochip2: GPIOs 100-101, brcmvirt-gpio, can sleep:
 gpio-100 (                    |led0                ) out hi    

gpiochip1: GPIOs 128-135, brcmexp-gpio, can sleep:
 gpio-135 (                    |led1                ) in  hi

maybe it would be nice to see what xc3prog outputs:

so can you change the program function in the fpga-program.bash for testing purpose

from:

function try_program_creator() {
  reset_creator
  sleep 0.1
  xc3sprog -c matrix_creator blob/system_creator.bit -p 1 > /dev/null 2> /dev/null
}

to:

function try_program_creator() {
  reset_creator
  sleep 0.1
  xc3sprog -c matrix_creator blob/system_creator.bit -p 1 # > /dev/null 2> /dev/null
}

and rerun the ‘fpga-program.bash’