Community
cancel
Showing results for 
Search instead for 
Did you mean: 
IYada
Beginner
1,023 Views

reading imu data

Hi,

Since some time I playing with Intel Aero compute board so that I can put it on old Asctec(now intel) helicopters we have. In that process I was trying to access imu data from the board just in case I need that eventually. I am however now able to get started. if I do ls -l /dev*, I cant see spidev. I saw a commands sudo chgrp spi /spidev* in one of the questions asked here but if I run this command I get "cant access /spidev*:no such file or directly". Do i need to enable communication with spi devices? I see some people talk of modifying something in kernel or /boot/config in raspberry pi but those solutions wont work here.

I have installed ubuntu 16.04 following instructions in your website but have gone any further since I wont be using Aero UAV.

Indrajeet

0 Kudos
9 Replies
idata
Community Manager
53 Views

Hello indsy,

 

 

Thank you for your interest in the Intel Aero Compute Board.

 

 

In order to access the IMU data from the board, please use the below command: root@intel-aero~# spi_xfer -b 3 -c 0 -d 0x80 -w 2Where : * -b is for spi bus * -c is for chip select * -d is the data value * -w is for number of wordsYou can find more details about the IMU included in the Intel Aero Compute Board here, under the Command to access the IMU Sensor on the Aero Compute Board section:

 

https://github.com/intel-aero/meta-intel-aero/wiki/94-(References)-Sensors-GPIOs-LEDs-CAN-bus https://github.com/intel-aero/meta-intel-aero/wiki/94-(References)-Sensors-GPIOs-LEDs-CAN-bus

 

 

Please let me know if I can help you with anything else.

 

 

Best regards,

 

Eliza
IYada
Beginner
53 Views

Hi Eliza,

when I run this command I get error "spi_xfer: command not found". Note that I have installed ubuntu 16.04 and not using yokto that comes with the board. The kernel (from uname -r) is "4.13.0-45-generic".

Indrajeet

idata
Community Manager
53 Views

Hello indsy,

 

 

Could you please confirm that you are running this command with administrative privileges?

 

 

I run the same command and didn't encounter this issue. Can you please also provide me a print screen of the Terminal?

 

 

Thank you in advance,

 

Eliza
IYada
Beginner
53 Views

Please see the output of my screen. I get the same error even when I run the command with sudo. also attached is the output of "ls -l /dev/spidev*. I am supported to see such a file in my dev folder before I could use this command. I see something like that people talk over Internet.

IYada
Beginner
53 Views

Hi,

I found this link https://github.com/intel-aero/meta-intel-aero/issues/356 dev/spidev* not found · Issue # 356 · intel-aero/meta-intel-aero · GitHub and installed aero-spi-xfer (using this link https://github.com/intel-aero/packages GitHub - intel-aero/packages , atleast I think so) but still the same thing. Please see the screen shot of the installation I get. I still cant see it in dpkg so can you tell if this is the right way and this is the cause of the problem I had. I cant run a "make-aero-packages" because the ardupilot package gives error and I dont need that anyway.

Doesnt it help to figure out the Issue?

Indrajeet

IYada
Beginner
53 Views

Sorry Does* in the last line, and the screen shot. I need a break:).

Indrajeet

IYada
Beginner
53 Views

Hi Eliza, could you get more time to look into it?

Indrajeet

idata
Community Manager
53 Views

Hello indsy,

 

 

Thank you for your patience!

 

 

Could you please confirm that the Aero repositories are booted into the correct kernel. I know you mentioned that you will not be using the Aero UAV, but you still need to setup the repositories and boot into Aero with the correct kernel:

 

https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation# intel-aero-repository https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation# intel-aero-repository

 

 

You can check the kernel as described in this section:

 

https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation# checks https://github.com/intel-aero/meta-intel-aero/wiki/90-(References)-OS-user-Installation# checks

 

 

Also, you can find online a code in python code to read the on-board sensors, that is something that you can try.

 

/message/529356# 529356 https://communities.intel.com/message/529356# 529356

 

https://github.com/ejmiller2/ros_aero_imu https://github.com/ejmiller2/ros_aero_imu

 

 

Please let me know if it works!

 

 

Thank you,

 

Eliza
IYada
Beginner
53 Views

Hi Eliza,

I did not know that I had to setup the repositories, it now works without any problem.

Thanks for your help.

Indrajeet