It seems from the docs that in the default device tree, the uart pins are 
set to bidirectional. In serial communication TX should not be able to 
receive, and RX should not be able to send. I'm afraid that If I keep it 
default i.e. bidirectional, it might work weird or worst might fry the 
ports.

Well, thanks for the info. I'll try it. I'm a newbie, so still learning how 
to edit the device tree.

On Sunday, May 4, 2014 3:52:50 PM UTC+5:30, Chris Rogers wrote:
>
> The only changes I made were on the configure.js file (mentioned below) - 
> nothing to the device tree.  Just the steps below did not work or you?
>
> On Saturday, May 3, 2014 8:49:18 PM UTC-4, sarkar wrote:
>>
>> Thanks Chris!
>>
>> I need bit more help. Can you tell me how did you set up your device 
>> tree? Or it worked without editing the tree?
>>
>> On Saturday, November 9, 2013 11:12:00 PM UTC+5:30, Chris Rogers wrote:
>>>
>>> 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/d/optout.

Reply via email to