[beagleboard] TIDL

2020-04-16 Thread Robert Cachro
Hi,

The TIDL examples written for OpenCV GUI output found at 
(usr/share/ti/examples/tidl) function on the BeagleBone AI with image and 
video inputs but does not function with camera input. Specifically I am 
looking at the ssd_multibox demo which tidl-api documentation here states 
should function with camera (live video) input (
http://downloads.ti.com/mctools/esd/docs/tidl-api/example.html)


debian@beaglebone:/usr/share/ti/examples/tidl/ssd_multibox$ sudo 
./ssd_multibox -h

Usage: ssd_multibox
  Will run partitioned ssd_multibox network to perform multi-objects 
detection
  and classification.  First part of network (layersGroupId 1) runs on EVE,
  second part (layersGroupId 2) runs on DSP.
  Use -c to run a different segmentation network.  Default is jdetnet_voc.
Optional arguments:
 -c   Valid configs: jdetnet_voc, jdetnet
 -d   Number of dsp cores to use
 -e   Number of eve cores to use
 -iPath to the image file as input
  Default are 9 frames in testvecs
* -i cameraUse camera as input*
*  video input port: /dev/video*
 -i .{mp4,mov,avi}  Use video file as input
 -l Path to the object classes list file
 -f   Number of frames to process
 -w   Output image/video width
 -p   Output probability threshold in percentage
  Default is 25 percent or higher
 -v   Verbose output during execution
 -h   Help


I am executing demo on a monitor using a C1 Pro camera (
https://www.kurokesu.com/shop/CAMERA_C1_PRO) as input which has MJPG/YUYV 
(video1) and h.264 (video2) output.

debian@beaglebone:/usr/share/ti/examples/tidl/ssd_multibox$ v4l2-ctl 
--list-devices
vpe (platform:vpe):
/dev/video0

Kurokesu C1 PRO SN000163: Kurok (usb-xhci-hcd.1.auto-1.4):
/dev/video1
/dev/video2


Running the demo throws the following error (tried both video1/video2 with 
same output):

debian@beaglebone:/usr/share/ti/examples/tidl/ssd_multibox$ sudo 
./ssd_multibox -i /dev/video1
Input: /dev/video1
terminate called after throwing an instance of 'std::out_of_range'
  what():  basic_string::substr: __pos (which is 140) > this->size() (which 
is 0)


I understand this demo was initially written to run on the am572x evm with 
camera module but I'd like to get it running on the Beaglebone AI in lieu 
of the in progress mjpg-streamer version in cloud9

Any assistance would be much appreciated.

Thanks.

Rob


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


[beagleboard] Beaglebone Black new bwbasic-3.2a and relay cape program

2020-04-16 Thread KenUnix

4-16-2020

https://github.com/kenmartin-unix/Bwbasic-3.2a-for-BeagleBone

Fully working Bwbasic-3.2a & relays.bas to test and
operate and get the status of the relays on the cape.

Note this version corrected issues with version 2.2 & 3.2
which is the version you get 2.2 if doing a
sudo apt install bwbasic  from the command line in Debian.

When all done only two executable files are created.

See READMEFIRST on GitHub

Any issues open a new Issue in GitHub. Feedback is
also welcome.

This has been fully tested on the Beaglebone Black
running Debian 9 & 10.

This also works on other Linux platforms like Ubuntu,
Raspberry, Linux Mint, Zorin OS, Linux Lite, etc. but
no cape support of course.

As a side after installing Bwbasic-3.2a checkout the
BAS-EXAMPLES folder for examples of the many abilities
of Bwbasic aside from working on relays. If you desire
more info check out what's available in the INFO folder.

Ken

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


Re: [beagleboard] connmanctl Wi-Fi automation

2020-04-16 Thread Robert Cachro
Thank you Robert and Jon. Will test those methods tomorrow.

Regards,

Rob

On Thursday, April 16, 2020 at 7:03:31 PM UTC-5, jonnymo wrote:
>
> The other option is to use connmanctl via command line in your scripts:
>
>  $connmanctl config  --ipv4 manual   
>
> https://www.mankier.com/1/connmanctl
>
> http://variwiki.com/index.php?title=Static_IP_Address
>
>
> Cheers,
>
> Jon
>
> On Thu, Apr 16, 2020 at 4:47 PM Robert Nelson  > wrote:
>
>> On Thu, Apr 16, 2020 at 6:41 PM Robert Cachro > > wrote:
>> >
>> > We are upgrading our product from the BeagleBone Black to BeagleBone 
>> Black Wireless and have had a really tough with automating a connection 
>> using connmanctl. In our current product's commissioning process, a 
>> customer logs into their BB via either USB or AP mode (which is hosting a 
>> wifi configuration page) and is able to enter their Wi-Fi SSID/password 
>> which is then passed onto a script to establish a connection with their 
>> network. The original implementation simply modified the 
>> /etc/network/interfaces file and with ifup/ifdown established a connection 
>> with their wireless network. However, we have had zero luck automating this 
>> connection using connmanctl as it launches an interactive shell which makes 
>> it impossible for scripts to enter user passwords. Any thoughts??
>> >
>> > Started investigating /var/lib/connman/settings today but was hoping 
>> someone had success with this. Would hate to revert to our old method by 
>> uninstalling connmanctl.. Thanks.
>>
>> 2 options:
>>
>> You don't need to use the connman interactive shell, all connections
>> are stored under:
>>
>> /var/lib/connman/
>>
>> debian@bbgw-pwr15-ser23:~$ sudo cat
>>
>> /var/lib/connman/wifi_209148c9516a_584131302d576946692d5831_managed_psk/settings
>> [wifi_209148c9516a_584131302d576946692d5831_managed_psk]
>> Name=XA10-WiFi-X1
>> SSID=584131302d576946692d5831
>> Frequency=2412
>> Favorite=true
>> AutoConnect=true
>> Modified=2020-04-16T19:16:41.218495Z
>> Passphrase=**
>> IPv4.method=dhcp
>> IPv4.DHCP.LastAddress=192.168.1.155
>> IPv6.method=auto
>> IPv6.privacy=disabled
>>
>> 2nd, you don't "have" to use connman, we just use it by default it as
>> it works pretty decent for out of box..
>>
>> sudo apt remove connman --purge
>>
>> Then go back to /etc/network/interfaces...
>>
>> 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 beagl...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjQcscYK7ir0HJMnDt9AjxEUGqhTjRKJ9Y%3DGFNdkPmy%3Dw%40mail.gmail.com
>> .
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9030d221-23c2-44c1-b56d-ef2edfb2ec8c%40googlegroups.com.


Re: [beagleboard] connmanctl Wi-Fi automation

2020-04-16 Thread jonnymo
The other option is to use connmanctl via command line in your scripts:

 $connmanctl config  --ipv4 manual   

https://www.mankier.com/1/connmanctl

http://variwiki.com/index.php?title=Static_IP_Address


Cheers,

Jon

On Thu, Apr 16, 2020 at 4:47 PM Robert Nelson 
wrote:

> On Thu, Apr 16, 2020 at 6:41 PM Robert Cachro 
> wrote:
> >
> > We are upgrading our product from the BeagleBone Black to BeagleBone
> Black Wireless and have had a really tough with automating a connection
> using connmanctl. In our current product's commissioning process, a
> customer logs into their BB via either USB or AP mode (which is hosting a
> wifi configuration page) and is able to enter their Wi-Fi SSID/password
> which is then passed onto a script to establish a connection with their
> network. The original implementation simply modified the
> /etc/network/interfaces file and with ifup/ifdown established a connection
> with their wireless network. However, we have had zero luck automating this
> connection using connmanctl as it launches an interactive shell which makes
> it impossible for scripts to enter user passwords. Any thoughts??
> >
> > Started investigating /var/lib/connman/settings today but was hoping
> someone had success with this. Would hate to revert to our old method by
> uninstalling connmanctl.. Thanks.
>
> 2 options:
>
> You don't need to use the connman interactive shell, all connections
> are stored under:
>
> /var/lib/connman/
>
> debian@bbgw-pwr15-ser23:~$ sudo cat
>
> /var/lib/connman/wifi_209148c9516a_584131302d576946692d5831_managed_psk/settings
> [wifi_209148c9516a_584131302d576946692d5831_managed_psk]
> Name=XA10-WiFi-X1
> SSID=584131302d576946692d5831
> Frequency=2412
> Favorite=true
> AutoConnect=true
> Modified=2020-04-16T19:16:41.218495Z
> Passphrase=**
> IPv4.method=dhcp
> IPv4.DHCP.LastAddress=192.168.1.155
> IPv6.method=auto
> IPv6.privacy=disabled
>
> 2nd, you don't "have" to use connman, we just use it by default it as
> it works pretty decent for out of box..
>
> sudo apt remove connman --purge
>
> Then go back to /etc/network/interfaces...
>
> Regards,
>
> --
> Robert Nelson
> https://rcn-ee.com/
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to beagleboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/CAOCHtYjQcscYK7ir0HJMnDt9AjxEUGqhTjRKJ9Y%3DGFNdkPmy%3Dw%40mail.gmail.com
> .
>

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


Re: [beagleboard] connmanctl Wi-Fi automation

2020-04-16 Thread Robert Nelson
On Thu, Apr 16, 2020 at 6:41 PM Robert Cachro  wrote:
>
> We are upgrading our product from the BeagleBone Black to BeagleBone Black 
> Wireless and have had a really tough with automating a connection using 
> connmanctl. In our current product's commissioning process, a customer logs 
> into their BB via either USB or AP mode (which is hosting a wifi 
> configuration page) and is able to enter their Wi-Fi SSID/password which is 
> then passed onto a script to establish a connection with their network. The 
> original implementation simply modified the /etc/network/interfaces file and 
> with ifup/ifdown established a connection with their wireless network. 
> However, we have had zero luck automating this connection using connmanctl as 
> it launches an interactive shell which makes it impossible for scripts to 
> enter user passwords. Any thoughts??
>
> Started investigating /var/lib/connman/settings today but was hoping someone 
> had success with this. Would hate to revert to our old method by uninstalling 
> connmanctl.. Thanks.

2 options:

You don't need to use the connman interactive shell, all connections
are stored under:

/var/lib/connman/

debian@bbgw-pwr15-ser23:~$ sudo cat
/var/lib/connman/wifi_209148c9516a_584131302d576946692d5831_managed_psk/settings
[wifi_209148c9516a_584131302d576946692d5831_managed_psk]
Name=XA10-WiFi-X1
SSID=584131302d576946692d5831
Frequency=2412
Favorite=true
AutoConnect=true
Modified=2020-04-16T19:16:41.218495Z
Passphrase=**
IPv4.method=dhcp
IPv4.DHCP.LastAddress=192.168.1.155
IPv6.method=auto
IPv6.privacy=disabled

2nd, you don't "have" to use connman, we just use it by default it as
it works pretty decent for out of box..

sudo apt remove connman --purge

Then go back to /etc/network/interfaces...

Regards,

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

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


[beagleboard] connmanctl Wi-Fi automation

2020-04-16 Thread Robert Cachro
We are upgrading our product from the BeagleBone Black to BeagleBone Black 
Wireless and have had a really tough with automating a connection using 
connmanctl. In our current product's commissioning process, a customer logs 
into their BB via either USB or AP mode (which is hosting a wifi 
configuration page) and is able to enter their Wi-Fi SSID/password which is 
then passed onto a script to establish a connection with their network. The 
original implementation simply modified the /etc/network/interfaces file 
and with ifup/ifdown established a connection with their wireless network. 
However, we have had zero luck automating this connection using connmanctl 
as it launches an interactive shell which makes it impossible for scripts 
to enter user passwords. Any thoughts??

Started investigating /var/lib/connman/settings today but was hoping 
someone had success with this. Would hate to revert to our old method by 
uninstalling connmanctl.. 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/9de9f9d8-8d18-4fd2-ace3-42b2d08df5f0%40googlegroups.com.


[beagleboard] Re: segmentation fault PRU

2020-04-16 Thread TJF
Hi!

Am Dienstag, 14. April 2020 21:33:09 UTC+2 schrieb hellob...@gmail.com:
>
> i have error "Segmentation fault"
>

This run-time error most likely is coming form the call to function 
prussdrv_open() in your ARM code. There's no way to open the /dev/uio? 
device, due to missing write privilegues.

Either change the permissions of the /dev/uio* devices or excute your 
program with sudo.

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