[beagleboard] Re: Local copy of jquery is not working

2015-05-12 Thread janszymanski12345
Hi,

 The problem you have here is that you are missing some dependencies.
When you access jquery online everything is fine.
When you access it from a local drive you actually need to clone the whole 
repo, not only jquery-*.min.js

Hope this will help.
Jan

On Sunday, October 19, 2014 at 8:39:21 AM UTC+11, jw wrote:

 I'm attempting to write a basic html page to control hardware on the 
 BeagleBone Black. The HTML file looks like this:
 !DOCTYPE html
 html
 head
 script src=/socket.io/socket.io.js/script
 script src=http://code.jquery.com/jquery-2.1.1.min.js;/script
 script
 var socket = io.connect();
 socket.on('ledstatus', function (data) {
 console.log(data);
 $('body').css('background-color', data);
 });
 
 function ledOn(){
 socket.emit('led', 'on');
 }
 
 function ledOff(){
 socket.emit('led', 'off');
 }
 /script
 /head
 body
 input type=button name=on id=onButton value=on 
 onClick=ledOn();
 input type=button name=off id=offButton value=off 
 onClick=ledOff();
 /body
 /html

 And the .js file looks like this:
 var app = require('http').createServer(handler);
 var io = require('socket.io').listen(app);
 var fs = require('fs');
 var bb = require('bonescript');
  
 app.listen(8090);

 console.log('Server running on: http://' + bb.getPlatform().ipAddress + 
 ':8090');
  
 bb.pinMode('USR3', 'out');
 bb.digitalWrite('USR3', 0);
  
 function handler (req, res) {
   fs.readFile('index.html',
   function (err, data) {
 if (err) {
   res.writeHead(500);
   return res.end('Error loading index.html');
 }
  
 res.writeHead(200);
 res.end(data);
   });
 }
  
 io.sockets.on('connection', function (socket) {
   socket.on('led', function (data) {
 console.log(data);
 if (data == 'on') {
 bb.digitalWrite('USR3', 1);
 socket.emit('ledstatus', 'green');
 socket.broadcast.emit('ledupdate', 'green');
 }
 else {
 bb.digitalWrite('USR3', 0);
 socket.emit('ledstatus', 'red');
 socket.broadcast.emit('ledupdate', 'red');
 }
   });
 });

 And it works just fine. The problem is that my application will not have 
 internet access which makes this line problematic:
 script src=http://code.jquery.com/jquery-2.1.1.min.js;/script

 So I downloaded jquery-2.1.1.min.js to the same directory as the HTML and 
 .js files, and changed the above line to:
 script src=jquery-2.1.1.min.js/script

 And it stops working, and I get the following errors when I use Chrome's 
 inspect element tool:
 Uncaught SyntaxError: Unexpected token  
 Uncaught ReferenceError: $ is not defined 

 Anybody know what's going on here?


-- 
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 and Ethernet to USB adapter

2015-05-07 Thread janszymanski12345
Hi,

I'm trying to use the Ethernet to USB adapter in order to connect to the 
uni lab computers as we don't have spare Ethernet ports.
There is an Internet sharing option available on USB (RNDIS gadget) and it 
works, however I have a reason for another approach.
My connection is: the adapter Ethernet side is connected to BBB ethernet 
port with a cable and the adapter USB is connected to desktop PC (Win 7).
The adapter is D-Link DUB-1312 and i have tried the Apple adapter as well.
I know that is reverse to it's intended purpose, but does it have a chance 
to work?
The results are:
BBB Ethernet socket yellow LED is solid ON, green LED is blinking
Adapter Ethernet socket yellow LED is OFF, green LED is blinking

On PC I have:
Ethernet adapter Local Area Connection 19:

   Connection-specific DNS Suffix  . :
   Link-local IPv6 Address . . . . . : fe80::91b1:2a49:7a5c:3f21%45
   IPv4 Address. . . . . . . . . . . : 192.168.0.1
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . :

BBB gives me:
root@beaglebone:~# ifconfig
eth0  Link encap:Ethernet  HWaddr 7c:66:9d:58:87:70
  inet addr:192.168.0.53  Bcast:192.168.0.255  Mask:255.255.255.0
  inet6 addr: fe80::7e66:9dff:fe58:8770/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:733 errors:0 dropped:0 overruns:0 frame:0
  TX packets:83 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:162494 (158.6 KiB)  TX bytes:17816 (17.3 KiB)
  Interrupt:40

I am using the latest Debian image

I am unable to connect to the network
root@beaglebone:~# ping www.google.com
ping: unknown host www.google.com

Any advice, please

Jan





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


Re: [beagleboard] Re: OSX + Baeglebone = Nightmare

2015-05-01 Thread janszymanski12345
Hi Lee,

 You're not trying to tell me that BBB is for elite makers with self 
respect only, while RPi is for everyone, are you?
At university we have students using their own computers - running OSX, 
Windows and (very few) Linux.
They all want to learn and they expect to receive help if needed.
The labs do not have enough Ethernet points for them, so you see my 
interest in RNDIS.

I own MBP, not only because I think it is a quality product, but as well I 
need to test project on different platforms (for example nodejs webserver)
I understand your frustration with Apple and possibly some people from TI 
should take the matter in their hands to solve it.
The interoperability is very important and we need to accept variety of 
operating systems.

There is a huge interest in embedded Linux platforms. 
The big advantage of BBB over RPi is that it is able to run out of the box 
with a single cable.
Losing that for many people will lead into frustration and disappointment 
and as you can see moving somewhere else. 

Regards
Jan

On Saturday, May 2, 2015 at 2:17:16 AM UTC+10, Lee Crocker wrote:

 I think the original poster has a good point here: why do we bother 
 wasting resources trying to support OSX? No maker with an ounce of 
 self-respect would buy an Apple product. It's an inaccessible black box 
 totally controlled by the corporation, constantly changing, constantly 
 breaking compatibility with older models, all on yesterday's hardware at a 
 premium price. Apple clearly has no interest in working with us, so why 
 should we work with them?

 If you're the kind of person who wants to use a BeagleBone, get a real 
 computer (by which I mean Linux). Driver? What's that? Why do I need one? 
 It just works. Serial cable? Just works. Network? Just works. And even if 
 for some odd reason it didn't, I'd just dig into the source code and figure 
 out why and fix it myself.

 Yes, OSX + BBB is a disaster. But let's put the blame where it belongs.



-- 
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: OSX + Baeglebone = Nightmare

2015-05-01 Thread janszymanski12345
Hi,

Did you have any luck solving this?
If yes, can you share it as I have the same problem.

Jan

On Monday, February 2, 2015 at 10:47:59 AM UTC+11, SimGQ wrote:

 I 
 https://github.com/beagleboard/beaglebone-getting-started/blob/master/Drivers/MacOSX/RNDIS/HoRNDIS.pkg
  have 
 wasted a whole weekend trying got connect to my BBB.

 I am running 10.10 and have trawled the internet reading pages upon pages 
 of cryptic mumbo jumbo, I have uninstalled rivers, updated drivers, 
 replaced drivers, edited pLists, reset Pram, reset SMC, I have done 
 EVERYTHING. I am sick of it at this stage. I have a €100 Windows 7 netbook 
 that connects with no problem to the Beaglebone.

 For the past 9 months of=r so I have used an Arduino Mega with no 
 connection issues, so why oh why is it so difficult to get this POS board 
 to work? Laziness perhaps?

 Basically Beaglebone need to get their finger out and fix the driver 
 issues with OS X. 

 OR STOP SELLING THIS BOARD to OS X users. It just doesn't work.

 My weekend has been a complete waste.




-- 
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: Wireless mesh networking

2015-04-14 Thread janszymanski12345
Hi,

Have a look here http://processors.wiki.ti.com/index.php/Contiki-6LOWPAN 
(That's similar to what I'm working on now)

Good Luck
Jan

On Saturday, September 27, 2014 at 7:30:02 AM UTC+10, Brian Anderson wrote:

 Hi all,

 I am interested in setting up a wireless mesh network using a collection 
 of BBBs (and possibly other devices).  Does anyone have experience setting 
 up a wireless mesh network using BBB?

 I am not really interested in a so-called wireless distribution system 
 that is used to extend an SSID across a wide area using wireless mesh 
 networking.  I am much more interested in setting up a network of 
 cooperating nodes that talk with each other (and to the internet via a 
 gateway/mesh portal connected simultaneously to the internet and the mesh).

 In particular, I'm interested in:

   * What distro and kernel are you using?
   * Ideally this would be with one of RCNs Debian images, but if not, 
 I'm interested in what you might have used.
   * If you have done something with a Linux based system other than a 
 BBB, I'd like to know about that too.
   * What mesh routing protocol was used?  Batman, Babel/AHCP, HWMP, OLSR, 
 ...
   * Steps to configure the mesh network and gateway.
   * Did you use 802.11s?  If so, presumably using the 802.11s support in 
 the kernel?
   * WiFi chipset that was used (presumably supporting mesh mode).  SOFTMAC 
 or HARDMAC?

 I have researched the topic fairly extensively and can probably set 
 something up via trial and error myself.  Prior to diving into that, I 
 wanted to see if anyone has already done some work with wireless mesh 
 networking and BBB (or something else) and would be willing to share their 
 experience and knowledge!

 Thanks in advance.

 Cheers,

 ba



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


Re: [beagleboard] Windows 7 Internet Sharing for BeagleBone Black doesn't work

2015-04-10 Thread janszymanski12345
Thanks,

 It works now, except that my service created to make it persistent doesn't
my net service is:

[Unit]

Description=Network interfaces

Wants=network.target

After=syslog.target network.target

[Service]

Type=simple

ExecStart=/root/StartUSBNetwork

[Install]

WantedBy=multi-user.target

After restart my console shows:

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@beaglebone:~# ping www.google.com
connect: Network is unreachable
root@beaglebone:~# systemctl restart net.service
root@beaglebone:~# ping www.google.com
PING www.google.com (216.58.220.132) 56(84) bytes of data.
64 bytes from syd09s01-in-f4.1e100.net (216.58.220.132): icmp_req=1 ttl=56 
time=
16.3 ms

...

Obviously something wrong with my net.service timing, it works only after 
restarting. Do you see the problem?

Thanks again

Jan




On Friday, April 10, 2015 at 3:29:08 PM UTC+10, William Hermans wrote:

 Check the contents of /etc/resolv.conf

 should read:

 domain localdomain
 search localdomain
 nameserver 192.168.7.1



 Assuming your Windows machine is 192.168.7.1. Also, what is the contents 
 of your /etc/network/interfaces file ? You USB interface should be setup 
 thus 

 iface usb0 inet static
 address 192.168.7.2
 netmask 255.255.255.0
 network 192.168.7.0
 gateway 192.168.7.1



 Lastly, the guy on his page says that you need to set the usb gadget IP to 
 DHCP. I believe this to be wrong. It should be set to static, 192.168.7.1 
 netmask 255.255.255.0, and gateway to 192.168.7.1. Give that a shot.

 On Thu, Apr 9, 2015 at 9:15 PM, janszyma...@gmail.com javascript: 
 wrote:

 Hi

 I am using the latest Debian image from here Debian (BeagleBone, 
 BeagleBone Black - 4GB SD) 2015-03-01 
 http://debian.beagleboard.org/images/bone-debian-7.8-lxde-4gb-armhf-2015-03-01-4gb.img.xz
  

 root@beaglebone:~# uname -a

 Linux beaglebone 3.8.13-bone70 #1 SMP Fri Jan 23 02:15:42 UTC 2015 armv7l 
 GNU/Linux
 I am following the instructions from here 
 http://lanceme.blogspot.com.au/2013/06/windows-7-internet-sharing-for.html 

 however unable to ping ping www.google.com
 root@beaglebone:~# ifconfig
 eth0  Link encap:Ethernet  HWaddr 7c:66:9d:58:87:70
   UP BROADCAST MULTICAST  MTU:1500  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
   Interrupt:40

 loLink encap:Local Loopback
   inet addr:127.0.0.1  Mask:255.0.0.0
   inet6 addr: ::1/128 Scope:Host
   UP LOOPBACK RUNNING  MTU:65536  Metric:1
   RX packets:0 errors:0 dropped:0 overruns:0 frame:0
   TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:0
   RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 usb0  Link encap:Ethernet  HWaddr ea:a2:3b:46:5d:59
   inet addr:192.168.7.2  Bcast:192.168.7.3  Mask:255.255.255.252
   inet6 addr: fe80::e8a2:3bff:fe46:5d59/64 Scope:Link
   UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
   RX packets:483 errors:0 dropped:0 overruns:0 frame:0
   TX packets:45 errors:0 dropped:0 overruns:0 carrier:0
   collisions:0 txqueuelen:1000
   RX bytes:179805 (175.5 KiB)  TX bytes:11212 (10.9 KiB)

 root@beaglebone:~# route add default gw 192.168.7.1
 root@beaglebone:~# echo nameserver 8.8.8.8  /etc/resolv.conf
 root@beaglebone:~# ping www.google.com
 ping: unknown host www.google.com
 root@beaglebone:~#

 btw, is the connman running there. When I did 
 root@beaglebone:~# systemctl disable connman.service
 Failed to issue method call: No such file or directory
 root@beaglebone:~#

 Jan

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


[beagleboard] BeagleBone Black as 6LoWPAN Border Router

2015-03-25 Thread janszymanski12345


Hi,

 I am trying to setup BBB as Contiki-6LoWPAN Border Router following the 
instruction from here 
*http://processors.wiki.ti.com/index.php/Contiki-6LOWPAN-BBB#IPv4_network* 
http://processors.wiki.ti.com/index.php/Contiki-6LOWPAN-BBB#IPv4_network 
As my network is IPv4 I need to install a number of packages according to 
instructions:
The problems I have:
1)

root@beaglebone:~/radvd/radvd-1.15# apt-get install libcheck-dev 
libdaemon-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcheck-dev

2) after disabling Conman, I lost SSH
systemctl stop connman.service 
systemctl disable connman.service 

cat  /etc/network/interfaces EOF # The loopback network interface auto 
lo iface lo inet loopback # The primary network interface auto eth0 iface 
eth0 inet static address 192.168.0.190 netmask 255.255.255.0 gateway 
192.168.0.1 EOF

cat  /etc/resolv.conf EOF nameserver 8.8.8.8 EOF

From here SSH is gone and no network


Jan

-- 
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] BeableBone Black as 6LoWPAN Border Router

2015-03-24 Thread janszymanski12345
Hi,

 I am trying to setup BBB as Contiki-6LoWPAN Border Router following the 
instruction from here 
http://processors.wiki.ti.com/index.php/Contiki-6LOWPAN-BBB#IPv4_network 
As my network is IPv4 I need to install a number of packages according to 
instructions:
The problems I have:
1)

root@beaglebone:~/radvd/radvd-1.15# apt-get install libcheck-dev 
libdaemon-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libcheck-dev

2) after disabling Conman, I lost SSH
systemctl stop connman.service 
systemctl disable connman.service 

cat  /etc/network/interfaces EOF # The loopback network interface auto 
lo iface lo inet loopback # The primary network interface auto eth0 iface 
eth0 inet static address 192.168.0.190 netmask 255.255.255.0 gateway 
192.168.0.1 EOF

cat  /etc/resolv.conf EOF nameserver 8.8.8.8 EOF

From here SSH is gone


Jan



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


Re: [beagleboard] Installing Edge Router application 6LBR on BBB

2015-03-23 Thread janszymanski12345
Thanks Robert,

 The problem was with missing dependencies.
If anyone wants to use BBB as edge router for 6LoWPAN (running 6LBR), the 
proper installation instructions are
here https://github.com/cetic/6lbr/wiki/Other-Linux-Software-Configuration 
under Installation from sources

Jan


On Monday, March 23, 2015 at 3:28:31 PM UTC+11, RobertCNelson wrote:

 On Sun, Mar 22, 2015 at 10:39 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  Hi, 
  
  I'm trying to install 6LBR on BBB following the instruction from here 
  http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples 
  and here 
  https://github.com/cetic/6lbr/wiki/BeagleBone-Software-Configuration 
 with no 
  luck 
  There are multiple build errors. 
  Was anyone able to do it? If yes what is the trick? 

 Remember, we aren't looking over your shoulder, you need to tell us 
 what errors your seeing... 

  I installed the latest Debian image on SD from here 
  http://beagleboard.org/latest-images 

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


[beagleboard] Installing Edge Router application 6LBR on BBB

2015-03-22 Thread janszymanski12345
Hi,

I'm trying to install 6LBR on BBB following the instruction from here 
http://processors.wiki.ti.com/index.php/Cc26xx_sw_examples 
and here 
https://github.com/cetic/6lbr/wiki/BeagleBone-Software-Configuration with 
no luck
There are multiple build errors.
Was anyone able to do it? If yes what is the trick?
I installed the latest Debian image on SD from here 
http://beagleboard.org/latest-images

Jan

-- 
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: BBB SPI: 6 cs signals needed

2015-01-22 Thread janszymanski12345

http://www.nagavenkat.adurthi.com/?p=479

On Friday, 23 January 2015 06:18:05 UTC+11, codemonkey wrote:

 Hello, I need to address six devices on a single spi bus, and I'm hoping 
 to avoid writing a device driver :-)

 We will be updating from 3.8.13-bone68 as soon as there is a stable 
 release of a newer kernel. So far, my research hasn't turned up any 
 indication that spidev can support the use of additional gpis's for this 
 purpose.

 Will this be true with the new kernel? Has anyone addressed this?

 Thanks for your help,
 Tim


-- 
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: Regarding Cortex M3 PM

2015-01-22 Thread janszymanski12345
IT E2E community might be helpfull 
http://e2e.ti.com/support/microcontrollers/ 

On Wednesday, January 21, 2015 at 3:19:02 PM UTC+11, Satya wrote:

 I had started working over my BBB and realized that my AM33XX integrates 
 a Cortex-M3 core to manage the entry/exit of various standy-by and 
 deep-sleep modes, i have some weird question regarding the same, please 
 excuse me if i was wrong.

 1) Can we use this M3 for some other purpose also apart from just waking 
 up and sleeping,as it has access for the GPIO's (Vaibhav Bedia) from TI 
 mentioned that in one of his seminar, but really did not explained about 
 the same.

 2) Apart from TRM, can anybody point me to the direction where i can get a 
 good hold the same.


 I would take this opportunity to thank Robert Nelson for his incredible 
 work and contribution to guide freshers like me...!!! :-)


