Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Any board support OTG HNP?

Featured Replies

I have an OrangePi PC and a BananaPi M1, and both of them are able to switch to USB host mode or device mode by editing dr_mode in corresponding .dtb file. But seems that both board are not able to support HNP protocol. 

 

From my understanding, OrangePi PC and BananaPi M1 only has perpherial-only OTG, please correct me if I am wrong.

 

Is there any board that can support HNP? I need something that can switch USB mode(from host mode to device mode or the other way around) without reboot the board

 

Any advice is appreciated

OrangePi PC can enable USB OTG by following the steps below.

 

$ cat /etc/debian_version
12.1

$ uname -a
Linux orangepipc 6.1.47-current-sunxi #1 SMP Wed Aug 23 15:52:42 UTC 2023 armv7l GNU/Linux

$ sudo sh -c "echo 'g_serial' >> /etc/modules"

$ cat /etc/modules
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
g_serial

$ sudo sh -c "echo 'ttyGS0' >> /etc/securetty"

$ cat /etc/securetty
ttyS0
ttyGS0

$ sudo systemctl enable serial-getty@ttyGS0.service

$ sudo shutdown -r now

 

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.