[beagleboard] Python: Threading and HW-Switches

2015-06-19 Thread david . berger95
Hey Guys

I have to read 8 switches through the GPIOs. My idea is now to make that 
with interrupts.
I've tried it with the module thread but that doesn't went perfect...To 
solve my problem I like to use the moderner and better module 
threading.But I don't understand this good. Can somebody give my a little 
programm for example purpose.

Following situation in the python Program:
  read some switches on rising edge(GPIO)  -- Adafruit BBIO-Library
  interrupt routine to print something out   --threading Module

Or is there an other / better way to do this?

Thanks for your help
Regards Dave

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: SLOTS and PINS

2015-06-11 Thread david . berger95
I've found some informations under
https://github.com/jadonk/validation-scripts/blob/master/test-capemgr/README.md 


Am Montag, 8. Juni 2015 14:26:54 UTC+2 schrieb david.b...@gmail.com:

 Hello everybody

 For a documentation I have to know what the PINS and SLOTS are. What's the 
 function of these? I search in different places but I couldn't find 
 something intelligent.
 Maybe you can answer this question... ;-)

 Thank in advance


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] SLOTS and PINS

2015-06-08 Thread david . berger95
Hello everybody

For a documentation I have to know what the PINS and SLOTS are. What's the 
function of these? I search in different places but I couldn't find 
something intelligent.
Maybe you can answer this question... ;-)

Thank in advance

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: BeagleBone Black doesn't boot up from eMMC

2015-05-08 Thread david . berger95
Have you used a flash-img (like this: 
http://derekmolloy.ie/write-a-new-image-to-the-beaglebone-black/) by your 
test where you push the s2 button? It only works with a IMG that's designed 
for this.

You can read the script of derek molloy. He explain all the things very 
easy an helpfully. (Thanks Derek :-) )


Am Montag, 6. April 2015 07:06:37 UTC+2 schrieb milkyway:

 Hello everyone,

 I have been using my BBB without any problem for quite a long time. But, 
 suddenly the BBB stopped booting up from eMMC. When I connect the board via 
 USB, the power LED lits, and all the 4 user leds turns on for a few seconds 
 and goes off, except the LED_0, it  is doing its heartbeat pattern. 

 When I inserted a newly flashed SD card into its slot, and powered up, it 
 is  turning on and booting up as usual. But,  when I tried to flash the SD 
 card image into the eMMC by holding the boot-button during start up, only 
 the power LED turns on for 3 seconds and goes off, and nothing happens 
 thereafter. What could be the possible reason? How would I fix it?


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Adafruit Library - Disable GPIO cleanup

2015-03-09 Thread david . berger95
Hey guys!
Maybe somebody of you know the solution to my problem.
I use the Adafruit_BBIO.GPIO library in my python programm. With that 
library I set or clear some GPIO.
All that is no problem. But, if I leave my script, my previous setup of 
these GPIO is lost and all GPIOs have
the value that's given through the pull-resistors of my PCB. I googled that 
and could read, that the GPIOs are set
to floating if the script is leaving (clean up process). For my purpose 
that control isn't desired and should be disabled.

Are my assumptions with the clean up process right?
Is it possible to disable or walkaround this clean up at the end?
If yes, how? :-)

Thanks for your help
Dave

*P.S. Posted this question to the adafruit forum too.*

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Several IP Address sets for usb0

2015-01-23 Thread david . berger95
Hey guys

At beginning of the boot the usb0 device becomes his static IP. In my 
(default) case it is 192.168.7.2
This process is running 1 time direct before the user login. Suddenly this 
process happens several time each boot by my BBB.
Every reboot, the number of repetitions increase by one. So, now I'm 
arrived at 17 times. Here is an example:

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian

The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
The IP Address for usb0 is: 192.168.7.2
beaglebone login:

At the moment this isn't a huge problem. But with the numbers of reboots it 
will take time before you can login.
If it's possible I don't like to flash the img.

Does anybody have an idea to fix that problem? 

Thank for your help!
Dave

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] I2C Disable

2015-01-13 Thread david . berger95

Hey