-- 
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 Web Server

2015-01-14 Thread janszymanski12345
another option (to apache, lighttpd, ...) is nodejs http://nodejs.org/

On Wednesday, January 14, 2015 at 3:41:31 AM UTC+11, kenu...@gmail.com 
wrote:

 Greetings, everyone!

 I want to set up my Beaglebone Black as a web server so that it can host a 
 website.

 But I am extremely new to beaglebone and debian/linux systems so I am 
 looking for advice on where to start, what to download and how to download 
 it, or even recommendations on books to read on how to do this task.

 I have scoured the internet about web servers and beaglebone black but 
 they have not been helpful. I am hoping experts or experienced programmers 
 can help.

 I am using BeagleBone Black, Revision C that I believe comes pre-installed 
 with debian (I assume so since when I bring up LXTerminal it says 
 debian@beaglebone: ~)

 Thank you in advanced!


-- 
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: How do I install Arduino 1.6 in the BeagleBone Black?

2015-01-09 Thread janszymanski12345
Is your BBB behaving like the Arduino (Beagle Bone Blackuino)?
or
Do you host Arduino IDE on BBB?

On Saturday, January 10, 2015 at 7:21:36 AM UTC+11, DLF wrote:

 Hello

 I'm running Ardunio IDE (1.0.1) on my BBB (Linux beaglebone 3.8.13-bone68)



 On Thursday, 8 January 2015 18:24:26 UTC+1, Jack_RobotDad wrote:

 Hello,

 I am working on a small robot project with my son. I need to install the 
 Arduino IDE 1.6 (e.g., nightly build Linux 32) into my BBB.
 The Arduino IDE from the repository installed easy using application 
 management, but it does not support the Arudino Due boards as is. 

 I have basically downloaded the lasted files from the Arduino site and 
 followed the instructions from here to create a link on the BBB desktop

 https://bhargavg.wordpress.com/2011/12/23/creating-an-arduino-desktop-launcher-for-ubuntu-11-10-with-desktop-file/
  
 https://www.google.com/url?q=https%3A%2F%2Fbhargavg.wordpress.com%2F2011%2F12%2F23%2Fcreating-an-arduino-desktop-launcher-for-ubuntu-11-10-with-desktop-file%2Fsa=Dsntz=1usg=AFQjCNGQig-FFRroEvf1xfxBuPLsGbs10w

 I have done the install and it is working on regular Linux PCs running 
 Ubuntu and Linux Mint, but I can't make it work on the BBB for some reason.
 On the BBB when I click over the icon I created to execute the arduino 
 code, nothing happens.

 I am getting the Arduino IDE Nighly Builds Linux 32 from here
 http://arduino.cc/en/Main/Software#toc4

 Do I have to compile the  Arduino source code for the BBB? If so, I need 
 help doing it. 
 As I mentioned, on the other Linux installs we have (regular PCs) I just 
 needed to download the files and create the link to run the Arduino IDE.

 Any help will be appreciated.

 Thank you!
 -Jack



-- 
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: Running C/C++ applications using OpenCV in Eclipse

2015-01-07 Thread janszymanski12345
My guess is that there are precompiled libraries, so if you cross compile 
on PC the library code is for x86 - it will not work on ARM. You can build 
opencv libraries on PC for ARM and then it will work (cross compilation), 
but that can be a bit tricky to install, although not necessary. You need 
to build opencv from sources using cross compiler on PC.
Remember as well that the speed of execution is different on PC platform 
and BBB platform.
Again, I do editing and building and testing on the desktop PC and then 
transfer (SSH) sources to BBB to build them there. 
You can use whatever works better for you.
Jan 

On Thursday, January 8, 2015 5:12:34 PM UTC+11, aryaksa...@gmail.com wrote:

 Hi,
 I am using Eclipse in Windows pc. Is it possible to cross compile opencv 
 programs in windows eclipse?
 How code moved to the BBB? Using USB or through ssh?

 On Wednesday, January 7, 2015 2:26:27 PM UTC+5:30, aryaksa...@gmail.com 
 wrote:

 Hi,

 I am trying to stream video from Axis IP camera using BBB. I have 
 installed Eclipse IDE (luna) and i can remotely program BBB. Now i just 
 downloaded opencv and extracted all files. I need to include this into 
 eclipse ide. when i wrote a sample program and tried to run that one. But i 
 failed and an error is coming like the program is not specified. i have 
 included header files and libraries. anyone can tell me the correct 
 procedure for integrating opencv with Eclipse for bbb.

 thanks 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: Running C/C++ applications using OpenCV in Eclipse

2015-01-07 Thread janszymanski12345
http://derekmolloy.ie/beaglebone/setting-up-eclipse-on-the-beaglebone-for-c-development/
 


the way I do it is more primitive:
1) do the opencv application on desktop PC
2) move the source code into BBB and compile it natively on BBB

good luck,
Jan

On Wednesday, January 7, 2015 7:56:27 PM UTC+11, aryaksa...@gmail.com wrote:

 Hi,

 I am trying to stream video from Axis IP camera using BBB. I have 
 installed Eclipse IDE (luna) and i can remotely program BBB. Now i just 
 downloaded opencv and extracted all files. I need to include this into 
 eclipse ide. when i wrote a sample program and tried to run that one. But i 
 failed and an error is coming like the program is not specified. i have 
 included header files and libraries. anyone can tell me the correct 
 procedure for integrating opencv with Eclipse for bbb.

 thanks 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: Relay Alternative for a Low powered module on/off

2014-12-31 Thread janszymanski12345
Use a P-channel MOSFET (like *IRLML6401* 
http://www.irf.com/product-info/datasheets/data/irlml6401.pdf)

On Wednesday, December 31, 2014 8:36:19 PM UTC+11, Kevin D'Souza wrote:

 I have an application that needs a XBee and another module to be turned on 
 and off digitally via a BealgeboneBlack.

 The Setup is 2 XBee's and an application board is connected to the 
 BealgeboneBlack's 
 UART and a GPIO for the power state . When the System is Powered ON I 
 need 1 Xbee and the BealgeboneBlack to come on and do its routines. After 
 the system gets a specific signal from the Xbee (wirelessly from a 
 baseStation) the board has to turn on the other XBee and application board. 
 And when the operation is over, the XBee and Board is to be powered back 
 down. 

 I dont want to put them in sleep or low power state, just power both those 
 devices off.

 Was thinking of using a relay. But i cannot find a 3.3v 1A SMD Equivalent 
 system. I am looking for a SMD type of footprint to go on a very compact 
 board.

 What options do i have?

 The XBee needs around 1A Power and the Application board 500mA.


-- 
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: Enabling ttyO4 with DTR/DSR/RTS without the capemgr

2014-12-22 Thread janszymanski12345
Have a look at this thread How to make BBB pins work after Ubuntu Trusty 
install? 
https://groups.google.com/forum/embed/?place=forum/beagleboardshowsearch=trueshowpopout=trueshowtabs=truehideforumtitle=trueparenturl=http%3A%2F%2Fwww.beagleboard.org%2FCommunity%2FForums#%21category-topic/beagleboard/beaglebone-black/-gHgYDh5tV4
 
specifically the post by Pierre Kancir 
https://github.com/khancyr/dtb-rebuilder/wiki 
https://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fkhancyr%2Fdtb-rebuilder%2Fwikisa=Dsntz=1usg=AFQjCNHBKzKVwDPT3cKxgkY7lCzOcMibug
 
- it might help you. 
There is yet another change coming soon, as Robert indicated in the above 
posts.

good luck

Jan


On Monday, December 22, 2014 5:51:30 PM UTC+11, Thorsten von Eicken wrote:

 The thing I don't understand is why this stuff has to be so complicated. I 
 understand that the device tree is necessary to be able to support the 
 thousands of ARM SoC and boards, and that that's going to be complicated, 
 but the HW for the BBB is fixed. Would it be possible to start with a 
 simple file that lists the ~80 I/O pins of the BBB and next to each one has 
 a little selector for which of the ~8 possible functions one would like to 
 enable for this pin; and then compile this file into a DTS? It seems to me 
 that a flat file like this is something anyone can grok and edit. The DTS 
 files require hours of research and tinkering...
 Thorsten

 On Sunday, December 21, 2014 10:21:15 PM UTC-8, Thorsten von Eicken wrote:

 I just upgraded to kernel 3.14.4 and have now run headfirst into the lack 
 of capemgr. I had a nice DTS overlay file to enable ttyO4 with DTR/DSR/CTS 
 and that's now of course useless. Not only that, but the dts files in 
 https://github.com/RobertCNelson/dtb-rebuilder.git for ttyO4 are quite 
 different. Is there any documentation for this stuff or does anyone have a 
 DTS that includes the modem control signals?
 Thorsten



-- 
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: Having problems cloning eMMC, turns out 4GB != 4GB on different boards.

2014-12-22 Thread janszymanski12345
there is another thread here *Duplicate BeagleBone black setup* 
https://groups.google.com/forum/embed/?place=forum/beagleboardshowsearch=trueshowpopout=trueshowtabs=truehideforumtitle=trueparenturl=http%3A%2F%2Fwww.beagleboard.org%2FCommunity%2FForums#%21category-topic/beagleboard/beaglebone-black/hKuAggxij40
 dated 
Nov 28, where you will find a solution to your problem.
Good luck.
Jan

On Tuesday, December 23, 2014 3:18:38 AM UTC+11, BrianW wrote:

 Hello,
 I have a Beaglebone Black with 4GB eMMC and debian preinstalled, that I 
 got all setup for my application.  I got another 4GB BBB, and am trying to 
 clone eMMC from the first one to this new one, but am having problems.  My 
 current problem is the board that I have setup already has according to 
 fdisk  3925868544 bytes, but the new one is only 3867148288 bytes  
 which is like 59MB less.  First question is why are they different?  Second 
 question is anybody have any ideas on how to clone it?  Currently I am 
 booting with 8gb flash disk with debian installed on it.  I can't resize 
 parition because parted isn't installed and I do not have internet access 
 for the boards.  

 Thanks.
 B


-- 
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: Only able to read 0x0 or FF with spidev...

2014-12-11 Thread janszymanski12345
Hi,

1) I said your clock should not be much higher than the maximum clock, that 
a device can handle. It can be anything within the range. You are OK with 
1MHz, no need to change it.
SPI mode and pin mode on BBB are 2 different things, you are OK here as 
well.

2) Your software calls to  IOCtl will handle CS, just use a 3 bytes 
transfer. And yes the dummy value can be anything.

Change only one thing at a time. My guess is that by doing #2 above you 
will be fine, unless there are things you didn't tell me like hardware 
issues (wrong pinouts, wrong power supply, wrong voltage levels)

Jan




On Thursday, December 11, 2014 9:50:10 PM UTC+11, lambert...@gmail.com 
wrote:

 Hi Jan,

 Thanks for your answer. 

 1) 
 SPI_MODE : 
 I am currently using the SPI_MODE_1 so it seems ok (CPOL = 0x02 | CPHA = 
 0x01 == 0x01)

 I have also a MODE0 in my device tree file :
spi0_pins_s0: spi0_pins_s0 {
 pinctrl-single,pins = 
   0x150 0x10  /* spi0_sclk, OUTPUT_PULLUP | MODE0 */
   0x154 0x30  /* spi0_d0, INPUT_PULLUP | MODE0 */
   0x158 0x10  /* spi0_d1, OUTPUT_PULLUP | MODE0 */
   0x15c 0x10  /* spi0_cs0, OUTPUT_PULLUP | MODE0 */


 But it is not the same thing right ? In the datasheet of the Beaglebone 
 Black (link http://www.adafruit.com/datasheets/BBB_SRM.pdf), Page 72, 
 in the P9 header Pinout, I can see that the pin that I need is a spi with 
 particular mode. That's why I put MODE 0 here. 


 Speed Clock
 My speed is currently 1 000 000 (in my dtc file and in my code).
 I have no idea how to setup the speed, I see often 1 000 000 in example so 
 I took this value.
 So if I have a look on the datasheet and compute the min/max, its seems 
 that the value must be between 1.501 MHz and 2.252 MHz..

 So I will try to update the speed to see if I can see any differences in 
 my result

 2)
 But in fact in my case I have not to handle the CS or the fact to write 
 dummy byte right? Spidev handles the CS for me. Moreover If I use only one 
 struct spi_ioc_transfer to handle my message I always write the same number 
 of bytes that I read (because I have only 1 field len in the structure)

 If I follow your advice with a len of 3 bytes it means that at each iocl 
 call I will write/read 3 bytes. I guess that I must handle this dummy byte 
 if I used oldchool way like read/write syscall (But in my understanding I 
 cannot do it because I need to have the CS low between the write and the 
 read and I cannot set the CS from userland)

 3)
 I will follow your advise and use this method with only one structure with 
 a len set to 3.
 The dummy byte of 0xff it is just a convention right ? I can put 0x0 or 
 0x42 it will be the same result right ?

 Thanks again for your advice. 
 Arthur.



 Le mercredi 10 décembre 2014 22:49:10 UTC+1, janszyma...@gmail.com a 
 écrit :

 Hi Artur,

  Sorry to hear, you have problems, but usually there is something very 
 simple, that you might be doing wrong:

 1) Check you SPI setting. For your device you need CPOL=0 and CPHA=1 - 
 see page 8 of http://www.ti.com/lit/ds/symlink/ads1299.pdf and the max 
 freq of master clock 444ns - 2.252... MHz (please verify that)

 2) You need to understand a bigger picture, how the SPI works. In a 
 nutshell it is a Master/Slave arrangement, where the master always 
 generates the clock. In your case BBB is a master and ADS1299 is a slave. 
 The data on DIN, DOUT or MISO, MOSI lines flows both ways simultaneously. 
 2a) To perform the  write transaction, master sends a byte (bytes) 
 generating the signals CS, CLK and MOSI. At the same time MISO is coming 
 from slave device. You need to read the incoming data to flush the buffer, 
 even if it is (the data) meaningless. 
 2b) 
 To perform the read transaction, master sends a dummy data and redas the 
 response.

 3) In you case it depends on the transaction, but as you mention, you 
 need to sens 2 bytes and read one response, you do the followin:
 write 3 byes, specifically 2 command byte and one dummy byte (usually 
 0xff)  and read back 3 bytes. Ignore the first 2 bytes read and the third 
 one will be your valid data. All within the same transaction (one CS)

 REMEMBER: to read you need to perform a dummy write.
 As for your code, all version should work. I would use a simultaneous 
 read write of 3 bytes.

 Hope this will help.

 Jan






 On Thursday, December 11, 2014 4:28:37 AM UTC+11, lambert...@gmail.com 
 wrote:

 Saisissez le code ici...

 Hi Jan,

 Ok so I have done some progress I am almost done. My last issue is 
 purely a software issue.

 So first I found a first issue which was due to bad voltage. I was 
 supplying my slave thanks to the Beaglebone Black. I need a voltage of 5V 
 delivered by the VDD_5V. Thanks to an oscilloscope I was able to see that 
 the pin delivered 0V... In fact when you supply the BB by using the USB the 
 VDD_5V cannot be use. You must use the 5V jack 

 Thanks 

[beagleboard] Re: How to build ffmpeg for arm

2014-12-11 Thread janszymanski12345
http://derekmolloy.ie/building-ffmpeg-for-beaglebone-from-source/ 

On Thursday, December 11, 2014 2:57:39 PM UTC+11, earless wrote:

 I have an arm cross compiler on my ubuntu machine and tried to build ffmeg 
 libraries for arm but got the following error

 cd ffmpeg-2.5 
 ./configure --host=arm-linux-gnueabihf 
 Unknown option --host=arm-linux-gnueabihf

 I did read the ./configure --help file and there is an option 
 --arch=ARCH but im not sure how to set this or if its the correct option. 
 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.


Re: [beagleboard] How to make BBB pins work after Ubuntu Trusty install?

2014-12-10 Thread janszymanski12345
OK,

 Thanks Robert.
And thanks for your hard work contributing to the community.

I will have a detailed study later as my first look here 
https://github.com/cdsteinkuehler/beaglebone-universal-io 
(your last link) got me worried. It says:

Usage

Load the overlay as usual

echo cape-universaln  /sys/devices/bone_capemgr.*/slots

... but there is no specified above directory.

Anyhow, don't worry. I will leave it till later.

Cheers,

Jan

On Thursday, December 11, 2014 12:53:42 AM UTC+11, RobertCNelson wrote:

 On Wed, Dec 10, 2014 at 1:28 AM,  janszyma...@gmail.com javascript: 
 wrote: 
  Hi Robert, 
  
   There is a lot of confusion about how to make external hardware / 
 custom 
  capes to work with the latest kernel. 
  For people, who do not want to downgrade or will need to update the 
 kernel 
  sooner or later (like myself) 
  can you kindly point to a tutorial/reading/explanation how to do it? 
  That will save a lot of frequent questions and doubts about the issue. 
  Trying to search for related documentation didn't bring me anything. 

 Take a look at: 

 http://elinux.org/Beagleboard:Capes_3.8_to_3.14#Custom_dtb 

 There is a dozen examples in that repo: 

 spi/usart/adc: 

 https://github.com/RobertCNelson/dtb-rebuilder/blob/3.14-ti/src/arm/am335x-bone-basic-proto-cape.dtsi
  

 gpio/rtc/i2c: 

 https://github.com/RobertCNelson/dtb-rebuilder/blob/3.14-ti/src/arm/am335x-bone-rtc-01-00a1.dtsi
  


 The default: am335x-boneblack.dtb also supports most pins with 
 Charle's config-pin: 

 https://github.com/cdsteinkuehler/beaglebone-universal-io 

 (you can ignore the initial overlay note, as it's loaded by default.) 

 I'm not really planning to document v3.14.x further, as something 
 special is planned to be merged for v3.19-rc1. (if your following the 
 device-tree mainline list) 

 Regards, 

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


[beagleboard] Re: Only able to read 0x0 or FF with spidev...

2014-12-10 Thread janszymanski12345
Hi Artur,

 Sorry to hear, you have problems, but usually there is something very 
simple, that you might be doing wrong:

1) Check you SPI setting. For your device you need CPOL=0 and CPHA=1 - see 
page 8 of http://www.ti.com/lit/ds/symlink/ads1299.pdf and the max freq of 
master clock 444ns - 2.252... MHz (please verify that)

