[beagleboard] Re: spidev_test fails on Beaglebone AI

2021-03-11 Thread anandp...@gmail.com
An additional information:
I can see the spi interfaces in the /dev/ folder.

On Thursday, March 11, 2021 at 6:44:38 PM UTC+1 anandp...@gmail.com wrote:

> Hi Everyone,
>
> I am trying to enable the spi interface on beaglebone AI.
> I used the roboticscape device tree structure from the link below:
>
> https://github.com/beagleboard/BeagleBoard-DeviceTrees
>  The show-pins command shows that spi interface is up. However, when I run 
> the spidev_test, I receive a stream of 0's instead of actual data.
>
> I bridged the pins p9.29 and P9.30 before running the test.
> Can anyone provide some solution to fix this issue?
>
> Thanks 
> Anand
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/644b5aa7-5514-464e-8311-5d388e4d3710n%40googlegroups.com.


[beagleboard] spidev_test fails on Beaglebone AI

2021-03-11 Thread anandp...@gmail.com
Hi Everyone,

I am trying to enable the spi interface on beaglebone AI.
I used the roboticscape device tree structure from the link below:

https://github.com/beagleboard/BeagleBoard-DeviceTrees
 The show-pins command shows that spi interface is up. However, when I run 
the spidev_test, I receive a stream of 0's instead of actual data.

I bridged the pins p9.29 and P9.30 before running the test.
Can anyone provide some solution to fix this issue?

Thanks 
Anand

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/598bf63a-d087-4bb6-8e40-5c326edd4fefn%40googlegroups.com.


[beagleboard] Beaglebone Black upgrade error messages

2021-03-11 Thread KenUnix

debian@beaglebone:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree   
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
  c9-core-installer
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up nginx-full (1.14.2-2+deb10u3) ...
Job for nginx.service failed because the control process exited with error 
code.
See "systemctl status nginx.service" and "journalctl -xe" for details.
invoke-rc.d: initscript nginx, action "start" failed.
● nginx.service - A high performance web server and a reverse proxy server
   Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor 
preset: en
abled)
   Active: failed (Result: exit-code) since Thu 2021-03-11 12:01:25 EST; 
104ms a
go
 Docs: man:nginx(8)
  Process: 316 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; 
master_process o
n; (code=exited, status=0/SUCCESS)
  Process: 317 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; 
(code=
exited, status=1/FAILURE)

Mar 11 12:01:24 beaglebone nginx[317]: nginx: [emerg] bind() to 0.0.0.0:80 
faile
d (98: Address already in use)
Mar 11 12:01:24 beaglebone nginx[317]: nginx: [emerg] bind() to [::]:80 
failed (
98: Address already in use)
Mar 11 12:01:24 beaglebone nginx[317]: nginx: [emerg] bind() to 0.0.0.0:80 
faile
d (98: Address already in use)
Mar 11 12:01:24 beaglebone nginx[317]: nginx: [emerg] bind() to [::]:80 
failed (
98: Address already in use)
Mar 11 12:01:25 beaglebone nginx[317]: nginx: [emerg] bind() to 0.0.0.0:80 
faile
d (98: Address already in use)
Mar 11 12:01:25 beaglebone nginx[317]: nginx: [emerg] bind() to [::]:80 
failed (
98: Address already in use)
Mar 11 12:01:25 beaglebone nginx[317]: nginx: [emerg] still could not bind()
Mar 11 12:01:25 beaglebone systemd[1]: nginx.service: Control process 
exited, co
de=exited, status=1/FAILURE
Mar 11 12:01:25 beaglebone systemd[1]: nginx.service: Failed with result 
'exit-c
ode'.
Mar 11 12:01:25 beaglebone systemd[1]: Failed to start A high performance 
web se
rver and a reverse proxy server.
dpkg: error processing package nginx-full (--configure):
 installed nginx-full package post-installation script subprocess returned 
error
 exit status 1
Errors were encountered while processing:
 nginx-full