I have to use the I2C as GPIOs for test purpose.
My idea is to make a overlay with this I2C1 and I2C2 pins and set those 
pins to mode 7 (GPIO).
I tried this but the activation of the overlay won't work. The errormessage 
(see end of the text) says, that the pin-95 is already in use by 
4819c00.i2c.

How can I disable the I2C driver that this pin-95 isnt's used by that 
driver?
Can I do that with another overlay or eventually the uEnv.txt file?
What does the status -22 stand for?

Thanks for your help!
Have a nice day

*I'm using BBB Rev.C with Angstrom Distribution*

*Errormessage:*
Compiling the overlay from .dts to .dtbo
[   17.271435] pinctrl-single 44e10800.pinmux: pin 44e1097c already 
requested by 4819c000.i2c; cannot claim for helper.11
[   17.283056] pinctrl-single 44e10800.pinmux: pin-95 (helper.11) status -22
[   17.290398] pinctrl-single 44e10800.pinmux: could not request pin 95 on 
device pinctrl-single
[   17.299553] bone-pinmux-helper helper.11: Failed to select default state

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] BBB Cape handling

2014-12-01 Thread david . berger95


Hey Guys

I have a strange problem with the handling of my custom cape on the BBB.
My cape don't have a EEPROM because it's a prototype.

The first error appears in the capemanager:

[0.718342] bone-capemgr bone_capemgr.9: slot #6: BB-BONELT-HDMIN 
conflict P8.45 (#5:BB-BONELT-HDMI)
[0.727943] bone-capemgr bone_capemgr.9: slot #6: Failed verification

After the boot and log in and after ~60sec, a new error message appears and 
the BBB is in a faultstate (it crashes and doing nothing):

root@beaglebone:~# [  120.521224] INFO: task kworker/u:1:21 blocked for 
more than 60 seconds.
[  120.528386] echo 0  /proc/sys/kernel/hung_task_timeout_secs disables 
this message.
[  120.536854] Kernel panic - not syncing: hung_task: blocked tasks
[  120.543292] [c00114f1] (unwind_backtrace+0x1/0x9c) from [c04c9cfd] 
(panic+0x59/0x15c)
[  120.552003] [c04c9cfd] (panic+0x59/0x15c) from [c0073955] 
(watchdog+0x19d/0x1c0)
[  120.560262] [c0073955] (watchdog+0x19d/0x1c0) from [c00454eb] 
(kthread+0x6b/0x78)
[  120.568610] [c00454eb] (kthread+0x6b/0x78) from [c000c8fd] 
(ret_from_fork+0x11/0x34)

*My questions are:*
- what the trigger of the second error message is?
- What is the kworker/u:1:21?
- Is the first error message relevant?
- How can I fix this trouble?
- How does the BBB detecting Capes (to understand which Pin could 
interrupt)?

Thanks for your help!

Dave

In the Picture (attachement) you can see the pinout of P8 and P9.

https://lh6.googleusercontent.com/-YiFo-Dd2K8k/VHiHhCT1BgI/B_I/kop5mQn7Qg8/s1600/SCH_Snip.JPG

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] How to change GPIO Mode

2014-09-12 Thread david . berger95

Hey Forum
I hope you can help me. I'm on a education project and I have some 
questions.

I have a problem with the config of the GPIO (I2C-HW-Controller)

I have two diffrent usecases in my project. 

   1. I2C HW-Controller #1 is a master
   2. I2C HW-Controller #1 is a slave

So I have to change the I2C-controller config between the master and the 
slave mode.
If it is possible, I should do that while the BBB and his phyton/c++ 
program is running.

Now here are my questions:

   - How can I switch between I2C master and slave mode? (Device tree?)
   - Can I do that while the BBB is running? (Or is a reboot of BBB 
   necessary?)

If its possible give my a nice explanation and not only a code piece. ;-)
I have to learn  understand how all that stuff works.

Thanks a lot

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Tri-state GPIOs?

2014-08-26 Thread david . berger95
Hey Guys

Has the Beaglebone black *tri-state gpios*?

When yes, how can I set up them?

Thanks

-- 
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.
For more options, visit https://groups.google.com/d/optout.