Skip to content

Commit

Permalink
Add BlissEthernetManager
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikjesus committed Nov 25, 2023
1 parent 159ed59 commit 2952fc6
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 0 deletions.
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>
```


**&lt;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 '........')`
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2952fc6

Please sign in to comment.