|
|
Line 1: |
Line 1: |
| == Overview ==
| | {{Migrating|https://smartpossdk.gitbook.io/cloudpossdk/faq/other-development/retrieve-terminal-info}} |
| This guide details how to access various system information on Point of Sale (POS) terminals, including brand, manufacturer, and product model.
| |
| == Understanding Available Information ==
| |
| * POS systems store key information such as the brand, manufacturer, and product model. This information can be crucial for various application functionalities.
| |
| {| class="wikitable" | |
| |-
| |
| ! Product Name/Property Name !! ro.product.brand !! ro.product.manufacturer !! ro.product.model !! Settings Display/Build.MODEL !! ro.wp.product.model !! ro.wp.product.submodel
| |
| |-
| |
| | W1 || wizarPOS|| wizarPOS|| WIZARPOS_1|| WIZARPOS 1|| W1||
| |
| |-
| |
| | W1V2|| wizarPOS|| wizarPOS|| WIZARPOS_1|| WIZARPOS 1|| W1v2 ||
| |
| |-
| |
| | PAD1 || wizarPOS|| wizarPOS|| WIZARPAD_1 || WIZARPAD 1 || PAD1||
| |
| |-
| |
| | Q1 || wizarPOS|| wizarPOS|| WIZARHAND_Q1|| WIZARHAND Q1|| Q1||
| |
| |-
| |
| | Q14G || wizarPOS|| wizarPOS|| WIZARHAND_Q1|| WIZARHAND Q1|| Q1v2||
| |
| |-
| |
| | Q2 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2|| Q2 || Q2
| |
| |-
| |
| | Q2 Android 7 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2|| Q2A7 || Q2
| |
| |-
| |
| | Q2 Premium || wizarPOS|| SHWP|| WIZARPOS_Q2|| WIZARPOS Q2|| Q2P || Q2
| |
| |-
| |
| | K2 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2(K2)|| Q2 || K2
| |
| |-
| |
| | M2 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2(M2)|| Q2 || M2
| |
| |-
| |
| | QD4 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2(QD4)|| Q2 || QD4
| |
| |-
| |
| | QD5 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2(QD5)|| Q2 || QD5
| |
| |-
| |
| | QD6 || wizarPOS|| wizarPOS|| WIZARPOS_Q2|| WIZARPOS Q2(QD6)|| Q2 || QD6
| |
| |-
| |
| | Q3 || wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3A7
| |
| |-
| |
| | Q3B|| wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3B
| |
| |-
| |
| | Q3K|| wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3K
| |
| |-
| |
| | Q3PIN|| wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3PIN
| |
| |-
| |
| | Q3R|| wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3R
| |
| |-
| |
| | Q3V|| wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3V
| |
| |-
| |
| | Q3W || wizarPOS|| wizarPOS|| WIZARPOS_Q3|| WIZARPOS Q3|| Q3A7 || Q3W
| |
| |}
| |
| | |
| == Method for Retrieval ==
| |
| * Android offers a straightforward approach to retrieve this system information.
| |
| * You can use specific code snippets (provided below) to access these details programmatically.
| |
| <syntaxhighlight lang="java">
| |
| String model = getSystemPropertie("ro.wp.product.model").trim()
| |
| public static String getSystemPropertie(String key) {
| |
| Object strVersion = null;
| |
| try {
| |
| Class<?> systemProperties = Class.forName("android.os.SystemProperties");
| |
| Log.i("systemProperties", systemProperties.toString());
| |
| strVersion = systemProperties.getMethod("get", new Class[] { String.class, String.class }).invoke(systemProperties, new Object[] { key, "unknown" });
| |
| Log.i("strVersion", strVersion.getClass().toString());
| |
| } catch (Exception e) {
| |
| e.printStackTrace();
| |
| }
| |
| return strVersion.toString();
| |
| }
| |
| </syntaxhighlight >
| |