[beagleboard] Re: Using UART with bonescript

2021-02-24 Thread Scott Mulder
Not positive, but I think you misnamed the file in 
/lib/systemd/system/config_custom.sh when it should have ended in service.


On Monday, April 1, 2019 at 10:15:30 AM UTC-4 catalin...@gmail.com wrote:

> Your issue might be different, depending on what you have installed, but 
> I'll write down what solution worked for me(I used socket.io and 
> serialport):
> - clean install of Debian 8.3(should be the same for newer dists)
> - npm install socket.io
> - npm install serialport
> - apt-get update
> - apt-get dist-upgrade
> - cd /var/lib/cloud9 npm update
>
> - create config_custom.sh
> - nano /usr/bin/config_custom.sh
> #!/bin/bash
> config-pin P9.24 uart 
> config-pin P9.26 hart
>
> - set execution rights
> - chmod u+x /usr/bin/config_custom.sh
> - create service 
> - nano /lib/systemd/system/config_custom.sh
>
> [Unit]
> Description=Config uart1 ex tx pins
> After=generic-board-startup.service
>
> [Service]
> Type=simple
> ExecStart=/usr/bin/config_custom.sh
>
> [Install]
> WantedBy=multi-user.target
>
> - enable service
> systemctl daemon-reload
> systemctl enable config_custom.service
>

-- 
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/7a2e7511-799d-4e4b-9e64-5b7e98894dcan%40googlegroups.com.


[beagleboard] Re: Using UART with bonescript

2019-04-01 Thread catalin . miclea
Your issue might be different,  depending on what you have installed, but I'll 
write down what solution worked for me(I used socket.io and serialport):
- clean install of Debian 8.3(should be the same for newer dists)
- npm install socket.io
- npm install serialport
- apt-get update
- apt-get dist-upgrade
- cd /var/lib/cloud9 npm update

- create config_custom.sh
- nano /usr/bin/config_custom.sh
#!/bin/bash
config-pin P9.24 uart 
config-pin P9.26 hart

- set execution rights
- chmod u+x /usr/bin/config_custom.sh
- create service 
- nano /lib/systemd/system/config_custom.sh

[Unit]
Description=Config uart1 ex tx pins
After=generic-board-startup.service

[Service]
Type=simple
ExecStart=/usr/bin/config_custom.sh

[Install]
WantedBy=multi-user.target

- enable service
systemctl daemon-reload
systemctl enable config_custom.service

-- 
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/f9d90409-f99b-4ede-a83c-1c79a3a3f6f3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Using UART with bonescript

2019-04-01 Thread madproc12
I get the same error when I run the script "kernel does not include CapeMgr 
module" Were you ever able to find a solution to this problem? I am running 
the same code example using bonescript but no luck. 


On Sunday, January 14, 2018 at 2:00:54 PM UTC-5, shant...@gmail.com wrote:
>
> Hi,
>
> I am seeing the same error  when trying to read from serial port UART4.
> "kernel does not include capemgr module " 
>
> Any help please?
>
>
> On Friday, April 1, 2016 at 12:06:01 AM UTC+5:30, Wally Bkg wrote:
>>
>> I don't think this is the problem.  /dev/ttyS1 exists and works with 
>> minicom (as root, after doing the config-pin uart commands)  /dev/ttyO1 is 
>> a link to /dev/ttyS1.  While it may not be "optimal" by default the 
>> Bonescript and Cloud9 stuff run as root, which I think is a good choice 
>> initially as there would be no end to permission problems, especially from 
>> Beaglebone users with Windows hosts.
>>
>> I don't think anyone should put a Beaglebone or Raspberry Pi, etc. live 
>> on the Internet, if you need to do it that's a whole lot of extra expertise 
>> required.  OTOH I'm happy with my IOT SBCs running behind a solid firewall 
>> for outgoing connections with trusted status among them after setting 
>> strong passwords on the default accounts and disabling root login over SSH. 
>>  If I needed to serve up data to the live Internet from my IOT devices, I'd 
>> use a third party website as a middle man -- one of the public mqtt brokers 
>> would be a good place to start depending how "private" you need to keep 
>> your data.  
>>
>>
>> On Thursday, March 31, 2016 at 12:57:37 PM UTC-5, boris.k...@gmail.com 
>> wrote:
>>>
>>> sudo groups $username | grep dialout > /dev/null
>>> reboot
>>>
>>> sudo sh -c "echo 'BB-UART1' > /sys/devices/platform/bone_capemgr/slots"
>>> cat /sys/devices/platform/bone_capemgr/slots
>>>
>>> 0: PF  -1 ne_capemgr/slots"pploader/bin# sh -c "echo 'BB-UART1' > 
>>> /sys/devic
>>>  1: PF  -1 
>>>  2: PF  -1 
>>>  3: PF  -1 
>>>  4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1
>>>
>>>