2) You need to understand a bigger picture, how the SPI works. In a 
nutshell it is a Master/Slave arrangement, where the master always 
generates the clock. In your case BBB is a master and ADS1299 is a slave. 
The data on DIN, DOUT or MISO, MOSI lines flows both ways simultaneously. 
2a) To perform the  write transaction, master sends a byte (bytes) 
generating the signals CS, CLK and MOSI. At the same time MISO is coming 
from slave device. You need to read the incoming data to flush the buffer, 
even if it is (the data) meaningless. 
2b) 
To perform the read transaction, master sends a dummy data and redas the 
response.

3) In you case it depends on the transaction, but as you mention, you need 
to sens 2 bytes and read one response, you do the followin:
write 3 byes, specifically 2 command byte and one dummy byte (usually 
0xff)  and read back 3 bytes. Ignore the first 2 bytes read and the third 
one will be your valid data. All within the same transaction (one CS)

REMEMBER: to read you need to perform a dummy write.
As for your code, all version should work. I would use a simultaneous read 
write of 3 bytes.

Hope this will help.

Jan






On Thursday, December 11, 2014 4:28:37 AM UTC+11, lambert...@gmail.com 
wrote:

 Saisissez le code ici...

 Hi Jan,

 Ok so I have done some progress I am almost done. My last issue is purely 
 a software issue.

 So first I found a first issue which was due to bad voltage. I was 
 supplying my slave thanks to the Beaglebone Black. I need a voltage of 5V 
 delivered by the VDD_5V. Thanks to an oscilloscope I was able to see that 
 the pin delivered 0V... In fact when you supply the BB by using the USB the 
 VDD_5V cannot be use. You must use the 5V jack 

 Thanks to that I can see to the oscilloscope that I sent the good message 
 to my slave (CS, SCLK, MOSI) are ok !! So now when I want to read a 
 register of my slave I can see the good answer on the oscilloscope on the 
 MISO pin. So eveyrthing seems to be great. I am able to send a command to 
 my slave and get the good answer. The problem is that I am not able to read 
 properly this value on my MISO pin.

 I found plenty of spidev example in c on the web.. So I implemented three 
 spidev code with three differents ways from the web. The three software get 
 me wrong value and not the same (so funny...)

 Code that I tried :

 One spio_ioc_transfer structure per bytes (crazy ???!)
 tx  rx in the same structure.

 static void read_register_value (unsigned char *data, int length, int fd)
 {
  struct spi_ioc_transfer spi[length];
  int i = 0;
  int retVal = -1;


 // one spi transfer for each byte


  for (i = 0 ; i  length ; i++)
  {
  spi[i].tx_buf= (unsigned long)(data + i); // transmit from data
  spi[i].rx_buf= (unsigned long)(data + i) ; // receive into data
  spi[i].len   = sizeof(*(data + i)) ;
  spi[i].delay_usecs   = 0 ;
  spi[i].speed_hz  = 100;
  spi[i].bits_per_word = 8 ;
  spi[i].cs_change = 0;
  }


  retVal = ioctl (fd, SPI_IOC_MESSAGE(length), spi) ;


  if(retVal  0)
  {
  perror(Problem transmitting spi data..ioctl);
  exit(1);
  }
 }


 Only one spi_ioc_transfer structure for rx and tx
 but use ioctl call for each byte

   
   struct spi_ioc_transfer tr = {
 .tx_buf = (unsigned long)spiregister,
 .rx_buf = (unsigned long)rx,
 .len = ARRAY_SIZE(spiregister),
 .delay_usecs = delay,
 .speed_hz = speed,
 .bits_per_word = bits,
 };


  // send command of 2 bytes
  // send the first byte
  spiregister[0] = 0x20
  ret = ioctl(fd, SPI_IOC_MESSAGE(1), tr);
  if (ret  1)
  pabort(Config : can't send spi message);
  sleep(1);


  // send the second byte
  spiregister[1] = 0x0;  // RREG of 1 register only
  ret = ioctl(fd, SPI_IOC_MESSAGE(1), tr);
  if (ret  1)
  pabort(Config : can't send spi message);
  sleep(1);




 Use a structure for rx and a structure for tx, but send all in the same 
 ioctl call.

  unsigned char buf_rx[10];
  unsigned char buf_tx[10];
  struct spi_ioc_transfer mesg[2];


  // write 2 bytes
  buf_tx[0] = OPT_CODE_RREG + ID_REG;
  buf_tx[1] = 0x0;
  mesg[0].tx_buf = (unsigned long)buf_tx;
  mesg[0].rx_buf = (unsigned long)NULL;
  mesg[0].len = 2;
  mesg[0].cs_change = 0;


  // read 1 bytes
  mesg[1].tx_buf = (unsigned long)NULL;
  mesg[1].rx_buf = (unsigned long)buf_rx;
  mesg[1].len = 1;
  mesg[1].cs_change = 0;


  ret = ioctl(fd, SPI_IOC_MESSAGE(2), mesg);
  if (ret  1)
  pabort(Config : can't send spi message);
  usleep(100);


 So I have a very dummy question. What is the good way to write/read from 
 the master with spidev in C.

 Requisite here :
 - Send a 

Re: [beagleboard] How to make BBB pins work after Ubuntu Trusty install?

2014-12-10 Thread janszymanski12345
Roger that

On Thursday, December 11, 2014 8:22:18 AM UTC+11, RobertCNelson wrote:

 On Wed, Dec 10, 2014 at 3:19 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  OK, 
  
   Thanks Robert. 
  And thanks for your hard work contributing to the community. 
  
  I will have a detailed study later as my first look here 
  https://github.com/cdsteinkuehler/beaglebone-universal-io 
  (your last link) got me worried. It says: 
   
  
  Usage 
  
  Load the overlay as usual 
  
  echo cape-universaln  /sys/devices/bone_capemgr.*/slots 
  
  ... but there is no specified above directory. 

 That's the part where i mentioned: (you can ignore the initial 
 overlay note, as it's loaded by default.) it's built-in to the 
 v3.14.x base dtb file.. 

 Regards, 

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


[beagleboard] Re: How Device Tree Overlay Works

2014-12-08 Thread janszymanski12345
A good tutorial here:
http://derekmolloy.ie/gpios-on-the-beaglebone-black-using-device-tree-overlays/ 

simple example:
cd /sys/class/gpio
cd gpio60
echo 60  export
echo out  direction
echo 1  value

good luck
Jan






On Tuesday, December 9, 2014 1:41:10 AM UTC+11, Hemant Kapoor wrote:

 Hello All, 

 I am a newbie to Linux and trying to figure out how device tree overlay 
 works...

 So after googling for many days, I came up with below device tree: 

 /dts-v1/;
 /plugin/;

 / {
 compatible = ti,beaglebone, ti,beaglebone-black;

 /* identification */
 part-number = MY-LED;
 version = 00A0;

 /* state the resources this cape uses */
 exclusive-use =
 /* the pin header uses */
 P9.12,/* GPIO*/
 /* the hardware ip uses */
 gpio0;

 fragment@0 {
 target = am33xx_pinmux;
 __overlay__ {
 bb_mygpio_pins: pinmux_bb_mygpio_pins {
 pinctrl-single,pins = 
 0x870 0x07/* 
 output mode | MODE7, see Pin_Configuration.pdf in BBB */
 ;
 };
 };
 };

 fragment@1 {
 target = ocp;/* not sure why it is not gpio0 */
 __overlay__ {
 status = okay;
 pinctrl-names = default;
 pinctrl-0 = bb_mygpio_pins;
 };
 };
 };


 I was able to build the dtc and generated MY-LED-00A0.dtbo

 I then copied the MY-LED-00A0.dtbo to /lib/firmware

 Then i echoed it to slots: 
 echo MY-LED  $SLOTS

 and cat $SLOTS gives me below result: 

 root@beaglebone:/lib/firmware# cat $SLOTS 
  0: 54:PF--- 
  1: 55:PF--- 
  2: 56:PF--- 
  3: 57:PF--- 
  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
  5: ff:P-O-- Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
  6: ff:P-O-- Bone-Black-HDMIN,00A0,Texas Instrument,BB-BONELT-HDMIN
  9: ff:P-O-L Override Board Name,00A0,Override Manuf,MY-LED

 By looks of this, MY_LED seems to be loaded...


 The main confusion is how can I use MY-LED?
 Where are the files for MY-LED present?

 Any help or guidance is much appreciated.



-- 
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: Servo PWM: Getting IOError: [Errno 2] No such file or directory: '/slots'

2014-12-07 Thread janszymanski12345
I don't know if it is done in py library, if not then you need to load the 
corresponding overlay: (see  http://digital-drive.com/?p=146) beforehand
root@beaglebone:~# echo am33xx_pwm  /sys/devices/bone_capemgr.8/slots 
root@beaglebone:~# echo bone_pwm_P8_13  /sys/devices/bone_capemgr.8/slots
Jan



On Sunday, December 7, 2014 1:44:02 PM UTC+11, Sid Raj wrote:


 Hi,

 On my BBB running Ubuntu 14 I am using adafruit py libs to for servo 
 control. But I get the following error. Same with P9_14. Any idea why I am 
 getting this and what I should do to make it go away? Thanks a lot!

  import Adafruit_BBIO.PWM as PWM

  PWM.start(P8_13, 95.0, 60)

  

 IOError: [Errno 2] No such file or directory: '/slots'


 Sid


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


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-12-04 Thread janszymanski12345
Jon,

 Thank you for your valuable input.
I will try it soon and let you know.
The obvious question already is which one will take precedence in loading:
the overlay defined in the kernel or the one handled by the cape manager?

Cheers,

Jan

On Friday, December 5, 2014 5:34:44 AM UTC+11, Jon E wrote:

 Hi Jan, 

 I had another look at this, was able to replicate what you are seeing, 
 and think I know what's going on.. 

 The part-number 'bone_pwm_P8_13' is already included in the kernel 
 build. I'm not really sure of the mechanics, but when doing a build from 
 the git repository, all the .dts files in the /firmware/capes folder get 
 compiled to individual .dtbo files, and from there into object files, 
 and then combined into a single built-in.o file. 

 The end result of this appears to be that putting an overlay file for 
 one of these built-in part-numbers into /lib/firmware doesn't achieve 
 anything, it just doesn't get read (even if you increment the version). 

 Anyway, it's an easy fix - once you know what's going on!! You should 
 just need to change the part-number to something else unique (and the 
 file name to suit), and then the options can be set in your overlay as 
 you'd expect.. 

 Hope this helps, 
 Jon. 


 On 26/11/14 10:11, janszyma...@gmail.com javascript: wrote: 
  Good idea, thanks. I will try it. I think the positive pulse will be so 
  short that it will not be able to move the motor. 
  
  On Wednesday, November 26, 2014 8:29:31 PM UTC+11, Jon E wrote: 
  
  I'm not sure about that. Jan said before that it's only driven high 
  after loading the PWM driver, and the processor datasheet shows ball 
  T10 (P8_13) as driven low during/after reset. 
  
  Jan, not ideal, but to disable the output sooner you could load the 
  overlay through cape manager, and then write 0 to the run parameter 
  immedately afterwards. But I still think the correct approach is to 
  look at the devcetree/driver code and see why those parameters are 
  having no affect.. 
  
  Regards, 
  Jon 



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


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-12-04 Thread janszymanski12345
Thanks Robert,

Is there a way to overwrite it?
How can I tell which ones are builtin (so I can select another PWM module 
and pin)?

Jan

On Friday, December 5, 2014 8:39:00 AM UTC+11, RobertCNelson wrote:

 On Thu, Dec 4, 2014 at 3:37 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  Jon, 
  
   Thank you for your valuable input. 
  I will try it soon and let you know. 
  The obvious question already is which one will take precedence in 
 loading: 
  the overlay defined in the kernel or the one handled by the cape 
 manager? 

 The one built-in.. 

 Regards, 

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


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-12-04 Thread janszymanski12345
OK, I did the renaming from bone_pwm_P8_13-00A0.*  into 
bone_pwm_test-00A0.* and after reboot I have: 

in slots:
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS
 9: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_eqep2b
10: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_test
11: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm

but in  /sys/devices/ocp.3/pwm_test_P8_13.16 I have only:

root@beaglebone:/sys/devices/ocp.3/pwm_test_P8_13.16# ls
modalias  power  subsystem  uevent

My bone_pwm_test-00A0.dts and bone_pwm_test-00A0.dtb0 are in /lib/firmware
Do I need to make any changes to them after all (as the renaming only 
doesn't work)?

Jan




On Friday, 5 December 2014 09:10:53 UTC+11, RobertCNelson wrote:

 On Thu, Dec 4, 2014 at 4:09 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  Thanks Robert, 
  
  Is there a way to overwrite it? 

 Rename your local version.. 

  How can I tell which ones are builtin (so I can select another PWM 
 module 
  and pin)? 

 You can see them here: 

 https://github.com/beagleboard/linux/tree/3.8/firmware/capes 

 Regards, 

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


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-12-04 Thread janszymanski12345
Hi Jon,
Thanks, that works and behaves exactly as I need.
Jan

On Friday, 5 December 2014 10:54:39 UTC+11, Jon E wrote:

 I used roughly the following process; 

 1) grab the original source file  copy to a local version 

 wget 

 https://raw.githubusercontent.com/beagleboard/linux/3.8.13-bone66/firmware/capes/bone_pwm_P8_13-00A0.dts
  

 cp bone_pwm_P8_13-00A0.dts bone_pwm_local-00A0.dts 

 2) change the part-number in your local version of the .dts file 

  part-number = bone_pwm_P8_13; 
 --- 
   part-number = bone_pwm_local_P8_13; 

 3) compile  copy to /lib/firmware 

 dtc -O dtb -o bone_pwm_local-00A0.dtbo -b 0 -@ bone_pwm_local-00A0.dts 

 cp bone_pwm_local-00A0.dtbo /lib/firmware/ 

 4) load the am33xx_pwm overlay, plus your local config for your pin 

 echo am33xx_pwm  /sys/devices/bone_capemgr.*/slots 
 echo bone_pwm_local /sys/devices/bone_capemgr.*/slots 

 Those steps should be enough; 

 root@beaglebone:~# ls /sys/devices/ocp.*/pwm_test_P8_13.*/ 
 driverduty  modaliasperiodpolarity  power  run 
  subsystem  uevent 

 Regards, 
 Jon 


 On 04/12/14 23:21, janszyma...@gmail.com javascript: wrote: 
  OK, I did the renaming from bone_pwm_P8_13-00A0.*  into 
  bone_pwm_test-00A0.* and after reboot I have: 
  
  in slots: 
0: 54:PF--- 
1: 55:PF--- 
2: 56:PF--- 
3: 57:PF--- 
4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G 
5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI 
7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1 
8: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS 
9: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_eqep2b 
  10: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_test 
  11: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm 
  
  but in  /sys/devices/ocp.3/pwm_test_P8_13.16 I have only: 
  
  root@beaglebone:/sys/devices/ocp.3/pwm_test_P8_13.16# ls 
  modalias  power  subsystem  uevent 
  
  My bone_pwm_test-00A0.dts and bone_pwm_test-00A0.dtb0 are in 
 /lib/firmware 
  Do I need to make any changes to them after all (as the renaming only 
  doesn't work)? 
  
  Jan 



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


Re: [beagleboard] SPI : More CS lines

2014-12-03 Thread janszymanski12345
Have a look at the example here http://www.nagavenkat.adurthi.com/ 
titled  SPI communication: BeagleBone Black( as Master) to 4 Arduinos( as 
Slaves ) http://www.nagavenkat.adurthi.com/?p=479
Hope this will help,
Jan

On Wednesday, December 3, 2014 7:35:38 PM UTC+11, mota...@gmail.com wrote:

 Thank you for your answer Mickae1.

 But I know how to use SPI with device tree overlay (I use it that way for 
 my first lcd). I was wondering if it could be possible to declare a simple 
 GPIO pin (via DTO for example) as a CS one. It would allow me to work with 
 fbtft driver without having to alter it.

 Never mind, I am writing a new driver (called by dto) to emulate more CS 
 pins. I will see if it can work at the required speed.

 Le mardi 2 décembre 2014 16:01:03 UTC+1, Mickae1 a écrit :

 your answer :


 http://hipstercircuits.com/enable-spi-with-device-tree-on-beaglebone-black-copy-paste/

 Enjoy,

 Le Tue Dec 02 2014 at 15:58:53, mota...@gmail.com a écrit :

 Hi,

 I have to connect 2 lcd on a BBB via SPI interfaces (I use fbtft 
 driver). I can only use SPI0 because SPI1 pins are used by I2C for cape 
 eeprom.
 The problem is that SPI0 has only one CS pin. Is it possible to tell the 
 SPI driver to use a GPIO pin as another CS line ?
 Am I forced to write a full driver to emulate CS with a GPIO pin ?

 Thanks in advance for your help.

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


[beagleboard] Re: Having problems cloning eMMC

2014-12-02 Thread janszymanski12345
there is another thread here *Duplicate BeagleBone black setup* 
https://groups.google.com/forum/embed/?place=forum/beagleboardshowsearch=trueshowpopout=trueshowtabs=truehideforumtitle=trueparenturl=http%3A%2F%2Fwww.beagleboard.org%2FCommunity%2FForums#%21category-topic/beagleboard/beaglebone-black/hKuAggxij40
 dated 
Nov 28, where you will find a solution to your problem.
Good luck.
Jan

On Wednesday, December 3, 2014 6:32:08 AM UTC+11, br...@forceconstant.com 
wrote:

 I am trying to clone an existing BBB, so my first try is using the scripts 
 on http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents .  So 
 first thing I notice is the .img file created was only 2GB, whereas this is 
 a newer BBB that has 4GB eMMC.  So when I updated script to write the img 
 to new BBB, it no longer boots from eMMC.  i would like to make exact 
 copies including uENV.txt, etc.  Does anyone know why this is not working?

 The read command script is 

 #!/bin/sh
 echo timer  /sys/class/leds/beaglebone\:green\:usr0/trigger 
 dd if=/dev/mmcblk1 of=/mnt/BeagleBoneBlack-eMMC-image-$RANDOM.img bs=10M 
 sync
 echo default-on  /sys/class/leds/beaglebone\:green\:usr0/trigge


-- 
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: Duplicate BeagleBone black setup

2014-11-27 Thread janszymanski12345
Graham,

 You saved me a lot of time and frustration. Thank you, much appreciate it.
My teacher at uni used to quote Alber Einstein - “If you can't explain it 
to a six year old, you don't understand it yourself.” 
Your comprehensive instruction is easy and logical.
I am getting a new uSD cards for that exercise and I had a feeling I should 
be fine from here.
In a meantime, I have a an SD card console image, that you recommended and 
as a surprise it has to SSH on USB.
I put a FTDI cable and I see it is booting and outputs to the serial 
console.
Can I easily add the SSH over USB to that image and if yes, how?

Thank again

Jan

On Friday, November 28, 2014 3:13:40 AM UTC+11, Graham wrote:

 Jan:

 I also had problems restoring and copying a BBB image for the Rev.C (4 GB 
 eMMC) and
 the new larger Debian distributions, particularly if you have added 
 additional code and
 updates to the distribution for your application.

 I suspect that the existing instructions/methods assume smaller code and 
 memory sizes. 

 I have been successful duplicating a Debian 8 (jessie) that has had 
 upgrades
 and my application code added to it on a Rev.C BBB.

 1.) Use a uSD card larger than 4 GB.  You will need something larger than 
 4 GB to 
 save a 4 GB image using dd.   I used 16 GB, but you can not go larger than
 32 GB at this time.  

 2.) Install one of the Debian distributions on the uSD card.  I chose
 bone-debian-7.7-console-armhf-2014-11-19-2gb.img

 3.) If you examine the installation, it is using less than 2 GB of the 
 card.
 Use Gparted to expand the partition size to the full size of the card.  In 
 my case,
 16 GB, which gives me room on the card to hold multiple 4 GB .img files.

 4.) Plug the uSD card into the BBB for which you want to copy the eMMC and
 apply power. The console distribution I chose boots straight onto the uSD
 card, without pressing the S2 button.  If you use some other distribution,
 things may work differently.

 5.) Sign in as 'root' and enter
 dd if=/dev/mmcblk1 of=/mnt/BeagleBoneBlack-eMMC-image-$RANDOM.img bs=10M

 6.) Wait 9 minutes for the command to return to the command line. It takes 
 about
 2 minutes per GB to build the .img file. type sync. The completed file 
 will be located
 at /mnt/   The .img file will be slightly less than 4 GB in size

 7.) Shutdown this BBB, and plug the uSD card in the target BBB.

 8.) Power up the target BBB and sign in as root, and type on the command 
 line
 dd if=/mnt/BeagleBoneBlack-eMMC-image-NUMBER.img of=/dev/mmcblk1 bs=10M
 where NUMBER is the random number of the img that was generated in step 
 (5).

 9.) Wait 9 minutes for the command to return, sync, shutdown, remote uSD 
 card
 and re-power the target.  The target should now be a duplicate.

 Other thoughts:
 You can compress the img file on the BBB by
 xz BeagleBoneBlack-eMMC-image-NUMBER.img
 BUT it will take 2 Hours on the BBB to compress a 4 GB file, when booted 
 on an uSD card.
 You are much better off moving the file to an external machine to compress 
 it.

 You can do a SSH copy of the img file to an external (Linux) machine via
 the Ethernet connection by doing something like:
 scp root@192.168.1.200:/mnt/BeagleBoneBlack-eMMC-image-NUMBER.img  
 /home/your-name/Images/
 It will transfer at around 8 MB per second, if the BBB is otherwise idle.

 --- Graham

 ==



 On Wednesday, November 26, 2014 8:19:30 PM UTC-6, janszyma...@gmail.com 
 wrote:

 I was able to save the contents of eMMC as an *.img following this link 
 http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents 
 http://www.google.com/url?q=http%3A%2F%2Felinux.org%2FBeagleBone_Black_Extracting_eMMC_contentssa=Dsntz=1usg=AFQjCNGM_Ak68pR603ZNyLkvVfB48DSN2A
  
 ,
 into 4GB FAT32 uSD card, no button pressing. After that I modified 
 autorun.sh as per instruction from the same side.
 The restore on the same board doesn't hapen, however. Any hints?
 Jan

 On Sunday, 23 November 2014 01:22:06 UTC+11, rspie...@gmail.com wrote:

 Just in case somebody finds it useful:

 The duplication has worked now!
 I did it according to first stack overflow answer and the reference here:
 http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents 
 http://www.google.com/url?q=http%3A%2F%2Felinux.org%2FBeagleBone_Black_Extracting_eMMC_contentssa=Dsntz=1usg=AFQjCNGM_Ak68pR603ZNyLkvVfB48DSN2A

 The preparation of the microSD card can only be done under a Linux 
 environment - at least I did not manage to prepare it under Windows.
 The root file system was now 2GB in size - although the Rev C has 4 GB.
 Resizing was done exactly like in

 http://blog.asiantuntijakaveri.fi/2014/05/flashing-beaglebone-black-rev-b-2gb.html

  
 What you want to do next is resize root partition to fill entire eMMC, 
 otherwise you're leaving few hunded megabytes of capacity unused and rev B 
 internal 2GB eMMC is already a bit on small side for full blown Linux 
 install. Below steps will of course work for SD card rootfs as well.

 # Switch 

Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-11-26 Thread janszymanski12345
Good idea, thanks. I will try it. I think the positive pulse will be so 
short that it will not be able to move the motor.

