Re: [beagleboard] Cannot connect beagle bone black to my PC running Ubuntu 16.04

2018-02-27 Thread evilwulfie
SSH from where
but its running perfectly on windows ?


On 2/27/2018 5:11 PM, juneja.juneja...@gmail.com wrote:
> Not able to SSH into Beagle bone black to its default IP (192.168.7.2)
> over USB.
> Also in /dev mount point it's showing ttyACM0 instead of ttyUSB0.
>
> Note: It's running perfect on Windows pc.
>
> Device: Dell Notebook
> Operating System: Ubuntu 16.04
>
>
> -- 
> 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/255d80e3-78bc-4bc7-965e-ab8799518b1a%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/3ae33cf5-dbe0-51d6-aed4-f0cd13f79afd%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Cannot connect beagle bone black to my PC running Ubuntu 16.04

2018-02-27 Thread juneja . juneja988
Not able to SSH into Beagle bone black to its default IP (192.168.7.2) over 
USB.
Also in /dev mount point it's showing ttyACM0 instead of ttyUSB0.

Note: It's running perfect on Windows pc.

Device: Dell Notebook
Operating System: Ubuntu 16.04


-- 
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/255d80e3-78bc-4bc7-965e-ab8799518b1a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] GPIO_60 pin is set to 1, and is missing from /sys/class/gpio

2018-02-27 Thread evilwulfie
There is no p9-60  they stop at p9-46

On 2/27/2018 3:08 PM, Co M wrote:
> |Bought 2 green seedstudio Beagle bONE
> |
> s2w@beaglebone:/sys/class/gpio$ sudo /opt/scripts/tools/version.sh
> git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]eeprom:[A335BNLTGW1ABBGW16054396]model:[TI_AM335x_BeagleBone_Green_Wireless]dogtag:[BeagleBoard.org
> DebianImage2018-01-28]bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot2018.01-2-g9aa111a004]kernel:[4.9.78-ti-r94]uboot_overlay_options:[enable_uboot_overlays=1]uboot_overlay_options:[disable_uboot_overlay_emmc=1]uboot_overlay_options:[disable_uboot_overlay_video=1]uboot_overlay_options:[disable_uboot_overlay_audio=1]uboot_overlay_options:[enable_uboot_cape_universal=1]pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]groups:[debian
> :debian adm kmem dialout cdrom floppy audio dip video plugdev users
> systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi
> tisdk weston-launch xenomai]dmesg |grep pinctrl-single
> [1.489922]pinctrl-single 44e10800.pinmux:142pins at pa f9e10800 size
> 568END
> |
> Also
> |
> me@beaglebone:/sys/class/gpio$ ls gpio6*me@beaglebone:/sys/class/gpio$
> find -name gpio60  
> |
> |
> me@beaglebone:/sys/class/gpio$ config-pin -l P9_60
> Invalidpin:"P9_60""9_60"Pinisnotmodifyable:P9_60
> |
> While all other PINS are ok like,
> |
>  me@beaglebone:/sys/class/gpio$ config-pin -l P9_30 defaultgpio
> gpio_pu gpio_pd gpio_input spi pwm pruout pruin
> |
> |
> -- 
> 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/27510d02-b43e-40d8-8abc-69737a920154%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/90de33df-31ba-2b60-9064-991e570b2c17%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] GPIO_60 pin is set to 1, and is missing from /sys/class/gpio

2018-02-27 Thread Co M


Bought 2 green seedstudio Beagle bONE

s2w@beaglebone:/sys/class/gpio$ sudo /opt/scripts/tools/version.sh 
git:/opt/scripts/:[ea6ea9fca05f36f5044398884375b0231348d6e2]
eeprom:[A335BNLTGW1ABBGW16054396]
model:[TI_AM335x_BeagleBone_Green_Wireless]
dogtag:[BeagleBoard.org Debian Image 2018-01-28]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 
2018.01-2-g9aa111a004]
kernel:[4.9.78-ti-r94]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_emmc=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg:[bb-cape-overlays]:[4.4.20180126.0-0rcnee0~stretch+20180126]
pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee2~stretch+20180104]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev 
users systemd-journal i2c bluetooth netdev cloud9ide gpio pwm eqep admin spi 
tisdk weston-launch xenomai]
dmesg | grep pinctrl-single
[ 1.489922] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
END



Also


me@beaglebone:/sys/class/gpio$ ls gpio6* 
me@beaglebone:/sys/class/gpio$ find -name gpio60
 


me@beaglebone:/sys/class/gpio$ config-pin -l P9_60 
Invalid pin: "P9_60" "9_60" 
Pin is not modifyable: P9_60 