-- 
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/3c6a42cf-2797-48f0-8bc2-c6940d7b61da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Using UART with bonescript

2018-01-14 Thread shanti . putta
Hi,

I am seeing the same error  when trying to read from serial port UART4.
"kernel does not include capemgr module " 

Any help please?


On Friday, April 1, 2016 at 12:06:01 AM UTC+5:30, Wally Bkg wrote:
>
> I don't think this is the problem.  /dev/ttyS1 exists and works with 
> minicom (as root, after doing the config-pin uart commands)  /dev/ttyO1 is 
> a link to /dev/ttyS1.  While it may not be "optimal" by default the 
> Bonescript and Cloud9 stuff run as root, which I think is a good choice 
> initially as there would be no end to permission problems, especially from 
> Beaglebone users with Windows hosts.
>
> I don't think anyone should put a Beaglebone or Raspberry Pi, etc. live on 
> the Internet, if you need to do it that's a whole lot of extra expertise 
> required.  OTOH I'm happy with my IOT SBCs running behind a solid firewall 
> for outgoing connections with trusted status among them after setting 
> strong passwords on the default accounts and disabling root login over SSH. 
>  If I needed to serve up data to the live Internet from my IOT devices, I'd 
> use a third party website as a middle man -- one of the public mqtt brokers 
> would be a good place to start depending how "private" you need to keep 
> your data.  
>
>
> On Thursday, March 31, 2016 at 12:57:37 PM UTC-5, boris.k...@gmail.com 
> wrote:
>>
>> sudo groups $username | grep dialout > /dev/null
>> reboot
>>
>> sudo sh -c "echo 'BB-UART1' > /sys/devices/platform/bone_capemgr/slots"
>> cat /sys/devices/platform/bone_capemgr/slots
>>
>> 0: PF  -1 ne_capemgr/slots"pploader/bin# sh -c "echo 'BB-UART1' > 
>> /sys/devic
>>  1: PF  -1 
>>  2: PF  -1 
>>  3: PF  -1 
>>  4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1
>>
>>

-- 
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/7334e814-dfb7-48d2-a8c0-b934a6cbbefc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Using UART with bonescript

2016-03-31 Thread Wally Bkg
I don't think this is the problem.  /dev/ttyS1 exists and works with 
minicom (as root, after doing the config-pin uart commands)  /dev/ttyO1 is 
a link to /dev/ttyS1.  While it may not be "optimal" by default the 
Bonescript and Cloud9 stuff run as root, which I think is a good choice 
initially as there would be no end to permission problems, especially from 
Beaglebone users with Windows hosts.

I don't think anyone should put a Beaglebone or Raspberry Pi, etc. live on 
the Internet, if you need to do it that's a whole lot of extra expertise 
required.  OTOH I'm happy with my IOT SBCs running behind a solid firewall 
for outgoing connections with trusted status among them after setting 
strong passwords on the default accounts and disabling root login over SSH. 
 If I needed to serve up data to the live Internet from my IOT devices, I'd 
use a third party website as a middle man -- one of the public mqtt brokers 
would be a good place to start depending how "private" you need to keep 
your data.  


On Thursday, March 31, 2016 at 12:57:37 PM UTC-5, boris.k...@gmail.com 
wrote:
>
> sudo groups $username | grep dialout > /dev/null
> reboot
>
> sudo sh -c "echo 'BB-UART1' > /sys/devices/platform/bone_capemgr/slots"
> cat /sys/devices/platform/bone_capemgr/slots
>
> 0: PF  -1 ne_capemgr/slots"pploader/bin# sh -c "echo 'BB-UART1' > 
> /sys/devic
>  1: PF  -1 
>  2: PF  -1 
>  3: PF  -1 
>  4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1
>
>

