Hi Nahuel,

You can't cat the device file because linux doesn't allow concurrent access 
to the device file descriptor from more than one userspace program, and we 
need to open that device file from within our node.js program to write to 
the PRU. I do have a hardware UART looped back from the PRU into userspace, 
so I could use that for the communication back into userpace, but I would 
rather persevere and get the rpmsg subsystem working in a bi-directional 
mode.


On Thursday, 26 October 2017 21:57:02 UTC+1, Nahuel Greco wrote:
>
> doing "cat /dev/rpmsg_pruXX" shows any data? do you have a github repo 
> with a complete sample?
>
> Saludos,
> Nahuel Greco.
>
> On Mon, Oct 9, 2017 at 1:11 PM, Hugh Frater <[email protected] 
> <javascript:>> wrote:
>
>> Does anyone have any experience of working with /dev/rpmsg_pruXX files 
>> from within Node.Js/Bonescript? I've been playing around with the 
>> file-duplex package and have data going into the PRU just fine, but I'm 
>> having an issue getting data back into my userspace program. I've got the 
>> stream.on('data', function(data)) picking up that a data has been pushed 
>> into the rpmsg file from the PRU side, but I can't get any meaningful data 
>> into my program. I'm sending single character ascii characters as my data.
>>
>> Am I missing the 'proper' way to do this?
>>
>> -- 
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/beagleboard/666d2c51-fa4f-464b-83db-ffc7a158fecf%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/beagleboard/666d2c51-fa4f-464b-83db-ffc7a158fecf%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/07c3768b-461a-456f-aecd-f31600184ec7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to