-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
159ed59
commit 2952fc6
Showing
8 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
93 changes: 93 additions & 0 deletions
93
knowledgebase/bliss-bass/applications/BlissEthernetManager/BlissEthernetManager.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# BlissEthernetManager | ||
|
||
## Setting Up Ethernet Interfaces | ||
|
||
If your version of BlissBass comes with the Eternet Manager, then you are able to setup multiple ethernet interfaces and configure them. | ||
|
||
|
||
![alt_text](images/image27.png "ethernet settings UI") | ||
|
||
|
||
Clicking on the Interfaces item allows you to select the target Ethernet interface to view/edit. You may need to click the refresh button at the top for changes to be reflected. | ||
|
||
|
||
![alt_text](images/image10.png "ethernet interface selection") | ||
|
||
|
||
![alt_text](images/image11.png "Setting static ethernet IP") | ||
|
||
|
||
From there, you can set the interface as Up/Down, Unassigned/DHCP/Static, and depending on selection, you can set the interface IP, Gateway and DNS. | ||
|
||
|
||
|
||
* **IP and Subnet mask** are handled in the IP Address field (<IP Address>/<Subnet Mask>) | ||
* **Gateway Address** is handled through the Gateway Address field | ||
* **DNS** is handled through the DNS Addresses field | ||
|
||
|
||
![alt_text](images/image22.png "select ethernet connection type") | ||
|
||
|
||
![alt_text](images/image28.png "further info and options") | ||
|
||
|
||
### Bliss Ethernet Manager AIDL Interface: | ||
|
||
The source package for BlissEthernet Manager contains the framework and system libs for the AIDL interface. | ||
|
||
Gradle: | ||
|
||
|
||
``` | ||
implementation fileTree(dir: 'system_libs/', include: ['*.jar']) | ||
``` | ||
|
||
|
||
Java: | ||
|
||
|
||
``` | ||
BlissEthernetManager blissEthernetManager = BlissEthernetManager.getInstance(<Context>); | ||
blissEthernetManager.* | ||
``` | ||
|
||
|
||
AIDLs: | ||
|
||
|
||
![alt_text](images/image6.jpg "import and API example") | ||
|
||
|
||
![alt_text](images/image8.jpg "interface example") | ||
|
||
|
||
|
||
### Bliss Ethernet Manager ADB Interface: | ||
|
||
We also supply a simple interface using the service framework provided by Android that allows you to set **IP**, **DNS**, and **Gateway.** | ||
|
||
ADB Interface: | ||
|
||
|
||
``` | ||
adb shell service call blissethernet <code> <parameters> | ||
``` | ||
|
||
|
||
**<code>** is the method number in aidl | ||
|
||
1: getAvaliableInterfaces | ||
|
||
2: isAvaliable | ||
|
||
3: Etc… | ||
|
||
Examples: | ||
|
||
|
||
|
||
1. getAvaliableInterfaces: | ||
2. `x86_64:/ # service call blissethernet 1 s16 eth0 Result: Parcel( 0x00000000: 00000000 00000002 00000004 00740065 '............e.t.' 0x00000010: 00300068 00000000 00000004 00740065 'h.0.........e.t.' 0x00000020: 00310068 00000000 'h.1..... ')` | ||
3. isAvaliable: | ||
4. `x86_64:/ # service call blissethernet 2 s16 eth0 Result: Parcel(00000000 00000001 '........')` |
Binary file added
BIN
+27.2 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image10.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34.9 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image11.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+34 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+22.3 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image27.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+25.7 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image28.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+117 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image6.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.5 KB
knowledgebase/bliss-bass/applications/BlissEthernetManager/images/image8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.