[beagleboard] Re: How do I hard-reset usb on beagle-bone with Angstrom distribution

2015-06-09 Thread micha151189
Hey,

did you have any success with the usb hard reset issue?

Regards,
Michael 

Am Freitag, 21. Juni 2013 02:17:31 UTC+2 schrieb ma...@verdigristech.com:

 Hi I am using a beagle-bone A6a  with angstrom linux,

 we have a usbreset script compiled from here. 

 #include stdio.h
 #include usb.h

 int main(void)
 {
   struct usb_bus *busses;
   usb_init();
   usb_find_busses();
   usb_find_devices();
   busses = usb_get_busses();
   struct usb_bus *bus;
   int c, i, a;
   /* ... */
   for (bus = busses; bus; bus = bus-next) {
 struct usb_device *dev;
 int val;
 usb_dev_handle *junk;
 for (dev = bus-devices; dev; dev = dev-next) {
   char buf[1024];
   junk = usb_open ( dev );
   usb_get_string_simple(junk,2,buf,1023);
   if ( junk == NULL ){
 printf(Can't open %p (%s)\n, dev, buf );
   } else {
 val = usb_reset(junk);
 printf( reset %p %d (%s)\n, dev, val, buf );
   }
   usb_close(junk);
 }
   }
 }


 It generates output like this


 [ 2422.917305] usb 1-1: reset high-speed USB device number 19 using musb-hdrc
 [ 2423.080278] cdc_acm 1-1:1.0: ttyACM0: USB ACM device
 Reset successful


 however it is not actually successfully hard-resetting.


 Does anyone know how to hard powercycle the usb host controller?



-- 
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] Disable Autoshutdown on Power Outage

2015-06-07 Thread micha151189
Hello everyone,

I have connected a 3,7V cell Battery to the Beaglebone Black.

The problem is that every time I unplug the main 5V power supply from the 
board, the board is going into a safe shutdown mode (since the battery 
still supplies the board with power). 
Is there a way to disable this auto shutdown pattern? 

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


[beagleboard] Re: Problems with CAN in BBB

2015-06-07 Thread micha151189

Hey Bruno,

regarding your Step 3) Try ip link set can0 up type can bitrate 125000 
listen-only off. 
After this Step send some CAN Messages to the Controller and enter ifconfig 
in the console window. Please tell me, if you can see the can0 device. Did 
the device read any messages (RX entry)

Kind regards,
Michael 

Am Montag, 1. Juni 2015 21:00:50 UTC+2 schrieb Bruno Luiz:

 I am working with a BeagleBone Black rev C for a project using CAN. I am 
 using the CBB-Serial-r02 cape because we need the UART features too. The 
 problem is that CAN is not working. I did a lot of things to test it on a 
 3.8-rt kernel from RobertCNelson (which is only PREEMPT), but it didn't 
 worked at all. Some things that I did:

 0) Installed the latest Debian Image
 1) Always modprobe the can modules (can, can-dev, can-raw)
 2) Compiled and installed canutils, always using the cangen can0 to test 
 the can output
 3) Always run ip link set can0 up type can bitrate 125000; ifconfig can0 
 up to activate can0
 4) Installed the CBB-Serial-r02 dtbs from the official repository, even 
 that the debian image that I used already includes it
 5) Test the output with an osciloscope. I did the same test with an EzDSP 
 28335 and it worked, so it is not a problem with this part of the method
 6) I tried to do a candump can0 with the DSP generating random data, but 
 the candump didn't show any data

 I recompiled 3.14 kernel using the dtb-rebuilder (instructions on this 
 tutorial: 
 https://groups.google.com/d/msg/beagleboard/_9u1B6ZkgCU/K2ARgwfC490J) and 
 enabling the DCAN1 (because DCAN0 disables the I2C used for capemgr) and it 
 didn't worked too.

 Well, I ran out of options here. Some one is having problems with the rev 
 C and CAN too or that is some problem with my method?


-- 
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.