While all other PINS are ok like,


 me@beaglebone:/sys/class/gpio$ config-pin -l P9_30 
default gpio gpio_pu gpio_pd gpio_input spi pwm pruout pruin




-- 
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/27510d02-b43e-40d8-8abc-69737a920154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Best way to build a large array for access by PRU0?

2018-02-27 Thread evangrcarter
Hello,

I've been working with PRU0 on the Beaglebone Black for a couple weeks now 
(only a beginner) and have made some hopeful progress towards developing a 
real time system that will change gpio logic states based on given location 
data from a pupil tracking system. 

So far I've been using the examples given in the BeagleScope project (found 
here ) to 
program the PRU using pru_rpmsg, and I'm currently using: Linux beaglebone 
4.4.113-ti-r147 #1 SMP Tue Feb 20 20:58:22 UTC 2018 armv7l GNU/Linux

Things are going well! 
*But I wanted to ask the community about the simplest way to build a large 
1-D array (look up table of ~310,000 indexes of just integers) that can be 
accessed by PRU0 on the fly* to know how to set the gpios when it receives 
a new set of pupil location values. Previously I've built this array in 
userspace from an existing .txt file that is read byte by byte from a C 
script that builds the array, but I need that array to be accessible from 
PRU0. What is the simplest way to do this?

I've looked into trying to build the array in DDR memory (which could in 
theory be accessed by the PRU using address pointers), but allocating that 
kind of space to be available to a user space program looks pretty 
complicated (especially to ME who has never done any kernel space 
programming). I'm hoping that someone out there can give me inspiration for 
a simpler way to get this array to PRU0.

Please get back to me soon! Thank you for reading

-- 
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/deb6f19b-10a1-4462-b55c-df60f98f95bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Is it possible to use two PWM channels independently?