On Wednesday, November 26, 2014 8:29:31 PM UTC+11, Jon E wrote:

 I'm not sure about that. Jan said before that it's only driven high after 
 loading the PWM driver, and the processor datasheet shows ball T10 
 (P8_13) as driven low during/after reset. 

 Jan, not ideal, but to disable the output sooner you could load the 
 overlay through cape manager, and then write 0 to the run parameter 
 immedately afterwards. But I still think the correct approach is to look 
 at the devcetree/driver code and see why those parameters are having no 
 affect..

 Regards,
 Jon

 On Wednesday, 26 November 2014 03:43:21 UTC, William Hermans wrote:

 IN short, use external hardware or do something cleaver like Peter G, and 
 reverse polarity. *OR* have an external switch that switches the PWM line 
 off, until you tell it to turn on. simples ?



-- 
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: Duplicate BeagleBone black setup

2014-11-26 Thread janszymanski12345
Hi,

 I do find it useful, as I have problem to do it myself.
Questions:
1) what is the format of SD card? FAT16 - (can be max 4GB) or FAT32? I am 
using Gparted on VM Ubuntu, what are the flags - I set vboot and lba
2) do you need to hold the S2 button while powering BBB as described  here 
https://stackoverflow.com/questions/17834561/duplicating-identical-beaglebone-black-setups
 

or not as described here 
http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents 
3) is there a sequense you need to copy extracted files into SD card or 
doesn't matter?

So far nothing works for me.
Can you share your way?

Jan


On Sunday, November 23, 2014 1:22:06 AM UTC+11, rspie...@gmail.com wrote:

 Just in case somebody finds it useful:

 The duplication has worked now!
 I did it according to first stack overflow answer and the reference here:
 http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents

 The preparation of the microSD card can only be done under a Linux 
 environment - at least I did not manage to prepare it under Windows.
 The root file system was now 2GB in size - although the Rev C has 4 GB.
 Resizing was done exactly like in

 http://blog.asiantuntijakaveri.fi/2014/05/flashing-beaglebone-black-rev-b-2gb.html

  
 What you want to do next is resize root partition to fill entire eMMC, 
 otherwise you're leaving few hunded megabytes of capacity unused and rev B 
 internal 2GB eMMC is already a bit on small side for full blown Linux 
 install. Below steps will of course work for SD card rootfs as well.

 # Switch to root
 sudo su -

 # Delete and recreate root partition using entire disk
 # internal eMMC is called mmcblk0 now as we don't have any SD cards 
 connected
 fdisk /dev/mmcblk0
 # Delete partition #2 (type d and then 2)
 # Create new partition (type n and hit enter four times to accept 
 defaults)
 # Write changes (type w)

 # Reboot so new partition table gets read
 reboot

 # Login again as root and resize root fs
 resize2fs /dev/mmcblk0p2

  ---

 Works like a charm!


-- 
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: Duplicate BeagleBone black setup

2014-11-26 Thread janszymanski12345
I was able to save the contents of eMMC as an *.img following this link 
http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents 
http://www.google.com/url?q=http%3A%2F%2Felinux.org%2FBeagleBone_Black_Extracting_eMMC_contentssa=Dsntz=1usg=AFQjCNGM_Ak68pR603ZNyLkvVfB48DSN2A
 
,
into 4GB FAT32 uSD card, no button pressing. After that I modified 
autorun.sh as per instruction from the same side.
The restore on the same board doesn't hapen, however. Any hints?
Jan

On Sunday, 23 November 2014 01:22:06 UTC+11, rspie...@gmail.com wrote:

 Just in case somebody finds it useful:

 The duplication has worked now!
 I did it according to first stack overflow answer and the reference here:
 http://elinux.org/BeagleBone_Black_Extracting_eMMC_contents 
 http://www.google.com/url?q=http%3A%2F%2Felinux.org%2FBeagleBone_Black_Extracting_eMMC_contentssa=Dsntz=1usg=AFQjCNGM_Ak68pR603ZNyLkvVfB48DSN2A

 The preparation of the microSD card can only be done under a Linux 
 environment - at least I did not manage to prepare it under Windows.
 The root file system was now 2GB in size - although the Rev C has 4 GB.
 Resizing was done exactly like in

 http://blog.asiantuntijakaveri.fi/2014/05/flashing-beaglebone-black-rev-b-2gb.html

  
 What you want to do next is resize root partition to fill entire eMMC, 
 otherwise you're leaving few hunded megabytes of capacity unused and rev B 
 internal 2GB eMMC is already a bit on small side for full blown Linux 
 install. Below steps will of course work for SD card rootfs as well.

 # Switch to root
 sudo su -

 # Delete and recreate root partition using entire disk
 # internal eMMC is called mmcblk0 now as we don't have any SD cards 
 connected
 fdisk /dev/mmcblk0
 # Delete partition #2 (type d and then 2)
 # Create new partition (type n and hit enter four times to accept 
 defaults)
 # Write changes (type w)

 # Reboot so new partition table gets read
 reboot

 # Login again as root and resize root fs
 resize2fs /dev/mmcblk0p2

  ---

 Works like a charm!


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


Re: [beagleboard] a question about asking questions

2014-11-25 Thread janszymanski12345
Thanks Jason,

 There is a hardware solution to my problem in a form of a tiny logic 
08 (AND gate). The PWM is connected to one input and an extra ENABLE signal 
from GPIO is connected to another input. On the output the resulting gated 
PWM signal will appear when the ENABLE signal goes high from the 
application.
The solution however is non-elegant and can be avoided if I had a better 
knowledge of the software - in this case a PWM driver and it's interaction 
with a device tree overlay.
The initial values of pins on boot is a thing to be aware of in any system.
Thinking that there are people using PWM on BBB, including the designers of 
PWM capes and they are facing the same issue, there was my hope of finding 
a software solution. And yes, I did a very extensive search beforehand. And 
I am grateful and appreciated for the help received, and if possible I do 
contribute back to community within my limits.

Cheers

Jan


On Tuesday, November 25, 2014 8:28:08 PM UTC+11, Jason Lange wrote:



 On Mon, Nov 24, 2014 at 11:05 PM, janszyma...@gmail.com javascript: 
 wrote:

 Hi,

  I have still unresolved issue (no answer here for how to make pwm_P8_13 
 low on boot? ) and therefore
 trying to figure out if my question is:
 - too easy
 - too difficult
 - not interesting enough
 - other?

 As I see there is generally a number of unanswered questions, would it be 
 possible for the moderator to give an indication in a simple style,
 something like: too easy, google it yourself or whatever, to avoid 
 frustration.

 Jan



 Is there a moderator?  I don't know.

 But for myself, your question is both too difficult (I don't know the 
 answer) and not interesting enough (It isn't a problem that I need to solve 
 for myself).  Everybody here is going to have a different response, so 
 having a moderator decide is probably a bit ham fisted.  I can imagine an 
 external hardware solution because I do circuits, but it'd be more elegant 
 if someone helped you find a proper on-board software solution.  If you 
 find a solution on your own please post it.  If you get desperate enough to 
 start soldering email me and I'll try to help.

 Cheers.




-- 
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: how to make pwm_P8_13 low on boot?

2014-11-25 Thread janszymanski12345
 Thanks Peter, 

 I have exercised that option already before posting and somehow it didn't 
work.

Changing the parameters (and recompiling) didn't change the default values, 
so my conclusion is that they might be
 
somehow hard-coded in a kernel driver.
Jan

On Monday, 24 November 2014 09:58:19 UTC+11, janszyma...@gmail.com wrote:

 Hi,

 I'm trying to use pwm on BBB
 Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
 GNU/Linux
 I have modified uEnv.tx
 ...

 cape_enable=capemgr.enable_partno=BB-UART1,SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
 ...
 and /etc/default/capemgr
 ...
 # Options to pass to capemgr
 CAPE=SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
 ...

 after booting I have correctly in slots
  0: 54:PF--- 
  1: 55:PF--- 
  2: 56:PF--- 
  3: 57:PF--- 
  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
  5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
  7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
 10: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_P8_13
 11: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
 12: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS
 13: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_eqep2b

 and pwm works, but,

 - after power on the logic level on P8_13 is low (as I want it to be)
 - after that (loading dtc overlay) the logic level on P8_13 become high (I 
 dont want it)

 My attempt to modify  /lib/firmware/bone_pwm_P8_13-00A0.dts and then 
 recompiling doesn't effect any of:
 /sys/devices/ocp.3/pwm_test_P8_13.11/ duty, period, polarity, run, 

 As I don't want the motor connected to PWM to run, before the applications 
 takes over the control,
 can anyone help me to achieve it?

 Jan





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


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-11-25 Thread janszymanski12345
 Thanks Jason,

 There is a hardware solution to my problem in a form of a tiny logic 
08 (AND gate). The PWM is connected to one input and an extra ENABLE signal 
from GPIO is connected to another input. On the output the resulting gated 
PWM signal will appear when the ENABLE signal goes high from the 
application.
The solution however is non-elegant and can be avoided if I had a better 
knowledge of the software - in this case a PWM driver and it's interaction 
with a device tree overlay.

The inverter is not a solution as on boot initial pin value is low and 
after the device tree is loaded it jumps high until the application 
software (controlling pwm) takes over.
I will use it as a temporary solution.

Cheers

Jan


On Wednesday, 26 November 2014 08:45:34 UTC+11, Jason Lange wrote:



 - after power on the logic level on P8_13 is low (as I want it to be)
 - after that (loading dtc overlay) the logic level on P8_13 become high 
 (I dont want it)


 Sorry, I missed this.  The 74HC04 would work if it started high and stayed 
 that way.  Do you need to use an overlay?  Maybe if you modified the 
 initial device tree, perhaps with Roberts system for the 3.14 kernel it 
 would start high and you could flip 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.


Re: [beagleboard] Re: how to make pwm_P8_13 low on boot?

2014-11-25 Thread janszymanski12345
thanks, unfortunately didn't work for me.

On Wednesday, 26 November 2014 10:02:27 UTC+11, Peter Gregory wrote:

 I had the same issue driving RBG Leds. 
 They were starting turned on full force since the PWM was driving high on 
 boot. 
 Changing the polarity worked for me. 

 Is it possible the order of overlays is undoing your changes to 
 bone_pwm_P8_13? 
 Instead of: 

 cape_enable=capemgr.enable_partno=BB-UART1,SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
  


 Maybe try it with your modifications being the last overlay to load: 

 cape_enable=capemgr.enable_partno=BB-UART1,SPI-4SS,bone_eqep2b,am33xx_pwm,bone_pwm_P8_13
  



-- 
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] a question about asking questions

2014-11-24 Thread janszymanski12345
Hi,

 I have still unresolved issue (no answer here for how to make pwm_P8_13 
low on boot? ) and therefore
trying to figure out if my question is:
- too easy
- too difficult
- not interesting enough
- other?

As I see there is generally a number of unanswered questions, would it be 
possible for the moderator to give an indication in a simple style,
something like: too easy, google it yourself or whatever, to avoid 
frustration.

Jan

-- 
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 make pwm_P8_13 low on boot?

2014-11-23 Thread janszymanski12345
Hi,

I'm trying to use pwm on BBB
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
GNU/Linux
I have modified uEnv.tx
...
cape_enable=capemgr.enable_partno=BB-UART1,SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
...
and /etc/default/capemgr
...
# Options to pass to capemgr
CAPE=SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
...

after booting I have correctly in slots
 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
10: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_P8_13
11: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
12: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS
13: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_eqep2b

and pwm works, but,

- after power on the logic level on P8_13 is low (as I want it to be)
- after that (loading dtc overlay) the logic level on P8_13 become high (I 
dont want it)

My attempt to modify  /lib/firmware/bone_pwm_P8_13-00A0.dts and then 
recompiling doesn't effect any of:
/sys/devices/ocp.3/pwm_test_P8_13.11/ duty, period, polarity, run, 

As I don't want the motor connected to PWM to run, before the applications 
takes over the control,
can anyone help me to achieve it?

Jan



-- 
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: how to make pwm_P8_13 low on boot?

