c++ - Intel Edison UART1 cannot export gpio 214 -
background: using "base block" power , access uart2 console on edison. have arduino block sketch print data serial. https://www.sparkfun.com/products/13036
the serial data transmitted arduino , intend use node script read data , perform network related functions. intel edison , nodejs serial port communication: receiving strange characters
i attempted follow edison serial instructions: https://communities.intel.com/message/265411#265411
however @ gpio configuration @ line 2 fails.
root@edison:~# echo -n "214" > /sys/class/gpio/export sh: write error: no such device
interestingly if run "uart.js" "intel edison , nodejs..." question data, it's not what's expected:
<buffer 84 e9 f3 f4 e1 ee c3 e5 7a 20 72 75 75 0d 0a 8d c5 f3 f3 c1 c7 e5 20 f3 e5 ee f4 7a 60 70 0d 0a c2 c5 e1 ed 40 e2 f2 cf eb e5 ce 7a 60 30 0d 0a> <buffer 84 c9 f3 f4 e1> <buffer ce e3 e5 7a 60 72 75 75 0d 0a 8d e5 f3 f3 e1 e7 c5 60 f3 c5 ce f4 3a 40 70 0d 0a 82 e5 c1 ed 60 e2 f2 ef eb c5 ee 7a 40 70 0d 0a>
lastly using mraa.getpincount(); 56 back. (found while searching around net)
thanks help!
it appears 115200 unusable baud edison serial arduino block! set baud 9600 , have gotten expected data.
additionally, gpio pins arduino block 130 , 131. (130==rx, 131==tx) echo -n 130 > /sys/class/gpio/export //may not need, may exported echo -n 131 > /sys/class/gpio/export //may not need, may exported echo mode1 > /sys/kernel/debug/gpio_debug/gpio130/current_pinmux // potentially unneeded well. echo mode1 > /sys/kernel/debug/gpio_debug/gpio131/current_pinmux // potentially unneeded well. echo in > /sys/class/gpio/gpio130/direction echo out > /sys/class/gpio/gpio131/direction .. cat /dev/ttymfd1
Comments
Post a Comment