2018-02-27 Thread TJF
You can generate PWM outputs by

   - 2x3 channels on the PWM modules in the PWMSS
   - 3 channels on the CAP modules in the PWMSS (P9_28, P9_42, JT_05=5V)
   - 4 channels on TIMER 4 to 7 (P8_07, P8_08, P8_09, P8_10
   - 1 channel on CAP module in the PRU (P8_15)
   
In case of the PWM modules the A and B channel operates at the same 
frequency (and start at the same time). In order to switch a channel off, 
you can set the duty cycle to 0 (zero).


All other outputs can operate independendly (duty cycle, frequency and 
start time).

-- 
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/b13da308-9310-46dd-ad68-6a21e4a42a86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Is it possible to use two PWM channels independently?

2018-02-27 Thread TJF
You can generate PWM outputs by

   - 2x3 channels on the PWM modules in the PWMSS
   - 3 channels on the CAP modules in the PWMSS (P9_28, P9_42, JT_05=5V)
   - 4 channels on TIMER 4 to 7 (P8_07, P8_08, P8_09, P8_10
   - 4 channel on CAP module in the PRU (P8_15)
   
In case of the PWM modules the A and B channel operates at the same 
frequency (and start at the same time). In order to switch a channel off, 
you can set the duty cycle to 0 (zero).


All other outputs can operate independendly (duty cycle, frequency and 
start time).

-- 
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/e029fb67-3787-42ff-aada-2d177b1be014%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: How to use an Android Phone or Tablet as a Terminal for BBB?

2018-02-27 Thread bhushan . sp07
hey, 
I am working on similar kind of problem, please share your solution if you 
found one.

On Monday, December 23, 2013 at 8:38:28 AM UTC+5:30, Philip Sturgeon wrote:
>
> I would like to use my Android phone (Samsung GT-I8190) or Android tablet 
> (Nexus 7) as a Bluetooth connected terminal for my BBB, but I'm having 
> trouble figuring out how to do so.
>  
> It seems I have got the Bluetooth adapter running OK on the BBB since my 
> Android devices can discover a 'beaglebone-0'.  I can also l2ping them from 
> the BBB
> as you can see below from a BBB Putty session log taken on my laptop - 
> although the Nexus 7 apparently returns a ping packet of 0 bytes:
>  
>  ro...@beaglebone :~# hcitool scan
> Scanning ...
> 50:32:75:30:09:93   GT-I8190
> 30:85:A9:D7:68:56   Nexus 7
> ro...@beaglebone :~# l2ping 50:32:75:30:09:93
> Ping: 50:32:75:30:09:93 from 00:15:83:64:6A:2F (data size 44) ...
> 44 bytes from 50:32:75:30:09:93 id 0 time 11.96ms
> 44 bytes from 50:32:75:30:09:93 id 1 time 8.22ms
> 44 bytes from 50:32:75:30:09:93 id 2 time 7.19ms
> 44 bytes from 50:32:75:30:09:93 id 3 time 57.06ms
> 44 bytes from 50:32:75:30:09:93 id 4 time 16.04ms
> 44 bytes from 50:32:75:30:09:93 id 5 time 28.55ms
> 44 bytes from 50:32:75:30:09:93 id 6 time 19.11ms
> 44 bytes from 50:32:75:30:09:93 id 7 time 34.66ms
> Send failed: Connection reset by peer
> ro...@beaglebone :~# l2ping 30:85:A9:D7:68:56
> Ping: 30:85:A9:D7:68:56 from 00:15:83:64:6A:2F (data size 44) ...
> 0 bytes from 30:85:A9:D7:68:56 id 0 time 6.93ms
> 0 bytes from 30:85:A9:D7:68:56 id 1 time 10.07ms
> 0 bytes from 30:85:A9:D7:68:56 id 2 time 6.59ms
> 0 bytes from 30:85:A9:D7:68:56 id 3 time 6.03ms
> 0 bytes from 30:85:A9:D7:68:56 id 4 time 93.53ms
> 0 bytes from 30:85:A9:D7:68:56 id 5 time 6.92ms
> 0 bytes from 30:85:A9:D7:68:56 id 6 time 10.36ms
> 0 bytes from 30:85:A9:D7:68:56 id 7 time 6.68ms
> Send failed: Connection reset by peer
> ro...@beaglebone :~#
> When I try to connect to the BBB via the Bluetooth Terminal Emulator Pro 
> app on my Androids, I end up with 'unable to connect device'
> I figure there must be a bunch  of settings I have to make in the BBB 
> Linux config files to make things work as I want, but I have Googled far 
> and wide
> in the search for answers and can't seem to find all the peieces of the 
> jigsaw.
> .
> Suggestions gratefully received.
>

-- 
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/9bf7adfd-d882-4fb9-94c7-b9799f51d019%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Is it possible to use two PWM channels independently?

2018-02-27 Thread evilwulfie
Thee are 6 pwm channels

3 pairs use the same frequency but all can have independent duty cycles

Pick one each from different group for your application

On 2/27/2018 2:19 AM, James Fitzsimons wrote:
> Hi all,
>
> I've got pwm working both through echoing values directly to the
> device files from bash, and also via my C++ program. However I can't
> get two channels of a epwmss device to operate independently. e.g. If
> I export both 
> /sys/devices/platform/ocp/4830.epwmss/48300200.pwm/pwm/pwmchip1/pwm-1:0
> and pwm-1:1 then set a value for period and duty on either one of the
> channels (pwm-1:0 or pwm-1:1), as soon as I enable that channel both
> channels start. Stopping the channel stops both channels. I've even
> tested starting one channel then stopping the other and both stop.
>
> I had read elsewhere that both channels had to use the same frequency
> (period), which would work for my application, however I need to be
> able to set the duty cycle and enable/disable independently. Is that
> possible?
>
> I'm using the 4.14.20-ti-r36 kernel and have the following overlays
> enabled:
>
> uboot_overlay_addr6=/lib/firmware/am33xx_pwm-00A0.dtbo
> uboot_overlay_addr7=/lib/firmware/BB-PWM0-00A0.dtbo
>
> I'll go read the Technical Reference Manual now, but if someone can
> shed some light on this for me it would be much appreciated!
>
> Cheers,
> James Fitzsimons
> -- 
> 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/c769153a-74e9-4ff5-9fa4-de9ef116ccc7%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/de80317f-2d04-0e67-688d-0a053543becf%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: PWM documentation and/logic for kernel 4.9.XX

2018-02-27 Thread evilwulfie
http://www.ti.com/lit/pdf/spruh73



On 2/27/2018 2:09 AM, James Fitzsimons wrote:
> Hi there,
>
> I've just gone through this myself, and you've already figured out all
> you need to know. The pwmchipX mapping can change on boot so you can't
> rely on the /sys/class/pwm structure. Figure out which address maps
> the epwmss device you want to use and navigate down the /sys/device
> tree as you have already posted. i.e.
> /sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchipX  
>
> See Roberts response to my question
> here 
> https://groups.google.com/forum/#!category-topic/beagleboard/software/uAHEiJTkE5E
>
> FWIW I found the Technical Reference Manual for the AM335x which has
> all the addresses for the peripherals
> here https://blog.dest-unreach.be/wp-content/uploads/2017/07/AM335x-TRM.pdf
> - it doesn't seem to be on the TI site anymore, at least not that I
> could find.
>
> HTH,
> James Fitzsimons
>
>
>
>
> On Thursday, 22 February 2018 17:58:22 UTC+13, Co M wrote:
>
> Hi,
>
> I am using C blacklib to handle some i2c and spi devices. Also I
> have few PWM's  P9_14 and 16 let's say.
>
> I learned the hard way that P9_14 and P9_16 are to be    found in
> '48302200'. For P9_14 for example
>
> |
> /sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchipX  
> |
>
>
>
> which is a link from
>
> |
> /sys/class/pwm/pwmchip3/
> |
>
>
>
> became available as pwm0 after echoing 0 to 
> /sys/class/pwm/pwmchip3/export
>
> as
>
> |
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0# pwd
> /sys/class/pwm/pwmchip3/pwm0
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0# ls -l
> total 0
> -rw-rw-r--1root pwm 4096Feb2203:14capture
> -rw-rw-r--1root pwm 4096Feb2203:14duty_cycle
> -rw-rw-r--1root pwm 4096Feb2203:14enable
> -rw-rw-r--1root pwm 4096Feb2203:14period
> -rw-rw-r--1root pwm 4096Feb2203:14polarity
> drwxrwxr-x 2root pwm    0Feb2203:14power
> -rw-rw-r--1root pwm 4096Feb2203:14uevent
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0#
> |
>
>
>
> The blacklib still doing old slot way of finding out which
> /sys/... files are  matching  for P9_14 pwm, going
> from symbolic links to some hardcoded PXY->1,2,3 mapping finally
> to find out the /sys/class/.../pwm/period.. and such...
>
> My question is:
>
>    How do I determine which X,Y from
> /sys/class/pwm/pwmchip*X*/pwm*Y*  maps to (X,Y) of a pwm pin
> P*X*_*Y* 
>
> Thank you
>
>  
>
> -- 
> 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/4df438c2-3352-4a99-8f3f-044e50957571%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/74312200-6d65-198d-81cc-6053988f299c%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Suggestion for connecting multiple components to Beaglebone black through usb.

2018-02-27 Thread evilwulfie
Use a powered USB hub

On 2/26/2018 10:48 PM, rakesh.kond...@iiitdmj.ac.in wrote:
> Hello,
>
>        I am working on a project, in which beaglebone black is used.
> The components to be connected to beaglebone black are Sensehub (which
> consists of accelerometer) and a webcam.As sensehub cannot be directly
> connected to beaglebone black directly, we connected it to launch-XL,
> which in turn to be connected to beaglebone black through USB. The
> real problem comes here. Now, the webcam should also be connected to
> beaglebone through USB. But, the beaglebone black is provided with
> only one USB slot. So, we are only able to connect one of the either
> components (webcam or Launch-XL) to beaglebone black.
>
>     *  So, how multiple components are connected to beaglebone black
> through USB?*
> *
> *
> *
> *
> Regards,
> Rakesh Reddy.
> -- 
> 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/e4966bfb-9c98-497d-96b9-7f4356d5a2a3%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/31039596-b1ca-a70a-7aaf-1634457d99b0%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: Configuring GPIO pins as active high

2018-02-27 Thread evilwulfie
write a device overlay to do all of this then load it in /boot/uEnv.txt


On 2/26/2018 8:33 PM, salahgaf...@gmail.com wrote:
> Thanks @Robert
>
> I could solve the issue by setting active_low value in
> /sys/class/gpio/gpio66
>
> But I think that's not the recommended method.
>
> Comments please!!
>
> On Friday, 23 February 2018 18:06:48 UTC+5:30, Salah Abdul Gafoor wrote:
>
> Hi,
>
> I want to configure some of my gpio pins (P8_07 to P8_10) of my
> beagle bone black revC board as inputs with active high state.
>
> OS running in my board is Debian 9.3, with Kernel 4.1.
>
> -- 
> 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/4687d4f5-b329-4937-b246-ec8714c749b4%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.

-- 
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/bbc6ff32-1a46-b67e-dd01-b0ff0d614ee6%40gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Using Playstation Eye's microphone array on Beaglebone Blue

2018-02-27 Thread Rick Mann
You might have better luck on an ALSA list.

> On Feb 26, 2018, at 14:46 , danbing@gmail.com  wrote:
> 
> Hi,
> 
> So I am trying to use Playstation Eye's microphone array to perform some 
> sound source localization tasks on my beaglebone blue.
> 
> I am using an ubuntu image from: https://jh.app.box.com/v/530-707-Dropbox
> 
> And I am using a software called HARK: https://www.hark.jp/
> 
> I suspect Playstation Eye is not working because when I try to use arecord 
> command like:
> arecord -D plughw:CARD=CameraB409241,DEV=0 -d 10 /tmp/test-mic.wav
> 
> to record a .wav file with playstation eye plugged in, it creates a .wav file 
> (whose size is fixed, I remember it's 44 bytes)and never ends.
> 
> When I run the command with a regular webcam plugged in, it exits normally 
> with the audio file saved.
> 
> I am wondering if anyone else has worked on similar topic before.
> 
> Thank you!
> 
> Best,
> Danbing
> 
> -- 
> 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/8ce8ad4f-859b-424c-889c-a0518c03b49b%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.


-- 
Rick Mann
rm...@latencyzero.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/AAB95B82-B4EC-408F-BB6D-AF3E9AEE5525%40latencyzero.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Is it possible to use two PWM channels independently?

2018-02-27 Thread James Fitzsimons
Hi all,

I've got pwm working both through echoing values directly to the device 
files from bash, and also via my C++ program. However I can't get two 
channels of a epwmss device to operate independently. e.g. If I export both 
/sys/devices/platform/ocp/4830.epwmss/48300200.pwm/pwm/pwmchip1/pwm-1:0 
and pwm-1:1 then set a value for period and duty on either one of the 
channels (pwm-1:0 or pwm-1:1), as soon as I enable that channel both 
channels start. Stopping the channel stops both channels. I've even tested 
starting one channel then stopping the other and both stop.

I had read elsewhere that both channels had to use the same frequency 
(period), which would work for my application, however I need to be able to 
set the duty cycle and enable/disable independently. Is that possible?

I'm using the 4.14.20-ti-r36 kernel and have the following overlays enabled:

uboot_overlay_addr6=/lib/firmware/am33xx_pwm-00A0.dtbo
uboot_overlay_addr7=/lib/firmware/BB-PWM0-00A0.dtbo

I'll go read the Technical Reference Manual now, but if someone can shed 
some light on this for me it would be much appreciated!

Cheers,
James Fitzsimons

-- 
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/c769153a-74e9-4ff5-9fa4-de9ef116ccc7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: PWM documentation and/logic for kernel 4.9.XX

2018-02-27 Thread James Fitzsimons
Hi there,

I've just gone through this myself, and you've already figured out all you 
need to know. The pwmchipX mapping can change on boot so you can't rely on 
the /sys/class/pwm structure. Figure out which address maps the epwmss 
device you want to use and navigate down the /sys/device tree as you have 
already posted. i.e. 
/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchipX  

See Roberts response to my question 
here 
https://groups.google.com/forum/#!category-topic/beagleboard/software/uAHEiJTkE5E

FWIW I found the Technical Reference Manual for the AM335x which has all 
the addresses for the peripherals 
here https://blog.dest-unreach.be/wp-content/uploads/2017/07/AM335x-TRM.pdf 
- it doesn't seem to be on the TI site anymore, at least not that I could 
find.

HTH,
James Fitzsimons




On Thursday, 22 February 2018 17:58:22 UTC+13, Co M wrote:
>
> Hi,
>
> I am using C blacklib to handle some i2c and spi devices. Also I have few 
> PWM's  P9_14 and 16 let's say.
>
> I learned the hard way that P9_14 and P9_16 are to befound in 
> '48302200'. For P9_14 for example
>
> /sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/pwmchipX  
>
>
>
> which is a link from
>
> /sys/class/pwm/pwmchip3/ 
>
>
>
> became available as pwm0 after echoing 0 to  /sys/class/pwm/pwmchip3/export
>
> as
>
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0# pwd
> /sys/class/pwm/pwmchip3/pwm0
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0# ls -l
> total 0
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 capture
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 duty_cycle
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 enable
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 period
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 polarity
> drwxrwxr-x 2 root pwm0 Feb 22 03:14 power
> -rw-rw-r-- 1 root pwm 4096 Feb 22 03:14 uevent
> root@beaglebone:/sys/class/pwm/pwmchip3/pwm0# 
>
>
>
> The blacklib still doing old slot way of finding out which /sys/... files 
> are  matching  for P9_14 pwm, going
> from symbolic links to some hardcoded PXY->1,2,3 mapping finally to find 
> out the /sys/class/.../pwm/period.. and such...
>
> My question is: 
>
>How do I determine which X,Y from /sys/class/pwm/pwmchip*X*/pwm*Y*  
> maps to (X,Y) of a pwm pin P*X*_*Y*  
>
> Thank you
>
>  
>
>

-- 
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/4df438c2-3352-4a99-8f3f-044e50957571%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.