2014-11-23 Thread janszymanski12345
the values in /sys/devices/ocp.3/pwm_test_P8_13/11 are:
duty 0
period 50
polarity 1
run 1
after the device tree overlay is loaded.
Does anyone know if possible and if yes how to change them (the default 
values)?
The changes to corresponding *.dtbo file doesn't change them.


On Monday, 24 November 2014 09:58:19 UTC+11, janszyma...@gmail.com wrote:

 Hi,

 I'm trying to use pwm on BBB
 Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
 GNU/Linux
 I have modified uEnv.tx
 ...

 cape_enable=capemgr.enable_partno=BB-UART1,SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
 ...
 and /etc/default/capemgr
 ...
 # Options to pass to capemgr
 CAPE=SPI-4SS,bone_eqep2b,bone_pwm_P8_13,am33xx_pwm
 ...

 after booting I have correctly in slots
  0: 54:PF--- 
  1: 55:PF--- 
  2: 56:PF--- 
  3: 57:PF--- 
  4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
  5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
  7: ff:P-O-L Override Board Name,00A0,Override Manuf,BB-UART1
 10: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_pwm_P8_13
 11: ff:P-O-L Override Board Name,00A0,Override Manuf,am33xx_pwm
 12: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS
 13: ff:P-O-L Override Board Name,00A0,Override Manuf,bone_eqep2b

 and pwm works, but,

 - after power on the logic level on P8_13 is low (as I want it to be)
 - after that (loading dtc overlay) the logic level on P8_13 become high (I 
 dont want it)

 My attempt to modify  /lib/firmware/bone_pwm_P8_13-00A0.dts and then 
 recompiling doesn't effect any of:
 /sys/devices/ocp.3/pwm_test_P8_13.11/ duty, period, polarity, run, 

 As I don't want the motor connected to PWM to run, before the applications 
 takes over the control,
 can anyone help me to achieve it?

 Jan





-- 
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: broken sd card reader, need help flashing!!!

2014-11-17 Thread janszymanski12345
https://www.sparkfun.com/products/13004 
Is your time and frustration worth more than a cost of SD card reader?

On Monday, November 17, 2014 3:21:43 AM UTC+11, russel...@gmail.com wrote:

 ok so i have broken pin 3 on my sd card reader on accident and need to 
 flash my bbb to use my replicape. however i cant seem to find any other 
 method to flash a bbb other than using an sd card. this is kind of 
 depressing considering i dont want to scrap the board because it still 
 works i just cant flash it through the normal sd card method. every bit of 
 help would be appreciated. what i really need is a step by step on how to 
 flash my bbb without an sd card. i have access to ubuntu and win7 64 bit 
 pc. im not a complete noob at this but by no means am i an expert so please 
 go easy on me here.


-- 
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: Only able to read 0x0 or FF with spidev...

2014-11-12 Thread janszymanski12345
Hi Arthur,

BBB is a very time consuming hobby.
Take it ease, relax, go for a walk and when you return, try:

1) try your project as root 
if no luck follow my (working) path

2) Try to repeat my settings and see if it works for you.
I wasn't able to build the original Linux spidev_test, so...

What I have is:
 
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
GNU/Linux

Following the instruction from here 
http://www.nagavenkat.adurthi.com/2014/02/spi-communication-beaglebone-black-as-master-to-arduino-as-slave/
 

I created SPI-4SS-00A0.dts and compiled it into SPI-4SS-00A0.dts following 
exactly the instruction

By doing that you should have in /sys/devices/bone_capemgr.9/slots

 0: 54:PF--- 
 1: 55:PF--- 
 2: 56:PF--- 
 3: 57:PF--- 
 4: ff:P-O-L Bone-LT-eMMC-2G,00A0,Texas Instrument,BB-BONE-EMMC-2G
 5: ff:P-O-L Bone-Black-HDMI,00A0,Texas Instrument,BB-BONELT-HDMI
 8: ff:P-O-L Override Board Name,00A0,Override Manuf,SPI-4SS

To test it I obtained and created files in /opt/test/test2 as attached:
build
SimpleGPIO.cpp - from Derek Molloy 
https://github.com/derekmolloy/beaglebone/blob/master/SimpleGPIO.cpp
SimpleGPIO.h - from Derek Molloy 
https://github.com/derekmolloy/beaglebone/blob/master/SimpleGPIO.h 
test2.cpp - mine main file

unzip attached and compile 

root@beaglebone:/opt/test/test2# ./build
Building test2 - J.Sz.
root@beaglebone:/opt/test/test2#
 
then run (have P9-18 and P9-21 connected as loopback)

root@beaglebone:/opt/test/test2# ./test2
Initialize SS pins for SPI
Initialize SPI
SPI transfer
rx = 30 31 32 33 34 35 36 37
rx = 31 32
rx = 33 34
rx = 35 36
rx = 37 38
rx = 30 31 32 33 34 35 36 37
...

press CTRL-C to terminate or let it run and observe with a scope all SPI0 
signals

Hope this will help

Jan

Sorry, I don't see how to insert a file so:
build is:

#!/bin/bash 
echo Building test2 - J.Sz. 
g++ test2.cpp SimpleGPIO.cpp -o test2

test2.cpp is

//#ifndef SPICOMM_H_
//#define SPICOMM_H_


#include stdint.h
#include unistd.h
#include stdio.h
#include stdlib.h
#include getopt.h
#include fcntl.h
#include sys/ioctl.h
#include linux/types.h
#include linux/spi/spidev.h
#include SimpleGPIO.h
#include iostream
#include string
#include SimpleGPIO.h

using namespace std;

// example functions from 
http://www.nagavenkat.adurthi.com/2014/02/spi-communication-beaglebone-black-as-master-to-arduino-as-slave/

#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))

static void pabort(const char *s)
{
 perror(s);
 abort();
}


//4 SS pins for 4 SPI devices
void init_motor_spi_ss(int gpio1,int gpio2,int gpio3,int gpio4){
//export the pins. I have used then pins described in the table above
 gpio_export(gpio1);
 gpio_export(gpio2);
 gpio_export(gpio3);
 gpio_export(gpio4);

// set them as High. The SS pins should be high when idle(no commuication)

 gpio_set_dir(gpio1, OUTPUT_PIN);
 gpio_set_dir(gpio2, OUTPUT_PIN);
 gpio_set_dir(gpio3, OUTPUT_PIN);
 gpio_set_dir(gpio4, OUTPUT_PIN);

gpio_set_value(gpio1, HIGH);
 gpio_set_value(gpio2, HIGH);
 gpio_set_value(gpio3, HIGH);
 gpio_set_value(gpio4, HIGH);

}

static const char *device = /dev/spidev1.0;  // this is when SPI0 was 
enabled. change it when SPI1 is enabled
static uint8_t mode=0;  //this mode works well for me
static uint8_t bits = 8; //arduino accepts 8 bits at once
//static uint32_t speed = 100; //1MHz speed
static uint32_t speed = 100; //2MHz speed
static uint16_t delay=0;

