I am not sure if you are still having issues - but I got this example 
working :

 https://github.com/jadonk/bonescript/blob/master/test/test-serial.js   

To get that version working, I had to do a few things:

1. you have to have python on your bone

# opkg update

# opkg install python-compiler
2. you need to shut off the python version check in 
/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js 
- I did this by typing

#nano /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js
then searching for semver.lt (^W) and then commenting out these lines (NOTE 
one does not get commented out):

 //     if (semver.gte(version, '2.7.3') && semver.lt(version, '3.0.0')) {

        getNodeDir()

 //     } else {

 //   failPythonVersion(version)

 //     }
3. switch paths to cloud9 (and maybe a reboot for good measure) - I am not 
sure why this is necessary - but it is...

cd /var/lib/cloud9

4. Then install the latest bonescript version (0.2.3)

npm install -g bonescript

5. test with

# node -pe "require('bonescript').getPlatform().bonescript"

6. then open cloud9 and run his example code - and all seemed to work


I hope that helps

On Monday, October 7, 2013 4:30:34 AM UTC-4, Dennis Osipov wrote:
>
> I would like to send and receive data from ttyO4 (P9_11, P9_13) using bone 
> script. Unfortunately I didn't find any projects or examples, how to make 
> it with bonescript. 
> It should be just a normal serial connection with 9600 baudrate. 
>
> Does anybody have some tips, how I can access ttyO4 with bonescript? 
>
> 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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to