E: Sub-process /usr/bin/dpkg returned an error code (1)
debian@beaglebone:~$ 

debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org Debian Buster IoT Image 2020-04-06
debian@beaglebone:~$ uname -a
Linux beaglebone 4.19.94-ti-r42 #1buster SMP PREEMPT Tue Mar 31 19:38:29 
UTC 2020 armv7l GNU/Linux
debian@beaglebone:~$ lsb_release -a
No LSB modules are available.
Distributor ID:Debian
Description:Debian GNU/Linux 10 (buster)
Release:10
Codename:buster

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/1710cc5d-4a66-4f92-b496-4b9c1d72df8an%40googlegroups.com.


[beagleboard] Re: BBB Libpruio Analog Data

2021-03-11 Thread Ritesh Bhatt
Hello TJF,

Thank you for the explanation that is very useful! With parsing the file, 
I'm doing that in Node-Red reading in the file as a binary buffer, but for 
some reason the buffer is 4x the number of sampling points I set. Like 
let's say I tell the script to sample the analog inputs 5000 times, the 
file will come back with 2 when I read it into Node-Red (I'd expect 
1 points since I'm using 2 analog inputs). What could be the cause?

Thanks!

On Wednesday, March 10, 2021 at 2:26:30 PM UTC-5 TJF wrote:

> Hi!
>
> ritesh...@gmail.com schrieb am Dienstag, 9. März 2021 um 21:15:01 UTC+1:
>
>> Specifically, they are collecting the data using Ring Buffer mode and 
>> saving it to a text file to be processed further for some feature 
>> extraction and further analysis.
>>
>> What I'm trying to understand is this: how does Ring Buffer sampling 
>> actually work? As in, if I'm reading data using two analog inputs and 
>> saving it to a text file, what order are the values in? How do I parse them 
>> into meaningful sensor values? I've attached the C code I'm working with, 
>> and greatly appreciate any help or pointers!
>>
>
> Your code doesn't save to a text file. Instead it saves the raw data to a 
> binary file. The unshifted values (0-4095) are stored as 16-bit (unsigned 
> short) binary numbers in the order as captured, like
>
> AIN-1, AIN-2, AIN-1, AIN-2, AIN-1, AIN-2, AIN-1, AIN-2, ...
>
> In order to parse the file, just read it into a buffer and access that 
> buffer by a unsigned short pointer variable. 0 (null) means 0V, 4095 means 
> 1V8. So multiply the unsigned shorts by the factor 1.8/4095 to get the 
> voltage as a real value.
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/c5efd6f1-2dd7-48ee-a693-182a8710f539n%40googlegroups.com.


Re: [beagleboard] Micron MT41K256M16HA-125:E

2021-03-11 Thread Robert Nelson
On Thu, Mar 11, 2021 at 7:32 AM Micka  wrote:
>
> Hi, We have to change the component: Micron MT41K256M16HA-125:E
>
> This list:
>
> Micron MT41K256M16TW-107:P
> Kingston D2516EC4BXGGB
> Kingston D2516EC4BXGGB-U
>
> are all compatible ? without any change in the configuration?
>

No change to the software stack with those:

https://github.com/beagleboard/beaglebone-black/blob/master/BBB_BOM.csv

PS, BeagleBoard.org boards have been using Kingston memory/eMMC for a
few years now...

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhRcBOgce-BXbuPQRs9%3D5ttcmyWHVPEHAKcoWKZGLWR6A%40mail.gmail.com.


[beagleboard] Micron MT41K256M16HA-125:E

2021-03-11 Thread Micka
Hi, We have to change the component: Micron MT41K256M16HA-125:E

This list:

Micron MT41K256M16TW-107:P
Kingston D2516EC4BXGGB
Kingston D2516EC4BXGGB-U

are all compatible ? without any change in the configuration?



Michael,

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAF%2BMRt%3DSJRTMD%3D44Mddqw59Z5UBB6HFmYXvNwL1yexkSEDMSgA%40mail.gmail.com.