static void init_spi(void)
{
 int fd;
 int ret = 0;

 fd = open(device, O_RDWR);
 if (fd  0)
 pabort(can't open device);

/*
 * spi mode
 */
 ret = ioctl(fd, SPI_IOC_WR_MODE, mode);
 if (ret == -1)
 pabort(can't set spi mode);
ret = ioctl(fd, SPI_IOC_RD_MODE, mode);
 if (ret == -1)
 pabort(can't get spi mode);

/*
 * bits per word
 */
 ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, bits);
 if (ret == -1)
 pabort(can't set bits per word);
ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, bits);
 if (ret == -1)
 pabort(can't get bits per word);

/*
 * max speed hz
 */
 ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, speed);
 if (ret == -1)
 pabort(can't set max speed hz);
ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, speed);
 if (ret == -1)
 pabort(can't get max speed hz);

}

void spi_transfer(uint8_t *txbuffer, int size, int gpio) 
{

 int fd;
 int ret = 0;
 //uint8_t tx[8];
 //tx[0]='0';
 //tx[1]='1';
 //tx[2]='2';
 //tx[3]='3';
 //tx[4]='4';
 //tx[5]='5';
 //tx[6]='6';
 //tx[7]='7';

//uint8_t rx[ARRAY_SIZE(txbuffer)] = {0, };
uint8_t rx[size];


 struct spi_ioc_transfer tr = {
 //tr.tx_buf = (unsigned long)tx,
 //tr.rx_buf = (unsigned long)rx,
 //tr.len = ARRAY_SIZE(tx),
 tr.tx_buf = (unsigned long)txbuffer,
 tr.rx_buf = (unsigned long)rx,
 tr.len = size,
 tr.delay_usecs = delay,
 tr.speed_hz = speed,
 tr.bits_per_word = bits,
 };

 fd = open(device, O_RDWR);
 if (fd  0)
 pabort(can't open device);


gpio_set_value(gpio, LOW);
ret = ioctl(fd, SPI_IOC_MESSAGE(1), tr);
 if (ret  1)
 pabort(can't send spi message);

close(fd);

[beagleboard] Re: Only able to read 0x0 or FF with spidev...

2014-11-10 Thread janszymanski12345
Hi,

 Following the links: http://elinux.org/BeagleBone_Black_Enable_SPIDEV and 
http://www.nagavenkat.adurthi.com/2014/02/spi-communication-beaglebone-black-as-master-to-arduino-as-slave/
 
I was able to make it work, but I have a SS too long (1.4ms) for my need. 
For easy test connect MOSI and MISO with a wire (loopback) to eliminate 
connection problem with you SPI slave.
Hope this will help. When you done, can you measure the timing a let me 
know?
I can post you my code if you need it.

Jan

On Tuesday, November 11, 2014 5:03:38 AM UTC+11, lambert...@gmail.com wrote:

 Hi,

 I am trying to communicate with a device (ADS1299à by using the Beaglebone 
 black but without success. First I have to enable spi dev entries in /dev. 
 There are plenty of blog/tuto which are giving dtc file to generate our own 
 dtbo. But dtc files seems to not be always the same.

 In fact I can see that there are already some dtbo files in /lib/firmware 
 : 
 root@beaglebone:~# ls /lib/firmware/ | grep SPI
 ADAFRUIT-SPI0-00A0.dtbo
 ADAFRUIT-SPI1-00A0.dtbo
 BB-SPIDEV0-00A0.dtbo
 BB-SPIDEV1-00A0.dtbo
 BB-SPIDEV1A1-00A0.dtbo

 So I want to use only SPI0 because I know that SPI1 is already used by 
 HDMI. Can I used theses dtbo files ? Is it better to write my own ? It is 
 quite strange, when I enable one of theses dtbo files, I get not only one 
 but two entries in /dev ??

 Currently I want to validate my wiring between the two boards. I found a 
 piece of code to read the device id in register of the device though SPI. 
 But when I try to read this register, I can only get 1 or only get 0 
 (depends of the dtbo files)

 Any advice of the good way to process here ?

 Thanks  Regards,
 Arthur.






-- 
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] very long CS with SPIDEV1

2014-11-09 Thread janszymanski12345
Hi 

 I'm trying to do some SPI programming on BBB using SPIDEV1 and based on 
examples and it works, but not satisfactory ...
The length of CS is about 1.4ms no matter what is the clock (SCK) speed. 
I transfer 2 bytes and the transfer start almost immediately after CS goes 
low, but then CS stays active low for a long
time after CLK and MOSI are gone. 
Is it normal or am I doing something wrong?
I need a higher speed than what I have now.

Jan

-- 
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] load device tree overlay through uEnv.txt on startup

2014-11-05 Thread janszymanski12345
Hi,

 I want to load a device tree overlay on startup by including it in uEnv.tx 
like this
...
#cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02
cape_enable=capemgr.enable_partno=SPI-4SS
...

It desn't work as there is another file I need to modify and I forgot where 
it is.

my image is:
root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l 
GNU/Linux

Thanks
Jan

-- 
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: load device tree overlay through uEnv.txt on startup

2014-11-05 Thread janszymanski12345
OK, found it. It's here 
http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Loading_custom_capes 
In case other people have a similar problem.


Workaround: 

add CAPE=BB-SPI1-01 to /etc/default/capemgr
The problem is that all that info is all over the places and changes all the 
time.



On Thursday, November 6, 2014 1:49:15 PM UTC+11, janszyma...@gmail.com 
wrote:

 Hi,

  I want to load a device tree overlay on startup by including it in 
 uEnv.tx like this
 ...
 #cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02
 cape_enable=capemgr.enable_partno=SPI-4SS
 ...

 It desn't work as there is another file I need to modify and I forgot 
 where it is.

 my image is:
 root@beaglebone:~# uname -a
 Linux beaglebone 3.8.13-bone67 #1 SMP Wed Sep 24 21:30:03 UTC 2014 armv7l 
 GNU/Linux

 Thanks
 Jan



-- 
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: Multiple SPI Kernel Drivers on the Same SPI Bus?

2014-11-04 Thread janszymanski12345

use GPIO as slave selects
http://www.nagavenkat.adurthi.com/2014/02/spi-communication-beaglebone-black-as-master-to-arduino-as-slave/
 


On Sunday, October 26, 2014 10:43:02 AM UTC+11, bra...@gmail.com wrote:

 *Background*

 I have a Beagle Bone Black cape with both a Nordic nRF51822 and TI CC2520. 
 Both of these devices are on the SPI0 bus. I have kernel drivers that work 
 for each separately on Debian 3.8.13.

 *Goal*

 I would like to be able to load both kernel drivers at the same time and 
 have them share the SPI bus.

 *Issue*

 While I have figured out how to make each kernel driver take control of 
 the SPI0 bus when loaded separately, I can't seem to get them to each have 
 access when loaded together. I'm far from an expert on device tree overlays 
 and am not sure how to glue everything together so that the kernel drives 
 are successfully loaded.

 Here is my code so far in the kernel driver that pertains to creating the 
 SPI device for the nRF51822. I create a struct spi_driver with config 
 information and then call module_spi_driver() to init, etc. (copied from 
 /linux/drivers/net/ieee802154/cc2520.c). The probe() function callback 
 sets up a character device and configures some GPIOs (that code needs to be 
 updated to work with device tree, but for now it should be fine).


 static int nrf51822_spi_probe(struct spi_device *spi_device)
 {
 ERR(KERN_INFO, Inserting SPI protocol driver.\n);
 nrf51822_spi_device = spi_device;

 //
 // Create a buffer to move data over the character device
 //
 ...

 //
 // Setup the interrupt from the nRF51822
 //
 ...

 //
 // Configure the character device in /dev
 //
 ...

 return 0;
 }

 static int nrf51822_spi_remove(struct spi_device *spi_device)
 {
 ERR(KERN_INFO, Removing SPI protocol driver.);
 nrf51822_spi_device = NULL;

 // Free memory and close things
 }


 static const struct spi_device_id nrf51822_ids[] = {
 {nrf51822, },
 {},
 };
 MODULE_DEVICE_TABLE(spi, nrf51822_ids);


 static const struct of_device_id nrf51822_of_ids[] = {
 {.compatible = brad,nrf51822, },
 {},
 };
 MODULE_DEVICE_TABLE(of, nrf51822_of_ids);


 // Configure SPI
 static struct spi_driver nrf51822_spi_driver = {
 .driver = {
 .name = nrf51822_name,
 .owner = THIS_MODULE,
 .bus = spi_bus_type,
 .of_match_table = of_match_ptr(nrf51822_of_ids),
 },
 .id_table = nrf51822_ids,
 .probe = nrf51822_spi_probe,
 .remove = nrf51822_spi_remove,
 };

 // This I believe will load this driver correctly
 // and cause it to be probed when it is needed.
 module_spi_driver(nrf51822_spi_driver);

 MODULE_LICENSE(GPL);
 MODULE_AUTHOR(DRIVER_AUTHOR);
 MODULE_DESCRIPTION(DRIVER_DESC);

 And here is my attempt at a device overlay. I'm only claiming a single 
 GPIO which I use as an interrupt from the nRF51822 back to the beagle bone.

 /dts-v1/;
 /plugin/;

 / {
 compatible = ti,beaglebone, ti,beaglebone-black;

 /* identification */
 part-number = BB-BONE-NRF51822;
 version = 00A0;

 /* state the resources this cape uses */
 exclusive-use =
 /* the pin header uses */

 /* GPIO */
 P9.16,   /* Interrupt from NRF51822 */

 /* the hardware ip uses */
 gpio1_19;


 fragment@0 {
 target = am33xx_pinmux;
 __overlay__ {
 bb_cc2520_gpio_pins: pinmux_bb_2520_gpio_pins {
 compatible = nrf51822;
 pinctrl-single,pins = 
 /* GPIO */
 0x04C 0x2F /* ehrpwm1b.gpio1_19, 
 INPUT | MODE7 */
 ;
 };
 };
 };

 fragment@1 {
 target = ocp;
 __overlay__ {
 nrf51822 {
 compatible = brad,nrf51822;

 /* the power control gpio */
 interrupt-gpio = gpio1 19 0x0;

 /* the muxing */
 pinctrl-names = default;
 pinctrl-0 = nrf51822_pins;
 };
 };
 };
 };

 The end effect is that my probe() function in the kernel driver is never 
 called, even after loading the overlay and kernel module.

 How do I set things up so that two kernel modules can both use SPI0? Has 
 anyone tried this? Everything I've looked at appears to assume only one 
 device is attached to the SPI bus so it can specify the SPI pins in its 
 .dts file (but I could be wrong about that).

 Thanks for any help or direction.


-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed 

[beagleboard] Re: Beaglebone Black and Web Servers?

2014-11-03 Thread janszymanski12345
There is already nodejs installed on BBB, you can simply run webserver 
using it.http://nodejs.org/ 

On Saturday, 11 January 2014 14:37:07 UTC+11, COG wrote:

 Hi:

 I am a newbie to the Beaglebone arena and I have some questions dealing 
 with which web server(s) to use.  

 (i) What is a good web server(s) to use?
 (ii) On which Operating System?
 (iii) Can Django be installed on the Beaglebone Black?
 (iv) If Yes, what would I have to do?  E.g. Where to find the install file 
 and instructions?

 *Note:*  I have experience programming in both Java and Python; and using 
 the OS Ubuntu and a desktop.

 Regards
 COG


-- 
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: Enable UART1

2014-10-26 Thread janszymanski12345
login as: debian
Debian GNU/Linux 7

BeagleBoard.org BeagleBone Debian Image 2014-04-23

Support/FAQ: http://elinux.org/Beagleboard:BeagleBoneBlack_Debian
debian@138.25.248.153's password:
debian@beaglebone:~$ cd /lib/firmware
debian@beaglebone:/lib/firmware$ ls *UART*
ADAFRUIT-UART1-00A0.dtbo  BB-UART1-00A0.dtbo 
BB-UART4-RTSCTS-00A0.dtbo
ADAFRUIT-UART2-00A0.dtbo  BB-UART2-00A0.dtbo BB-UART5-00A0.dtbo
ADAFRUIT-UART4-00A0.dtbo  BB-UART2-RTSCTS-00A0.dtbo
ADAFRUIT-UART5-00A0.dtbo  BB-UART4-00A0.dtbo
debian@beaglebone:/lib/firmware$

In your uEnv.tx put
optargs=capemgr.enable_partno = BB-UART1,BB-UART2

you are missing one '-', but have one too many '#' - indicates comment

Hope this will help

Jan


On Sunday, October 26, 2014 2:10:10 PM UTC+11, Jimit Doshi wrote:

 Hello All,

 I plan to use UART1 and UART2 of BBB for an application. I understand that 
 only UART0 (which is any ways used for debug purpose) is enabled by 
 default. As such, I see only 'ttyO0' in my '/dev/' directory. 

 To enable UART1/2 , I added the following line in my uEnv.txt file :

 #optargs=capemgr.enable_partno = BB-UART1,BBUART2

 However, on reboot I don't see 'ttyO1' and 'ttyO2' in my '/dev/' 
 directory. 

 What am I missing?

 Thanks!

 PS : I am using the BBB rev C with the stock Debian distribuition.




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


Re: [beagleboard] Re: BBB kernel update

2014-10-22 Thread janszymanski12345
Thanks Robert,

It will be easier to access, no need to mount the FAT partition.

Jan

On Thursday, October 23, 2014 12:33:26 AM UTC+11, RobertCNelson wrote:

 On Wed, Oct 22, 2014 at 12:12 AM,  janszyma...@gmail.com javascript: 
 wrote: 
  OK, I did it, but where is uEnv.txt? 
  
  before I was able to do that: 
  
  in /mnt/emmcfat edit uEnv.txt 
  
  ##Disable HDMI 
  
  #optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN 
  
  optargs=capemgr.enable_partno=BB-UART1,BB-SPIDEV0 
  
  How to do it now? 

 It's under: 

 /boot/uEnv.txt 

 on the ext4 partition. 

 Regards, 

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


[beagleboard] Re: Anyone interested in LEGO EV3? I'm trying to transplant EV3 system to Beaglebone Black.

2014-10-21 Thread janszymanski12345
Congratulations on your wedding, but once married will you have any time 
for the project?
Are you willing to share your work?

Regards
Jan

On Wednesday, October 22, 2014 2:45:26 AM UTC+11, Fat Cat Man wrote:

 Yes, I've came to my hometown to hold a wedding ceremony last 2 weeks.
 I've updated all the linux drivers to 1.06x. Now it works fine with the 
 native labview language.
 Now I'm making the smart UART sensor, I have already made a prototype. It 
 can measure couple of analog channels and transmit the data throuth the 
 uart. It means a huge kinds of arduino analog sensors can be used for ev3 
 now: ) And it's very easy to develop any kind of new sensors.


 在 2014年10月13日星期一UTC+8上午8时18分48秒,janszyma...@gmail.com写道:

 Hi,

  Are you still working on it?
 If yes, any progress so far?

 Jan

 On Thursday, 17 July 2014 16:21:40 UTC+10, Fat Cat Man wrote:

 As you know, LEGO announced their Mindstorms EV3 robot system last year. 
 The EV3 system is based on linux, they published the full source code at 
 *https://github.com/mindboards/ev3sources* 
 https://github.com/mindboards/ev3sources 

 When I got the source code, I was wondering if I can transplant all the 
 code to Beaglebone Black. The EV3 use a TI AM1808 MCU as its cpu and BBB 
 use TI AM3359. Many of the registers are common. So after several months 
 work, I'm almost done. Here are some pitcures shows my progress:


 https://lh4.googleusercontent.com/-8Rs9k9Eu_D0/U8dpDLOgKQI/AMM/faPk1ThQw4Q/s1600/1.png


 https://lh6.googleusercontent.com/-UDKy4IU8Rt4/U8dpY17HhEI/AMU/AAEM0zFptdw/s1600/2.png


 https://lh5.googleusercontent.com/-C0q0GqGPUcY/U8dpuxzKBfI/AMc/gCGdPNd7sYU/s1600/3.png


 As you can see, there are still some bugs in the system. After the main 
 lms2012 program running for a while, it would appear a warning, and then 
 quit. Now I'm designing the cape PCB board. It can provide the input and 
 output capacity as same as EV3.





-- 
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 kernel update

2014-10-21 Thread janszymanski12345
Hi,

How to update the kernel on BBB debian?


debian@beaglebone:~$ uname -a
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
GNU/Linux
debian@beaglebone:~$ sudo apt-get install linux-image-3.14.19-ti-r27
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-image-3.14.19-ti-r27
E: Couldn't find any package by regex 'linux-image-3.14.19-ti-r27'
debian@beaglebone:~$


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


Re: [beagleboard] BBB kernel update

2014-10-21 Thread janszymanski12345

debian@beaglebone:~$ cat /etc/dogtag
BeagleBoard.org BeagleBone Debian Image 2014-05-14
debian@beaglebone:~$


On Wednesday, October 22, 2014 11:53:57 AM UTC+11, RobertCNelson wrote:

 On Tue, Oct 21, 2014 at 6:29 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  Hi, 
  
  How to update the kernel on BBB debian? 
  
  
  debian@beaglebone:~$ uname -a 
  Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 
 armv7l 
  GNU/Linux 
  debian@beaglebone:~$ sudo apt-get install linux-image-3.14.19-ti-r27 
  Reading package lists... Done 
  Building dependency tree 
  Reading state information... Done 
  E: Unable to locate package linux-image-3.14.19-ti-r27 
  E: Couldn't find any package by regex 'linux-image-3.14.19-ti-r27' 
  debian@beaglebone:~$ 

 cat /etc/dogtag 

 Regards, 

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


Re: [beagleboard] BBB kernel update

2014-10-21 Thread janszymanski12345
Thanks Robert, but it didn't work

debian@beaglebone:~$ df -h
Filesystem  Size  Used Avail 
Use% Mounted on
rootfs  3.4G  1.5G  1.8G  
45% /
.
debian@beaglebone:~$ cd /opt/scripts/tools/
debian@beaglebone:/opt/scripts/tools$ git pull
.
`/boot/vmlinuz-3.14.19-ti-r30' - `/boot/uboot/zImage'
`/boot/initrd.img-3.14.19-ti-r30' - `/boot/uboot/initrd.img'
cp: writing `/boot/uboot/initrd.img': No space left on device
*cp: failed to extend `/boot/uboot/initrd.img': No space left on device*
-
Script done: please reboot
debian@beaglebone:/opt/scripts/tools$

Jan

On Wednesday, October 22, 2014 12:53:44 PM UTC+11, RobertCNelson wrote:

 On Tue, Oct 21, 2014 at 8:43 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  
  debian@beaglebone:~$ cat /etc/dogtag 
  BeagleBoard.org BeagleBone Debian Image 2014-05-14 
  debian@beaglebone:~$ 

 That's pre-repo.. 

 Run: 

 cd /opt/scripts/tools/ 
 git pull 
 sudo ./update_kernel.sh --ti-kernel 
 sudo reboot 

 This will install: (--ti-kernel switches to the ti channel) 

 http://rcn-ee.net/deb/wheezy-armhf/LATEST-ti 

 v3.14.19-ti-r30 

 Regards, 

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


[beagleboard] Re: BBB kernel update

2014-10-21 Thread janszymanski12345
OK, I did it, but where is uEnv.txt?

before I was able to do that:

in /mnt/emmcfat edit uEnv.txt

##Disable HDMI

#optargs=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN

optargs=capemgr.enable_partno=BB-UART1,BB-SPIDEV0

How to do it now?



On Wednesday, 22 October 2014 10:29:12 UTC+11, janszyma...@gmail.com wrote:

 Hi,

 How to update the kernel on BBB debian?


 debian@beaglebone:~$ uname -a
 Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l 
 GNU/Linux
 debian@beaglebone:~$ sudo apt-get install linux-image-3.14.19-ti-r27
 Reading package lists... Done
 Building dependency tree
 Reading state information... Done
 E: Unable to locate package linux-image-3.14.19-ti-r27
 E: Couldn't find any package by regex 'linux-image-3.14.19-ti-r27'
 debian@beaglebone:~$




-- 
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] root password BBB ubuntu

2014-10-13 Thread janszymanski12345
Hi,

 After installing ubuntu console on BBB from here: 
http://elinux.org/BeagleBoardUbuntu#Trusty_14.04 and connecting with Putty

login as: ubuntu
ubuntu@192.168.7.2's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.8.13-bone63 armv7l)

 * Documentation:  https://help.ubuntu.com/
Last login: Wed Aug 13 18:11:23 2014 from 192.168.7.1
ubuntu@arm:~$ sudo passwd root
[sudo] password for ubuntu:

what is the [sudo] password, root password?

How can I login as root? change password for root?

Jan

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


Re: [beagleboard] root password BBB ubuntu

2014-10-13 Thread janszymanski12345
Hi,

 I did follow the exact link, but the instruction given do not work.

First question:
what would i type after: sudo apt-get update, when asked for password? 
(tried nothing, root, ... temppwd - nothing works)

login as: ubuntu
ubuntu@192.168.7.2's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.8.13-bone63 armv7l)

 * Documentation:  https://help.ubuntu.com/
Last login: Wed Aug 13 17:36:43 2014 from 192.168.7.1
ubuntu@arm:~$ sudo apt-get update
[sudo] password for ubuntu:
Sorry, try again.
[sudo] password for ubuntu:

Second question:
The instruction at the link says:

Enabling 

To actually enable root logins first you have to set a password for the 
root account and then unlock the locked root account. If you don't set a 
password for the root account the passwd command will return 

passwd: unlocking the password would result in a passwordless account.  

So, rirst execute in a terminal 

sudo passwd root

you will prompted for a new Unix password. Write it twice(second for 
confirmation).

Then execute 

sudo passwd -u root 

to unlock the account. This should return 

passwd: password expiry information changed

From theory to reality:


ubuntu@arm:~$ sudo passwd root
[sudo] password for ubuntu:

 what now?

Jan







On Tuesday, October 14, 2014 11:06:16 AM UTC+11, RobertCNelson wrote:

 On Mon, Oct 13, 2014 at 7:01 PM, Robert Nelson robert...@gmail.com 
 javascript: wrote: 
  On Mon, Oct 13, 2014 at 6:48 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  Hi, 
  
   After installing ubuntu console on BBB from here: 
  http://elinux.org/BeagleBoardUbuntu#Trusty_14.04 and connecting with 
 Putty 
  
  login as: ubuntu 
  ubu...@192.168.7.2 javascript:'s password: 
  Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.8.13-bone63 armv7l) 
  
   * Documentation:  https://help.ubuntu.com/ 
  Last login: Wed Aug 13 18:11:23 2014 from 192.168.7.1 
  ubuntu@arm:~$ sudo passwd root 
  [sudo] password for ubuntu: 
  
  what is the [sudo] password, root password? 
  
  How can I login as root? change password for root? 
  
  It's ubuntu, by default there is no root user.. 
  
  This is the way ubuntu has been since 2006, if you want a root user 
  you need to enable/create it. 

 second link if you would have searched google.. 

 http://askubuntu.com/questions/44418/how-to-enable-root-login 

 Regards, 

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


[beagleboard] Re: root password BBB ubuntu

2014-10-13 Thread janszymanski12345
I'm using the prebuilt image 

Get prebuilt image: 

wget 
https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04-console-armhf-2014-08-13-2gb.img.xz


from here http://elinux.org/BeagleBoardUbuntu#Trusty_14.04 
Can you provide a link to another one, maybe I will have more luck then?

Jan 


On Tuesday, October 14, 2014 10:48:18 AM UTC+11, janszyma...@gmail.com 
wrote:

 Hi,

  After installing ubuntu console on BBB from here: 
 http://elinux.org/BeagleBoardUbuntu#Trusty_14.04 and connecting with Putty

 login as: ubuntu
 ubuntu@192.168.7.2's password:
 Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.8.13-bone63 armv7l)

  * Documentation:  https://help.ubuntu.com/
 Last login: Wed Aug 13 18:11:23 2014 from 192.168.7.1
 ubuntu@arm:~$ sudo passwd root
 [sudo] password for ubuntu:

 what is the [sudo] password, root password?

 How can I login as root? change password for root?

 Jan



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


Re: [beagleboard] Re: root password BBB ubuntu

2014-10-13 Thread janszymanski12345
Robert,

 I did again an eMMC flasher and now temppwd works, but still unable to 
login as root

login as: ubuntu
ubuntu@192.168.7.2's password:
Welcome to Ubuntu 14.04.1 LTS (GNU/Linux 3.8.13-bone63 armv7l)

 * Documentation:  https://help.ubuntu.com/
Last login: Tue Oct 14 01:04:07 2014 from 192.168.7.1
ubuntu@arm:~$ sudo passwd root
[sudo] password for ubuntu:
Sorry, try again.
[sudo] password for ubuntu:
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
ubuntu@arm:~$ sudo passwd -u root
passwd: password expiry information changed.
ubuntu@arm:~$

login as: root
root@192.168.7.2's password:
Access denied
root@192.168.7.2's password:


Any hints?

Jan



On Tuesday, October 14, 2014 11:42:01 AM UTC+11, RobertCNelson wrote:

 On Mon, Oct 13, 2014 at 7:38 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  I'm using the prebuilt image 
  
  Get prebuilt image: 
  
  wget 
  
 https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04-console-armhf-2014-08-13-2gb.img.xz
  
  
  
  from here http://elinux.org/BeagleBoardUbuntu#Trusty_14.04 
  Can you provide a link to another one, maybe I will have more luck then? 

 That was the v2014.08 release, user and password where setup as: 


 https://github.com/RobertCNelson/omap-image-builder/blob/v2014.08/configs/rcn-ee_console_ubuntu_stable_armhf.conf#L26
  

 Regards, 

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


Re: [beagleboard] Re: root password BBB ubuntu

2014-10-13 Thread janszymanski12345
In theory http://en.wikiquote.org/wiki/Theory, there is no difference 
between theory and practice. But, in practice, there is. 

I have modified the file /etc/ssh/sshd_config according to 
http://askubuntu.com/questions/469143/how-to-enable-ssh-root-access-on-ubuntu-14-04,
but still no root access through ssh.

# Package generated configuration file
# See the sshd_config(5) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
HostKey /etc/ssh/ssh_host_ed25519_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 1024

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
#PermitRootLogin without-password
PermitRootLogin yes
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile%h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for 
RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication.  Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of PermitRootLogin without-password.
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes

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


Re: [beagleboard] Re: root password BBB ubuntu

2014-10-13 Thread janszymanski12345
finally solved

On Tuesday, 14 October 2014 14:43:57 UTC+11, janszyma...@gmail.com wrote:

 In theory http://en.wikiquote.org/wiki/Theory, there is no difference 
 between theory and practice. But, in practice, there is. 

 I have modified the file /etc/ssh/sshd_config according to 
 http://askubuntu.com/questions/469143/how-to-enable-ssh-root-access-on-ubuntu-14-04
 ,
 but still no root access through ssh.

 # Package generated configuration file
 # See the sshd_config(5) manpage for details

 # What ports, IPs and protocols we listen for
 Port 22
 # Use these options to restrict which interfaces/protocols sshd will bind 
 to
 #ListenAddress ::
 #ListenAddress 0.0.0.0
 Protocol 2
 # HostKeys for protocol version 2
 HostKey /etc/ssh/ssh_host_rsa_key
 HostKey /etc/ssh/ssh_host_dsa_key
 HostKey /etc/ssh/ssh_host_ecdsa_key
 HostKey /etc/ssh/ssh_host_ed25519_key
 #Privilege Separation is turned on for security
 UsePrivilegeSeparation yes

 # Lifetime and size of ephemeral version 1 server key
 KeyRegenerationInterval 3600
 ServerKeyBits 1024

 # Logging
 SyslogFacility AUTH
 LogLevel INFO

 # Authentication:
 LoginGraceTime 120
 #PermitRootLogin without-password
 PermitRootLogin yes
 StrictModes yes

 RSAAuthentication yes
 PubkeyAuthentication yes
 #AuthorizedKeysFile%h/.ssh/authorized_keys

 # Don't read the user's ~/.rhosts and ~/.shosts files
 IgnoreRhosts yes
 # For this to work you will also need host keys in /etc/ssh_known_hosts
 RhostsRSAAuthentication no
 # similar for protocol version 2
 HostbasedAuthentication no
 # Uncomment if you don't trust ~/.ssh/known_hosts for 
 RhostsRSAAuthentication
 #IgnoreUserKnownHosts yes

 # To enable empty passwords, change to yes (NOT RECOMMENDED)
 PermitEmptyPasswords no

 # Change to yes to enable challenge-response passwords (beware issues with
 # some PAM modules and threads)
 ChallengeResponseAuthentication no

 # Change to no to disable tunnelled clear text passwords
 #PasswordAuthentication yes

 # Kerberos options
 #KerberosAuthentication no
 #KerberosGetAFSToken no
 #KerberosOrLocalPasswd yes
 #KerberosTicketCleanup yes

 # GSSAPI options
 #GSSAPIAuthentication no
 #GSSAPICleanupCredentials yes

 X11Forwarding yes
 X11DisplayOffset 10
 PrintMotd no
 PrintLastLog yes
 TCPKeepAlive yes
 #UseLogin no

 #MaxStartups 10:30:60
 #Banner /etc/issue.net

 # Allow client to pass locale environment variables
 AcceptEnv LANG LC_*

 Subsystem sftp /usr/lib/openssh/sftp-server

 # Set this to 'yes' to enable PAM authentication, account processing,
 # and session processing. If this is enabled, PAM authentication will
 # be allowed through the ChallengeResponseAuthentication and
 # PasswordAuthentication.  Depending on your PAM configuration,
 # PAM authentication via ChallengeResponseAuthentication may bypass
 # the setting of PermitRootLogin without-password.
 # If you just want the PAM account and session checks to run without
 # PAM authentication, then enable this but set PasswordAuthentication
 # and ChallengeResponseAuthentication to 'no'.
 UsePAM yes



-- 
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: Anyone interested in LEGO EV3? I'm trying to transplant EV3 system to Beaglebone Black.

2014-10-12 Thread janszymanski12345
Hi,

 Are you still working on it?
If yes, any progress so far?

Jan

On Thursday, 17 July 2014 16:21:40 UTC+10, Fat Cat Man wrote:

 As you know, LEGO announced their Mindstorms EV3 robot system last year. 
 The EV3 system is based on linux, they published the full source code at 
 *https://github.com/mindboards/ev3sources* 
 https://github.com/mindboards/ev3sources 

 When I got the source code, I was wondering if I can transplant all the 
 code to Beaglebone Black. The EV3 use a TI AM1808 MCU as its cpu and BBB 
 use TI AM3359. Many of the registers are common. So after several months 
 work, I'm almost done. Here are some pitcures shows my progress:


 https://lh4.googleusercontent.com/-8Rs9k9Eu_D0/U8dpDLOgKQI/AMM/faPk1ThQw4Q/s1600/1.png


 https://lh6.googleusercontent.com/-UDKy4IU8Rt4/U8dpY17HhEI/AMU/AAEM0zFptdw/s1600/2.png


 https://lh5.googleusercontent.com/-C0q0GqGPUcY/U8dpuxzKBfI/AMc/gCGdPNd7sYU/s1600/3.png


 As you can see, there are still some bugs in the system. After the main 
 lms2012 program running for a while, it would appear a warning, and then 
 quit. Now I'm designing the cape PCB board. It can provide the input and 
 output capacity as same as EV3.





-- 
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] is wireless all in one keyboard supported?