-- 
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: Using UART with bonescript

2016-03-31 Thread boris . kochetkov
sudo groups $username | grep dialout > /dev/null
reboot

sudo sh -c "echo 'BB-UART1' > /sys/devices/platform/bone_capemgr/slots"
cat /sys/devices/platform/bone_capemgr/slots

0: PF  -1 ne_capemgr/slots"pploader/bin# sh -c "echo 'BB-UART1' > 
/sys/devic
 1: PF  -1 
 2: PF  -1 
 3: PF  -1 
 4: P-O-L-   0 Override Board Name,00A0,Override Manuf,BB-UART1


среда, 30 марта 2016 г., 13:05:46 UTC+3 пользователь dorica написал:
>
> Hi.
> I have a BBB rev C, with Debian 8.3, kernel 4.1.15-ti-rt-r40. I am logged 
> in as a regular user (not root). I loaded BB-UART1 overlay, to activate 
> UART1 (tried to load cape-universal first, then apply BB-UART1, but could 
> not do it both, so I have settled to BB-UART1). I have installed minicom, 
> and uart works just fine (tested with link to a PC, via FTDI cable).
> I wrote a script to check the UART, using Cloud9 editor on BBB. the Code 
> follows:
> //
> var uart1var = require("bonescript");
> var port = '/dev/ttyO1';
> var options = {
>
> baudrate: 9600
>
> };
> uart1var.serialOpen(port, options, onSerial);
> uart1var.serialWrite(port,'TEST');
> function onSerial(x) {
>
> if (x.err) {
>
> console.log('***ERROR*** ' + JSON.stringify(x));
>
> }
>
> if (x.event == 'open') {
>
>console.log('***OPENED***');
>
> }
>
> if (x.event == 'data') {
>
> console.log(String(x.data));
>
> }
> }
> //***
>
> When I run the script I get <***ERROR*** {"err":"Kernel does not include 
> CapeMgr module"}>, and I don/t know why. Any ideas where to look and what 
> to do?
> Do I need to run a "npm install -g serialport"? I understand that 
> bonescript uses the same library, and is already installed.
> If there is need for more info regarding the configuration of BBB, just 
> say and will be done.
>
> PS. The BBB will be a remote machine, so all configuration must be loaded 
> at boot or run by scripts at boot by a regular user (not root). The script 
> containing the code for UART will also be running automatically, and serve 
> a web page, using socket.io (the socket.io part seems to work fine).
>
>

-- 
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: Using UART

2014-11-04 Thread faimbs
Hello!

Many thanks for your answer!

I also found that the UART DeviceTree are already available.

I have just the problem with echo and cat that he send sometimes more 
Characters.
When I send Hello I receive Hello
When I send again Hello, I receive HHello

Did you have an idea? Minicom I have to study how it works.

Thank you!

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
BeagleBoard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[beagleboard] Re: Using UART

2014-11-02 Thread faimbs
btw: I miss also the path: /sys/kernel/debug/omap_mux/

I found some help in the internet, but all are using this path, what I 
doesn´t has.
BBB is brand new.

-- 
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: Using UART

2014-11-02 Thread gntoni
You can use one of the overlays here to set the different 
UARTS: https://github.com/gntoni/projectM/tree/master/devTree

A good way to test if it is working is to place a wire between pins Tx and 
Rx.
You can use minicom

 sudo minicom -b 9600 -D /dev/ttyO1

and check that you can see what you are writing. This means the feedback is 
working.

If you type

 echo hello  /dev/ttyO1

while having minicom open you should be able to see hello printed on the 
minicom screen.
 

On Sunday, November 2, 2014 1:31:28 PM UTC+1, faimbs wrote:

 btw: I miss also the path: /sys/kernel/debug/omap_mux/

 I found some help in the internet, but all are using this path, what I 
 doesn´t has.
 BBB is brand new.


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