Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide Ubuntu16.04 for rk"

From ESS-WIKI
Jump to: navigation, search
Line 22: Line 22:
  
 
Command
 
Command
 +
 +
<syntaxhighlight lang="bash">$ sudo su
 +
$ adv
 +
# echo Host >/sys/devices/platform/usb0/rk_usb_force_mode
 +
</syntaxhighlight>
  
 
== <span style="color:#0070c0">RS-485 Test</span> ==
 
== <span style="color:#0070c0">RS-485 Test</span> ==
Line 28: Line 33:
  
 
RK3399 Send Command
 
RK3399 Send Command
 +
  
 
<syntaxhighlight lang="bash">$ sudo su
 
<syntaxhighlight lang="bash">$ sudo su
Line 33: Line 39:
 
# stty -F /dev/ttyUSB0 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
 
# stty -F /dev/ttyUSB0 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
Please check return 115200
  
Please check return 115200
 
  
 
<syntaxhighlight lang="bash"># echo "123456abc" >/dev/ttyUSB0
 
<syntaxhighlight lang="bash"># echo "123456abc" >/dev/ttyUSB0
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
RK3399 Receive Command
  
RK3399 Receive Command
 
  
 
<syntaxhighlight lang="bash"># cat /dev/ttyUSB0 &
 
<syntaxhighlight lang="bash"># cat /dev/ttyUSB0 &
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 11:14, 19 August 2019

Linux BSP Version

Ubuntu16.04_aarch64

Ubuntu 16.04 Release Version

DS100 DIV0009 2019-08-17

Image Download Path

Ubuntu16.04_DS100_Image

Ubuntu16.04_DS100_Image_Checksum

Account and Password for Login

Account : adv Password: adv

Login.png

OTG port change Host mode

Command

$ sudo su
$ adv
# echo Host >/sys/devices/platform/usb0/rk_usb_force_mode

RS-485 Test

Rs485.png

RK3399 Send Command


$ sudo su
$ adv
# stty -F /dev/ttyUSB0 speed 115200 -hupcl -icrnl -ixon -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echok

Please check return 115200


# echo "123456abc" >/dev/ttyUSB0

RK3399 Receive Command


# cat /dev/ttyUSB0 &