2014-10-07 Thread janszymanski12345
Hi,

 I would like to use a wireless keyboard/mouse (all in one).
Is there a list a supported models on BBB Debian?
For example is 
http://www.microsoft.com/hardware/en-au/p/all-in-one-media-keyboard#details 
supported.
Can anyone recommend a model proven to work?
(I need to buy one)

Jan

-- 
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: programming SPI with C on BBB

2014-10-02 Thread janszymanski12345
Thanks Artem,

 Will try it later, as I'm away now.
Is the spidev1.1 the same port with a different CS (as I need 2 SPI 
interfaces). If yes, what pin is the second CS on?

Thanks again,
Jan

On Friday, October 3, 2014 2:32:03 AM UTC+10, Artem Popov wrote:

 Good example code: 
 https://www.kernel.org/doc/Documentation/spi/spidev_fdx.c
 It works on BBB without any changes.
 Manual for linux spidev: 
 https://www.kernel.org/doc/Documentation/spi/spidev



-- 
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] programming SPI with C on BBB

2014-09-30 Thread janszymanski12345
Hi,

 I need to interface a DAC with SPI interface 
http://ww1.microchip.com/downloads/en/DeviceDoc/21697F.pdf  to BBB.
First question is which one (SPI) to select from device tree overlays (as 
there is a few and I don't know the differences between them)
root@beaglebone:~# cd /lib/firmware
root@beaglebone:/lib/firmware# ls *SPI*
ADAFRUIT-SPI0-00A0.dtbo  BB-SPIDEV0-00A0.dtbo  BB-SPIDEV1A1-00A0.dtbo
ADAFRUIT-SPI1-00A0.dtbo  BB-SPIDEV1-00A0.dtbo

I started with spidev0 and have
root@beaglebone:~# ls /dev/*spi*
/dev/spidev1.0  /dev/spidev1.1
Is this one conflicting with HDMI?

When I try in my C program:

// for serial
//const char *portname = /dev/ttyO1;
const char *portname = /dev/ttyUSB0;
const char *spiname = /dev/spidev1.0;
char sbuf[40];
int fd, SPIhandle;
...
// for spidev1.0
SPIhandle = open (spiname, O_RDWR | O_NOCTTY | O_SYNC);
if (SPIhandle  0)
   {
printf(Error while opening SPI port ...\n); // Just if you want 
user interface error control
} else 
 printf(using %s\n, spiname); 
// end of for spidev1.0

After compiling I have:
error: 'spidev' does not name a type

This should be included in a C project, so I can not use Python. 
Can someone point me into the right directions, please

Jan

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


Re: [beagleboard] Re: how to change screen resolution

2014-09-28 Thread janszymanski12345
thanks, that works. Do you know if possible and if yes how to change the 
setting for the mouse? - I want it to be scan by the system as frequently 
as possible.

On Friday, September 26, 2014 9:42:15 PM UTC+10, Charles Steinkuehler wrote:

 Edit uEnv.txt and set a custom resolution using the kernel command line: 

 http://blog.machinekit.io/2013/07/custom-hdmi-resolution.html 

 On 9/25/2014 5:46 PM, janszyma...@gmail.com javascript: wrote: 
  I've modified the file /etc/xdg/lxsession/LXDE/autostart by adding 
 @xrandr 
  -s 640x480@75 
  It looks like this now: 
  
  @lxpanel --profile LXDE 
  @pcmanfm --desktop --profile LXDE 
  @xrandr -s 640x480@75 
  
  Reboot, but still doesn't work. 
  Any help, please. 
  
  Jan 
  
  On Thursday, 25 September 2014 09:36:18 UTC+10, janszyma...@gmail.com 
 wrote: 
  
  Hi, 
  
   How to change the screen resolution on BBB with latest image and HDMI 
  monitor connected? 
  Currently working with 1920x1080 by default, but I need a lower 
 resolution 
  - 640x480@75. 
  
  Jan 
  
  


 -- 
 Charles Steinkuehler 
 cha...@steinkuehler.net javascript: 


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


Re: [beagleboard] startup process error

2014-09-28 Thread janszymanski12345
Good suggestion and it works. Couldn't make it with systemd however and I'm 
curious why.
It is a GUI application and possibly I made some syntax error.
my bap.service file is:

[Unit]
Description=Ball and Plate

[Service]
WorkingDirectory=/opt/bap
ExecStart=/opt/bap runbap
SyslogIdentifier=bap

and my /opt/bap/bap.sh is

#! /bin/bash 
echo waiting...
sleep 20
echo changing cpufreq
sudo cpufreq-set -g performance
sudo cpufreq-info
./bap

The service is installed, but fails on execution.




On Friday, September 26, 2014 1:38:02 PM UTC+10, Wulf Man wrote:

  Can't start in in a cron job ?


 On 9/25/2014 8:20 PM, janszyma...@gmail.com javascript: wrote:
  
 Hi,

  I want to autostart the program on boot on BBB debian.
 My executable is located in /opt/bap and I can start it from terminal by 
 ./bap
 Following the instruction from here 
 http://stackoverflow.com/questions/11152657/angstrom-start-up-processes-beaglebone
   


 the file bap.service in /lib/systemd/system/ has the content:

 [Unit]
  Description=ball and plate
  After=syslog.target network.target
  [Service]
  WorkingDirectory=/opt/bap
  Type=simple
  ExecStart=/opt/bap ./bap
  [Install]
  WantedBy=multi-user.target

 then I did:

 systemctl enable bap.servicesystemctl start bap.service
 All was good, but
 debian@beaglebone:/opt/bap$ sudo systemctl status bap.service
 bap.service - ball and plate
 Loaded: loaded (/lib/systemd/system/bap.service; enabled)
 Active: failed (Result: exit-code) since Fri, 26 Sep 2014 03:03:42 
 +; 4s ago
Process: 6515 ExecStart=/opt/bap ./bap (code=exited, status=203/EXEC)
 CGroup: name=systemd:/system/bap.service

 Sep 26 03:03:42 beaglebone (bap)[6515]: Failed at step EXEC spawning 
 /opt/ba...d
 debian@beaglebone:/opt/bap$ 

 How to fix it?

 Jan


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


[beagleboard] Re: how to change screen resolution

2014-09-25 Thread janszymanski12345
I've modified the file /etc/xdg/lxsession/LXDE/autostart by adding @xrandr 
-s 640x480@75
It looks like this now:

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xrandr -s 640x480@75

Reboot, but still doesn't work.
Any help, please.

Jan

On Thursday, 25 September 2014 09:36:18 UTC+10, janszyma...@gmail.com wrote:

 Hi,

  How to change the screen resolution on BBB with latest image and HDMI 
 monitor connected?
 Currently working with 1920x1080 by default, but I need a lower resolution 
 - 640x480@75.

 Jan


-- 
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] startup process error

2014-09-25 Thread janszymanski12345
Hi,

 I want to autostart the program on boot on BBB debian.
My executable is located in /opt/bap and I can start it from terminal by 
./bap
Following the instruction from here 
http://stackoverflow.com/questions/11152657/angstrom-start-up-processes-beaglebone
  


the file bap.service in /lib/systemd/system/ has the content:

[Unit]
 Description=ball and plate
 After=syslog.target network.target
 [Service]
 WorkingDirectory=/opt/bap
 Type=simple
 ExecStart=/opt/bap ./bap
 [Install]
 WantedBy=multi-user.target

then I did:

systemctl enable bap.service
systemctl start bap.service

All was good, but
debian@beaglebone:/opt/bap$ sudo systemctl status bap.service
bap.service - ball and plate
  Loaded: loaded (/lib/systemd/system/bap.service; enabled)
  Active: failed (Result: exit-code) since Fri, 26 Sep 2014 03:03:42 
+; 4s ago
 Process: 6515 ExecStart=/opt/bap ./bap (code=exited, status=203/EXEC)
  CGroup: name=systemd:/system/bap.service

Sep 26 03:03:42 beaglebone (bap)[6515]: Failed at step EXEC spawning /opt/ba...d
debian@beaglebone:/opt/bap$ 

How to fix it?

Jan


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


Re: [beagleboard] startup process error

2014-09-25 Thread janszymanski12345
I need it to autostart when the BBB is powered on.

On Friday, September 26, 2014 1:38:02 PM UTC+10, Wulf Man wrote:

  Can't start in in a cron job ?


 On 9/25/2014 8:20 PM, janszyma...@gmail.com javascript: wrote:
  
 Hi,

  I want to autostart the program on boot on BBB debian.
 My executable is located in /opt/bap and I can start it from terminal by 
 ./bap
 Following the instruction from here 
 http://stackoverflow.com/questions/11152657/angstrom-start-up-processes-beaglebone
   


 the file bap.service in /lib/systemd/system/ has the content:

 [Unit]
  Description=ball and plate
  After=syslog.target network.target
  [Service]
  WorkingDirectory=/opt/bap
  Type=simple
  ExecStart=/opt/bap ./bap
  [Install]
  WantedBy=multi-user.target

 then I did:

 systemctl enable bap.servicesystemctl start bap.service
 All was good, but
 debian@beaglebone:/opt/bap$ sudo systemctl status bap.service
 bap.service - ball and plate
 Loaded: loaded (/lib/systemd/system/bap.service; enabled)
 Active: failed (Result: exit-code) since Fri, 26 Sep 2014 03:03:42 
 +; 4s ago
Process: 6515 ExecStart=/opt/bap ./bap (code=exited, status=203/EXEC)
 CGroup: name=systemd:/system/bap.service

 Sep 26 03:03:42 beaglebone (bap)[6515]: Failed at step EXEC spawning 
 /opt/ba...d
 debian@beaglebone:/opt/bap$ 

 How to fix it?

 Jan


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


[beagleboard] how to change screen resolution

2014-09-24 Thread janszymanski12345
Hi,

 How to change the screen resolution on BBB with latest image and HDMI 
monitor connected?
Currently working with 1920x1080 by default, but I need a lower resolution 
- 640x480@75.

Jan

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


Re: [beagleboard] Re: color ball tracking with opencv on BBB

2014-09-11 Thread janszymanski12345
I was able to build and install the same version of openCV (2.4.9) on BBB 
debian as on my desktop Ubuntu by using an external USB memory stick.
Now I have a problem with changing CPU frequency (as I would like to 
increase it from 300MHz to 1GHz)

debian@beaglebone:~$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpuf...@vger.kernel.org, please.
analyzing CPU 0:
  driver: generic_cpu0
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 300 us.
  hardware limits: 300 MHz - 1000 MHz
  available frequency steps: 300 MHz, 600 MHz, 800 MHz, 1000 MHz
  available cpufreq governors: conservative, ondemand, userspace, 
powersave, performance
  current policy: frequency should be within 300 MHz and 1000 MHz.
  The governor ondemand may decide which speed to use
  within this range.
*  current CPU frequency is 300 MHz.*
  cpufreq stats: 300 MHz:97.20%, 600 MHz:0.20%, 800 MHz:0.06%, 1000 
MHz:2.55%  (35)

debian@beaglebone:~$ sudo cpufreq-set -g GOV
*Error setting new values*. Common errors:
- Do you have proper administration rights? (super-user?)
- Is the governor you requested available and modprobed?
- Trying to set an invalid policy?
- Trying to set a specific frequency, but userspace governor is not 
available,
   for example because of hardware which cannot be set to a specific 
frequency
   or because the userspace governor isn't loaded?
debian@beaglebone:~$ 

What am I doing wrong?

Jan

