Configuration related
Some3C.com – A Professional Solution for iOS Development and Testing
1.Get a list of connected hardware
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/config/usb/get
Request function name
httpGet request example
curl --request GET \
--url 'http://192.168.9.9:9911/api/config/usb/get'httpPost request example
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'content-type: multipart/form-data' \
--form fun=/config/usb/gethttpPost json request example [websocket can also send the same json request]
curl --request POST \
--url http://192.168.9.9:9911/api \
--header 'Content-Type: application/json' \
--data '{
"fun": "/config/usb/get",
"data": {
}
}'Response
Response data field description
Fields
illustrate
Remark
vid
-
pid
-
uid
Hardware ID
-
ver
Hardware version
-
2.Get a list of supported device type libraries
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/config/devicemodel/get
Request function name
httpGet request example
httpPost request example
httpPost json request example [websocket can also send the same json request]
Response
Response data data field description list array records the obtained data.
3.Get kernel configuration
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/config/imserver/get
Request function name
httpGet request example
httpPost request example
httpPost json request example [websocket can also send the same json request]
Response
Response data field description
Fields
illustrate
Remark
air_play_name
Display name on screen
-
mdns_type
Screencast Discovery Rules
0 allows all, 1 specifies the IP, 2 is the IP in the list
connect_failed_retry
Connection failed retry times
0 Infinite retries
air_play_ratio
Screen projection resolution
0Adaptive,720,1080,1400,1920,2650
opencv_num
Number of image search plugin instances
-
ocr_num
Number of OCR text recognition plug-in instances
Only the GPU version is effective
allow_ip_list
Allowed ip list
It only takes effect when the rule is 1.
air_play_fps
Screen projection fps
Maximum 30, minimum 1
air_play_img_fps
Projected image fps
Maximum 30, minimum 1
air_play_refresh_rate
Screen refresh rate
Maximum 60, minimum 1
air_play_port
Screen projection communication port
Default 17000
air_play_audio
Screen projection sound
true to enable, false to disable
auto_connect
Automatically connect to screen projection
-
auto_updata
Automatic Upgrade
-
thread_mode
Use thread mode to batch operate hardware
-
mouse_mode
Use fast and accurate mouse movement
-
flip_right
Horizontal screen flip right mode
-
4.Setting the kernel configuration
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/config/imserver/set
Request function name
air_play_name
String
Display name on screen
-
lang
String
Console Language
-
mdns_type
Integer
Screencast Discovery Rules
0 allows all, 1 specifies the IP, 2 is the IP in the list
connect_failed_retry
Integer
Connection failed retry times
0 Infinite retries
air_play_ratio
Integer
Screen projection resolution
0Adaptive,720,1080,1400,1920,2650
opencv_num
Integer
Number of image search plugin instances
-
ocr_num
Integer
Number of OCR text recognition plug-in instances
Only the GPU version is effective
allow_ip_list
String Array
Allowed ip list
It only takes effect when the rule is 1.
air_play_fps
Integer
Screen projection fps
Maximum 30, minimum 1
air_play_img_fps
Integer
Projected image fps
Maximum 30, minimum 1
air_play_refresh_rate
Integer
Screen refresh rate
Maximum 60, minimum 1
air_play_port
Integer
Screen projection communication port
Default 17000
air_play_audio
Boolean
Screen projection sound
true to enable, false to disable
auto_connect
Boolean
Automatically connect to screen projection
-
auto_updata
Boolean
Automatic Upgrade
-
thread_mode
Boolean
Use thread mode to batch operate hardware
-
mouse_mode
Boolean
Use fast and accurate mouse movement
-
flip_right
Boolean
Horizontal screen flip right mode
-
enable_hardware_acceleration
Boolean
Enable hardware decoding
Only the following settings do not require a kernel restart: [Console language, screen mirroring discovery rules, number of retries for connection failure, allowed IP list, automatic connection and screen mirroring, automatic upgrade, use thread mode for batch hardware operations, use fast and precise mouse movement, and use the mode of rotating the screen to the right in landscape mode]. All others require a kernel restart to take effect.
httpGet request example
httpPost request example
httpPost json request example [websocket can also send the same json request]
Response
Response data field description
Fields
illustrate
Remark
air_play_name
Display name on screen
-
lang
Console Language
-
mdns_type
Screencast Discovery Rules
0 allows all, 1 specifies the IP, 2 is the IP in the list
connect_failed_retry
Connection failed retry times
0 Infinite retries
air_play_ratio
Screen projection resolution
0Adaptive,720,1080,1400,1920,2650
opencv_num
Number of image search plugin instances
-
ocr_num
Number of OCR text recognition plug-in instances
Only the GPU version is effective
allow_ip_list
Allowed ip list
It only takes effect when the rule is 1.
air_play_fps
Screen projection fps
Maximum 30, minimum 1
air_play_img_fps
Projected image fps
Maximum 30, minimum 1
air_play_refresh_rate
Screen refresh rate
Maximum 60, minimum 1
air_play_port
Screen projection communication port
Default 17000
air_play_audio
Screen projection sound
true to enable, false to disable
auto_connect
Automatically connect to screen projection
-
auto_updata
Automatic Upgrade
-
thread_mode
Use thread mode to batch operate hardware
-
mouse_mode
Use fast and accurate mouse movement
-
flip_right
Horizontal screen flip right mode
-
enable_hardware_acceleration
Enable hardware decoding
5.Re-broadcast screen
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/imserver/regmdns
Request function name
httpGet request example
httpPost request example
httpPost json request example [websocket can also send the same json request]
Response
Response data data field description None
6.Restart the kernel
Calling
Request Parameters
parameter
type
illustrate
Remark
fun
String
/imserver/restart
Request function name
httpGet request example
httpPost request example
httpPost json request example [websocket can also send the same json request]
Response
Response data data field description None
Last updated