On Wednesday, 10 September 2014 12:52:11 UTC+10, Brandon I wrote:

 And, here are some compile flags you'll want to include/force: 
 http://www.eliteraspberries.com/blog/2013/09/cflags-for-numerical-computing-on-the-beaglebone-black.html


 On Tue, Sep 9, 2014 at 7:16 PM, Brandon I brando...@gmail.com 
 javascript: wrote:

 I'm not sure that newer open cv can be compiled on the raspberry or 
 beaglebone due to the limited ram. You'll probably have to cross compile.

 On Tue, Sep 9, 2014 at 5:56 PM, janszyma...@gmail.com javascript: 
 wrote:

 Thanks for that link, it is very usefull.
 In a meantime my attempt to install a newer version of opencv (following 
 the instructions from here 
 http://robertcastle.com/2014/02/installing-opencv-on-a-raspberry-pi/0) 
 has failed firstly with cmake-curses-gui not working (empty database?)  and 
 after that (using command line cmake) the building stopped with a error 
 message of not enough memory. 
 Jan

 On Tuesday, September 9, 2014 11:03:58 AM UTC+10, janszyma...@gmail.com 
 wrote:

 Hi,

  I need to implement tracking of color ball with opencv on BBB.
 I have a rev.C BBB with latest (default Debian) including opencv 2.3.1
 On my desktop Ubuntu I have installed opencv 2.4.9
 To check the initial performance I used the example webcam program from 
 the book Practical OpenCV listing 4-4 p.34 playing
 the video from USB camera (Logitech C920)
 I need a resolution of 640x480. 
 The problem is with a speed on BBB, having a significant delay. It's 
 good on a desktop PC.

 I would like to ask for advice how to improve the performance on BBB if 
 possible.

 Jan

  -- 
 For more options, visit http://beagleboard.org/discuss
 --- 
 You received this message because you are subscribed to a topic in the 
 Google Groups BeagleBoard group.
 To unsubscribe from this topic, visit 
 https://groups.google.com/d/topic/beagleboard/fTan4VKv1no/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to 
 beagleboard...@googlegroups.com javascript:.
 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.
For more options, visit https://groups.google.com/d/optout.


Re: [beagleboard] Re: color ball tracking with opencv on BBB

2014-09-11 Thread janszymanski12345
That works.
Another question is how to clone or replicate BBBs  eMMC? How to move it 
into microSD card and vice versa?
If I need to have exactly the same image on another BBB as the one I am 
currently working on (when it's finished) what is the procedure then?

On Friday, 12 September 2014 12:45:15 UTC+10, Brandon I wrote:

 Or, cpufreq-set -f 1GHz

 On Thu, Sep 11, 2014 at 4:39 PM, William Hermans yyr...@gmail.com 
 javascript: wrote:

 Oh, and for the uninitiated . . . setting your governor to performance / 
 1Ghz _all_the_time_ may not be a very good idea. For instance it has been 
 in the mid to upper 80's F outdoor ambient here, and I've noticed my BBB 
 getting pretty warm.

 On Thu, Sep 11, 2014 at 4:34 PM, William Hermans yyr...@gmail.com 
 javascript: wrote:

 From memory setting profile limits would be like this

 You change to a profile via 
 $ sudo cpufreq-set -g govenor_name
 Check profile limits
 $ sudo cpufreq-info -p
 Change minimum profile range
 $ cpufreq-set -d 100 /*set minimum processor freq for active profile 
 to 1 GHz */

 I do not know if these setting persist across reboots, but I think not. 
 At least it did not see that was for me. Also settings seem to be a bit 
 quirky. On one of my Linux support system for instance, manually changing 
 anything did not work as expected. I could change profiles, governors etc, 
 but actual frequency always stayed the same. Then with BBB when you set 
 minimum ondemand profile to 1Ghz, it does not take. But when changing to 
 performance profile, minimum freq is 300Mhz, but when you check actual 
 processor freq it is 1Ghz . . .

 So yeah, anyhow the program is quirky.

 On Thu, Sep 11, 2014 at 4:26 PM, William Hermans yyr...@gmail.com 
 javascript: wrote:

 $ cpufreq-set --help. You may need to set you profile limits/ 
 performance is default 300MHz to 1Ghz just like ondemand, but for some 
 reason it is always 1GHz whenever I look.

 On Thu, Sep 11, 2014 at 3:47 PM, John Syn john...@gmail.com 
 javascript: wrote:


 From: janszyma...@gmail.com javascript:
 Reply-To: beagl...@googlegroups.com javascript: 
 beagl...@googlegroups.com javascript:
 Date: Thursday, September 11, 2014 at 3:35 PM
 To: beagl...@googlegroups.com javascript: 
 beagl...@googlegroups.com javascript:
 Subject: Re: [beagleboard] Re: color ball tracking with opencv on BBB

 I was able to build and install the same version of openCV (2.4.9) on 
 BBB debian as on my desktop Ubuntu by using an external USB memory stick.
 Now I have a problem with changing CPU frequency (as I would like to 
 increase it from 300MHz to 1GHz)

 debian@beaglebone:~$ cpufreq-info
 cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
 Report errors and bugs to cpu...@vger.kernel.org javascript:, 
 please.
 analyzing CPU 0:
   driver: generic_cpu0
   CPUs which run at the same hardware frequency: 0
   CPUs which need to have their frequency coordinated by software: 0
   maximum transition latency: 300 us.
   hardware limits: 300 MHz - 1000 MHz
   available frequency steps: 300 MHz, 600 MHz, 800 MHz, 1000 MHz
   available cpufreq governors: conservative, ondemand, userspace, 
 powersave, performance
   current policy: frequency should be within 300 MHz and 1000 MHz.
   The governor ondemand may decide which speed to use
   within this range.
 *  current CPU frequency is 300 MHz.*
   cpufreq stats: 300 MHz:97.20%, 600 MHz:0.20%, 800 MHz:0.06%, 1000 
 MHz:2.55%  (35)

 debian@beaglebone:~$ sudo cpufreq-set -g GOV
 *Error setting new values*. Common errors:
 - Do you have proper administration rights? (super-user?)
 - Is the governor you requested available and modprobed?
 - Trying to set an invalid policy?
 - Trying to set a specific frequency, but userspace governor is not 
 available,
for example because of hardware which cannot be set to a specific 
 frequency
or because the userspace governor isn't loaded?
 debian@beaglebone:~$ 

 William just explained how to do this earlier today:

 *sudo cpufreq-set -g performance*

 Regards,
 John



 What am I doing wrong?

 Jan

 On Wednesday, 10 September 2014 12:52:11 UTC+10, Brandon I wrote:

 And, here are some compile flags you'll want to include/force: 
 http://www.eliteraspberries.com/blog/2013/09/cflags-for-numerical-
 computing-on-the-beaglebone-black.html


 On Tue, Sep 9, 2014 at 7:16 PM, Brandon I brando...@gmail.com 
 wrote:

 I'm not sure that newer open cv can be compiled on the raspberry or 
 beaglebone due to the limited ram. You'll probably have to cross 
 compile.

 On Tue, Sep 9, 2014 at 5:56 PM, janszyma...@gmail.com wrote:

 Thanks for that link, it is very usefull.
 In a meantime my attempt to install a newer version of opencv 
 (following the instructions from here http://robertcastle.com/2014/
 02/installing-opencv-on-a-raspberry-pi/0) has failed firstly with 
 cmake-curses-gui not working (empty database?)  and after that (using 
 command line cmake) the building stopped with a 

[beagleboard] Re: color ball tracking with opencv on BBB

2014-09-09 Thread janszymanski12345
Thanks for that link, it is very usefull.
In a meantime my attempt to install a newer version of opencv (following 
the instructions from here 
http://robertcastle.com/2014/02/installing-opencv-on-a-raspberry-pi/0) has 
failed firstly with cmake-curses-gui not working (empty database?)  and 
after that (using command line cmake) the building stopped with a error 
message of not enough memory. 
Jan

On Tuesday, September 9, 2014 11:03:58 AM UTC+10, janszyma...@gmail.com 
wrote:

 Hi,

  I need to implement tracking of color ball with opencv on BBB.
 I have a rev.C BBB with latest (default Debian) including opencv 2.3.1
 On my desktop Ubuntu I have installed opencv 2.4.9
 To check the initial performance I used the example webcam program from 
 the book Practical OpenCV listing 4-4 p.34 playing
 the video from USB camera (Logitech C920)
 I need a resolution of 640x480. 
 The problem is with a speed on BBB, having a significant delay. It's good 
 on a desktop PC.

 I would like to ask for advice how to improve the performance on BBB if 
 possible.

 Jan



-- 
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] color ball tracking with opencv on BBB

2014-09-08 Thread janszymanski12345
Hi,

 I need to implement tracking of color ball with opencv on BBB.
I have a rev.C BBB with latest (default Debian) including opencv 2.3.1
On my desktop Ubuntu I have installed opencv 2.4.9
To check the initial performance I used the example webcam program from the 
book Practical OpenCV listing 4-4 p.34 playing
the video from USB camera (Logitech C920)
I need a resolution of 640x480. 
The problem is with a speed on BBB, having a significant delay. It's good 
on a desktop PC.

I would like to ask for advice how to improve the performance on BBB if 
possible.

Jan

-- 
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: Update Kernel + Distro

2014-07-09 Thread janszymanski12345
On desktop Ubuntu sudo apt-get update sudo apt-get upgrade and sudo apt-get 
dist upgrade does the job,
but somehow not on BBB

On Tuesday, July 1, 2014 7:13:36 PM UTC+10, leo mayer wrote:

 Hi,

 since my BBB runs for some time and I have now some spare time I thought I 
 wanna udpate the kernel + distro. Currently I have installed 

 Linux arm 3.12.0-rc6-bone7

 Looking on the wiki-pages I see that a lot has been changed in the 
 meantime and I have no real clue where to start - especially since the old 
 scripts don't seem to be valid any longer.

 Can I download some of the scripts which will then eventually perform the 
 proper update? If so, which scripts? If not, any other recommendations how 
 to upgrade?

 thx

 leo


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


Re: [beagleboard] advice on the project

2014-07-03 Thread janszymanski12345
thanks, that helps.

On Thursday, July 3, 2014 12:38:15 AM UTC+10, Dieter Wirz wrote:

 On Wed, Jul 2, 2014 at 3:42 AM,  janszyma...@gmail.com javascript: 
 wrote: 
  Hi, 
  
   I have to implement a ball and plate project using BBB. 
  I have the IR touchscreen connected on USB and the driver is working 
 with a 
  current Debian distribution, so I can see the mouse cursor moving when 
 the 
  ball is moving. 
  What is the easiest way to read the absolute mouse position? 
  After reading the position, it has to be sent frequently over UART to 
  another microsystem. 
  
  Any advice on how to approach the coding of absolute mouse position? 
  
  Jan 
 Have a look at xdotool; 
 eval $(xdotool getmouselocation --shell); echo $X,$Y 


-- 
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] advice on the project

2014-07-01 Thread janszymanski12345
Hi,

 I have to implement a ball and plate project using BBB.
I have the IR touchscreen connected on USB and the driver is working with a 
current Debian distribution, so I can see the mouse cursor moving when the 
ball is moving.
What is the easiest way to read the absolute mouse position?
After reading the position, it has to be sent frequently over UART to 
another microsystem.

Any advice on how to approach the coding of absolute mouse position?

Jan

-- 
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: change startup logo BBB debian

2014-06-25 Thread janszymanski12345
Thanks Andrew,

 Can you pass a link to a description how to create a new image?
The other question is: if possible to change the image later, after system 
is booted? If yes, how?

Jan

On Wednesday, 25 June 2014 21:43:08 UTC+10, Andrew Henderson wrote:

 You must recompile the kernel to change the image.  The image is compiled 
 directly into the kernel.

 Andrew


 On Wednesday, June 25, 2014 1:51:45 AM UTC-4, janszyma...@gmail.com wrote:

 Hi,

 I see the similar post here 
 https://groups.google.com/forum/embed/?place=forum/beagleboardshowsearch=trueshowpopout=trueshowtabs=truehideforumtitle=trueparenturl=http%3A%2F%2Fwww.beagleboard.org%2FCommunity%2FForums#!searchin/beagleboard/custom$20startup$20screen/beagleboard/10pnGDSH_FQ/cFXBPWXb_8kJ
  
 , but my question is:
 How to change the startup logo on BBB with Debian without recompiling the 
 whole image?
 I want to replace the Beagleboard.org + pequin with something else.

 Jan



-- 
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] change startup logo BBB debian

2014-06-24 Thread janszymanski12345
Hi,

I see the similar post here 
https://groups.google.com/forum/embed/?place=forum/beagleboardshowsearch=trueshowpopout=trueshowtabs=truehideforumtitle=trueparenturl=http%3A%2F%2Fwww.beagleboard.org%2FCommunity%2FForums#!searchin/beagleboard/custom$20startup$20screen/beagleboard/10pnGDSH_FQ/cFXBPWXb_8kJ
 
, but my question is:
How to change the startup logo on BBB with Debian without recompiling the 
whole image?
I want to replace the Beagleboard.org + pequin with something else.

Jan

-- 
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: ZigBee Home Automation Gateway reference design

2014-06-11 Thread janszymanski12345
answered here:
http://e2e.ti.com/support/wireless_connectivity/f/158/p/347662/1216914.aspx#1216914
 


On Wednesday, June 11, 2014 8:27:50 AM UTC+10, janszyma...@gmail.com wrote:

 Hi,

  There is a reference design from TI here 
 http://www.ti.com/tool/CC2531EM-IOT-HOME-GATEWAY-RD based on BBB (plus 
 CC2531EMK)
 Among features it states:
 Simple API for home automation, incorporating TCP/IP to ZigBee bridge and 
 enabling faster development of applications and easier integration of low 
 power connectivity solutions
 Has anyone have it running?
 How do access the API?
 Couldn't find any documents how to start with it (wiki?)

 Jan



-- 
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] ZigBee Home Automation Gateway reference design

2014-06-10 Thread janszymanski12345
Hi,

 There is a reference design from TI here 
http://www.ti.com/tool/CC2531EM-IOT-HOME-GATEWAY-RD based on BBB (plus 
CC2531EMK)
Among features it states:
Simple API for home automation, incorporating TCP/IP to ZigBee bridge and 
enabling faster development of applications and easier integration of low 
power connectivity solutions
Has anyone have it running?
How do access the API?
Couldn't find any documents how to start with it (wiki?)

Jan

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


Re: [beagleboard] Webserver Image Displaying

2014-06-09 Thread janszymanski12345
there are simple and useful tools to help you, like 
http://winscp.net/eng/index.php 
but still some basic understanding of what you're doing is required.

good luck,
Jan


On Tuesday, June 10, 2014 8:01:30 AM UTC+10, john3909 wrote:


 From: 'Ryan P.' via BeagleBoard beagl...@googlegroups.com javascript:
 
 Reply-To: beagl...@googlegroups.com javascript:
 Date: Monday, June 9, 2014 at 1:44 PM
 To: beagl...@googlegroups.com javascript:
 Subject: Re: [beagleboard] Webserver Image Displaying



 On Monday, June 9, 2014 4:22:43 PM UTC-4, Przemek Klosowski wrote:

 On Mon, Jun 9, 2014 at 4:15 PM, 'Ryan P.' via BeagleBoard 
 beagl...@googlegroups.com wrote: 

  
  ?php echo img src=\image.jpg\/; ? 
  
 For this to work , you need to have a file image.jpg in the same 
 directory as the php script; the file has to be readable to the 
 'world' or to the user/group under which the lighttpd process runs. 



 I had a hunch it was that.. 

 Any tips for going about doing that? 

 Start by reviewing the training material on free-electrons.com or buy a 
 book on using Linux. Specifically, you should review the Linux command line 
 docs:

 http://free-electrons.com/docs/command-line/

 Regards,
 John


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


[beagleboard] Re: console over cdc serial

2014-03-25 Thread janszymanski12345
ttyO0 is on Beaglebone side,
COM6 is on PC side.
So console=ttyO0,115200n8 stays the same.

On Wednesday, March 26, 2014 12:00:43 AM UTC+11, Robert Kuhn wrote:

 Hi,

 I have 
 console=ttyO0,115200n8
 in my uEnv.txt to have a console over serial port.

 No I installed the CDC serial driver and got COM6. Whats the corresponding 
 port on the linux side? So what do I have to use for console=
 console=tty,115200n8

 Thanks - Robert



-- 
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] switching distribution

2014-03-20 Thread janszymanski12345
Hi,

 I need to get back to BBB to do a project involving openCV.
I see here http://www.elinux.org/Beagleboard:BeagleBoneBlack the following 
statement:
We will be moving to Debian in the next few weeks

What distribution should I use if my basic concern is the application 
execution speed?
In the past I've used Angstrom and have some (little) experience with 
Ubuntu on desktop and know nothing about Debian.

Jan

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


Re: [beagleboard] switching distribution

2014-03-20 Thread janszymanski12345


On Friday, March 21, 2014 10:02:38 AM UTC+11, Gerald wrote:

 I would try the Debian version and see how it works for you. If something 
 is missing, you can ask an maybe it can get added.

 http://beagleboard.org/latest-images

 BTW, Ubuntu is based on Debian.

 Gerald


 Thanks,

 Looks like more things to learn and more problems to solve and I though I 
can go to the movies on weekend.
I need GUI for webcam and from what I see so far I need to install it 
myself for Ubuntu - so far it boots but no GUI
With a Debian image taken from the link provided I have the error:
Openbox Syntax Error.
One or more XML..
Start tag expected '' Not found
Nothing happens after that.
What is the fix?

Jan


 On Thu, Mar 20, 2014 at 5:58 PM, janszyma...@gmail.com javascript:wrote:

 Hi,

  I need to get back to BBB to do a project involving openCV.
 I see here http://www.elinux.org/Beagleboard:BeagleBoneBlack the 
 following statement:
 We will be moving to Debian in the next few weeks

 What distribution should I use if my basic concern is the application 
 execution speed?
 In the past I've used Angstrom and have some (little) experience with 
 Ubuntu on desktop and know nothing about Debian.

 Jan

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


Re: [beagleboard] switching distribution

2014-03-20 Thread janszymanski12345
Spot on, Robert,

Thanks and sorry I should think about it.
The Kingston cards coming with the boards usually fail soon.
Got a couple of new Sandisk 4Gb cards and I can make some progress.

cheers,

Jan


On Friday, March 21, 2014 1:41:27 PM UTC+11, RobertCNelson wrote:

 On Thu, Mar 20, 2014 at 9:33 PM,  janszyma...@gmail.com javascript: 
 wrote: 
  
  
  On Friday, March 21, 2014 10:02:38 AM UTC+11, Gerald wrote: 
  
  I would try the Debian version and see how it works for you. If 
 something 
  is missing, you can ask an maybe it can get added. 
  
  http://beagleboard.org/latest-images 
  
  BTW, Ubuntu is based on Debian. 
  
  Gerald 
  
  
  Thanks, 
  
   Looks like more things to learn and more problems to solve and I though 
 I 
  can go to the movies on weekend. 
  I need GUI for webcam and from what I see so far I need to install it 
 myself 
  for Ubuntu - so far it boots but no GUI 
  With a Debian image taken from the link provided I have the error: 
  Openbox Syntax Error. 
  One or more XML.. 
  Start tag expected '' Not found 
  Nothing happens after that. 
  What is the fix? 

 I've only seen this happen with one microSD card. (one that i've been 
 flashing daily for 6 months or so) It seems to happen when either your 
 usb-microsd adapter is failing or a bad microSD.  First try recreating 
 the microSD. 

 Regards, 

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


Re: [beagleboard] Angstrom Abandoned for BBB? Rumor + a Rant

2014-01-06 Thread janszymanski12345
IMHO, many people will pay a few dollars more for BBB hardware to cover for 
a software professional salary.
Do not let the BBB die.

On Sunday, January 5, 2014 11:35:34 AM UTC+11, William Hermans wrote:

 Personally, I'd rather that TI kept their sticky paws off of the 
 development as much as possible. Watching the SGX/DRM driver progression 
 should be warning enough.


 On Sat, Jan 4, 2014 at 5:24 PM, John Syne jsyn...@us-power.comjavascript:
  wrote:


 From: Anguel anguel@gmail.com javascript:
 Reply-To: beagl...@googlegroups.com javascript:
 Date: Saturday, January 4, 2014 at 3:09 PM
 To: beagl...@googlegroups.com javascript:
 Cc: jason@hangerhead.com javascript:
 Subject: Re: [beagleboard] Angstrom Abandoned for BBB? Rumor + a Rant



 On Saturday, January 4, 2014 3:20:07 PM UTC+1, Jason Kridner wrote:

 We are working with Robert Nelson's Debian images to try to produce an 
 out-of-box experience on par with the Angstrom images. Once we have a 
 few more features in, namely an updated Cloud9 IDE that works with 
 node 0.10, then we'll push out a beta image broadly for testing.


 It is good news that you are working with Robert on Debian. IMHO this is 
 the way to go. Robert is doing so much for the BBB community. TI should 
 support him in every way they can.
 It is a fact that BBB developer resources are extremely limited. So 
 efforts should really concentrate on getting the serious stuff working 
 properly, I mean the basic things a serious developer needs: kernel + 
 stability + Qt, because Linux is used for touch GUIs, not as a desktop 
 replacement.
 For me Linux Desktops, Cloud9, USB networking etc. is just a big waste of 
 precious development time, unless the intention is to fool new customers 
 that the BBB is something easy to use. This is definitely not the case and 
 will never be! Just have a look at all the posts in this thread.

 Actually, Cloud9 together with DojoToolKit is amazing for developing Web 
 based GUI. Using websockets makes the GUI very responsive.  



 The LCD Cape vendors should push support for their hardware into 
 https://github.com/beagleboard/kernel and 
 https://github.com/beagleboard/cape-firmware. CircuitCo does so. 
 Github pull requests are the best way to do so. 


 The problem with touch was that someone ported the ADC / touchscreen 
 stuff from an upcoming TI kernel to the 3.8 kernel and some things broke. 
 Then this somebody just did not have the time to fix the bugs and they 
 stayed there. I already discussed this in another thread.

 Use Capacitive based touchscreen. These interface via USB.



 Anguel

 -- 
 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...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.

  -- 
 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...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
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/groups/opt_out.