RPI or other SBC
There are many Q-net ticket dispensers available in our portfolio, which are equipped with ARM SBPC (Single Board PC), such as Raspberry Pi or Rock Pi. These devices are running Linux OS with our integrated software modules. We preinstall the operating system on devices of this type using an image file, which we refer to as firmware in our terminology. Software update for devices of this type involves rewriting the firmware image file. Moreover, no additional software installation is necessary for these devices.
Firmware configuration
The ticket dispenser configuration can be done either through the control panel displayed on its screen or remotely through a web browser. In both cases, you need to enter a password on the interface, which is "qnet1234".
After the ticket dispenser connected to the network it will show its current IP address on the top of the screen. (It is shown only until waiting for the connection to the server.) Enter this IP address to a browser to open the control panel remotely.
Alternatively it is possible to connect to the device with a smart phone: By default the device's wifi interface is working as an access point. The wifi network SSID generated using the WSID, for example: "qnet-sh74-51112-AP" Select this network on your phone and use the default "qnet1234" password to establish the connection. After successful connection you might get a notification that this network doesn't provide Internet and you'll need to confirm to keep connected.
Open a browser and enter http://192.168.4.1 or http://qnet.wlan to open the control panel.
Main screen
After the device starting, this screen will appear. In this screen the system will wait 10 seconds to any touch event, then it tries to connect to the server and start the application. If any touch event occurs, the timer will stop and it will be possible to access the Control Panel.
Items on the screen:
Upper left
Here are the resource details of the device. The CPU, memory and storage usage. Below the small icons displays the status of the device (from left to right):
- DeviceController is installed and running
- Ethernet cabel connected
- Onboard Wi-Fi available
- Microphone connected
- Webcamera connected (ticket dispenser)
Upper middle
From top to bottom:
- The device’s MAC address
- The device’s IP address
- The device’s WSID
The WSID is automatically generated at the first start. The ID is user-friendly, includes the code of the running software module and the IP address received at first start. This WSID can be change on the setting tab.
The device controllers WSID generated the same way, but with a “dc-“prefix.
Upper right
The device’s actual date and time.
Function buttons on the bottom
If the device has onboard Wi-Fi, a Wi-Fi button on the right will appear. It is possible to turn on the Wi-fi in AP(Access point). More information about this can be found at the configuration section. The button on the right opens the application’s page. If the server is available, the button will turn to green.
Waiting for the server
This screen will appear, if the timer expired on the Main screen or we press the “Open the app” button. In this case the firmware checks, that the previously configured server is online (the server address should be visible at the middle of the screen), if yes, it will jump to the application screen. If the connection is not yet available, the device will show this screen, and will continuously try to establish the connection.
Control Panel
The control panel menu is to configure the device, monitor the resources, test the hardware devices and check log files.
Login
Before you can access to the Control Panel, login is required. You must enter the password here, to prevent unauthorized logins. The default password is: “qnet1234”
Control panel
Dashboard
After successful login, this screen will be shown. This page includes summarized information about the device and we can reboot it. („Reboot device”) The "Developer tools" button opens a developer console on the screen of the device for troubleshooting purpose.
On the bottom left, we can see additional information. The green globe means, that the device has working internet connection.
Settings
You can set up the device’s parameters here. The „Basic” and „Advanced” buttons can hide and unhide additional options.
From top to bottom:
- Websocket ID, and screen rotating
- Device Controller WSID, the listening port(for SD20) and Apikey used for the server connection
- Server connection settings (protocol, Q-net server IP address or host name, Q-net server port)
- Network settings (DHCP or static)
- Date and time configuration (timezone, time server or manual date and time settings)
- Nightly restart. Due to the long term usage of the browsers, in order to avoid having any memory leak, it is recommended to restart the device periodically. This function restarts the device at the previously set time. Best time for this is before the opening hours.
- Video settings - allows to adjust the screen resolution. Depending on the device type the list might be limited, including only the supported values.
- Monitoring service - opens TCP9100 port for node exporter, which you can use for external monitoring system, e.g. Grafana.
Press "Save" button to keep the modified settings. The device will reboot using the new configuration parameters.
HW test
In this page it is possible to test every connected device. Some of these options only available, if the hardware is connected to the device.
- Printer test 2” – Printing 2” test ticket
- Printer test 3” – Printing 3” test ticket
- Paint – testing touch panel with Paint (exit with double touch)
- Calibration – touch calibration
- Monoscope (exit with double touch)
- Pixel test – For testing LCD pixels. Red, green, blue, white and black screens are switching (exit with double touch)
- Voice record test – microphone test (record, then play). It is recommended to try this on PC.
- Start player – video player test. It can be useful in case of media player. Omxplayer will be started with a sample video. (exit with double touch)
- Start camera – starts to show the connected webcamera. It works only with remote access. (Exit by clicking “HW test” button again)
Logs
It is possible to check the device log files here.
- System – log of the operation system. Messages, alerts and errors regarding the operation system (/var/log/syslog)
- Device Controller – log file of the Device Controller service. It always shows the logs of the last day (opt/qnet/dc/logs/*.log)
- Firmware – the log of the firmware (that provides this surface) itself. (/var/log/firmware.log)
In case a new event written to the log file, it will automatically show up here, no need to refresh. Due the limited resources, only the last 1000 lines are visible here.
The „Stop following” button turn off the auto refresh. With remote access it is also possible to download the whole log file with the “Download” button.
Remote screens
The below options are available in remote access mode only.
Terminal
In this surface, we get a remote terminal in the browser, logged in with “root” user! Every command is usable, same like an SSH connection. If an another menu is selected on the left, the terminal will close automatically.
VNC
Provides remote view to the screen of the device. It can be useful for a ticket dispenser or media player in otder to check if some configuration changes were really applied.
Important! The video player’s screen might not be visible through VNC! It is possible to check that the video player is running, in the terminal, type “htop” command and check”omxplayer” process is running.
The VNC transfers keyboard, mouse movement and clicks as well. The F5 and F12 buttons are useable as well. These buttons will be transferred to the device and not run in the local browser.
The VNC is also accessible via vncviewer, on the standard way. The password is “qnet1234”.
Server
This menu opens the server start page, allows to reach the admin page, statistics, etc. It is accessible only if the server is configured and online.
Q-net v7 application screen
After the configuration is done, the firmware should forward us to the application itself.(ticket dispenser, media player, feedback). The application can be closed by touching the top-left, bottom left, top-left, bottom left corner of the screen within a few seconds, after this you will be returned to the firmware’s main page.
This exit method works with all application (feedback, software keyboard, media player)
The following hotkeys are also available:
- F5 – refresh screen without cache
- F12 – open developer tools
Configuration options
Configuration locally
In case of touchscreen devices, the configuration is the easiest locally, on the device. After the device starts, it is possible to enter the Control Panel by touching the screen. A virtual keyboard can be used to fill text fields.
Tutorial video: https://youtu.be/Eb7gZwwy4fA
Remote configuration
The control panel also accessible remotely on a PC or notebook. To remote access, enter the device’s IP address to a browser.
Tutorial video: https://youtu.be/MWxSyYSKXY8
Configuration from mobile (ap mode)
Also it is possible to turn on the WiFi in AP mode. The devices can be configured this way even by using a mobile phone.
Usually the customer does not have available WiFi connection, where both the device and our mobile could connect. In this case the device itself turn on the WiFi in AP mode, so we can connect to the device. The Wifi SSID is the WSID of the device with an „-AP” suffix.
*The password is the default qnet1234. *
The only available website on this Wifi is the website of the firmware on the http://qnet.wlan or http://192.168.4.1 URL.
Tutorial video: https://youtu.be/Yqf1um1MISE
Useful commands
- htop – check running processes
- df –ahl – show free space
- arecord -l | grep Sound – microphone connected
- ls /dev/video0 – webcamera connected
- netstat -tulpn | grep 80 – checking port 80
- cat /boot/config.txt | grep rotate – read screen orientation
- sudo touch /forcefsck – check filesystem at next start
Printer configuration
After the Device Controller connected to the server, it will appear automatically on the Adnministrative page, under "Unassigned devices":
Select it, and on the right side choose the branch from the drop-down list which the Device controller belongs to.
Select the branch you are configuring on the top-left corner, and click on "Printers" menuitem under "Devices". Click on "New" button to add the printer. Choose "Filesystem-based printer" at the "Type" field, enter a name for the printer. Select the Device controller by its ID. You should use the one which has the same WSID as what you can find on the control panel of the ticket dispenser machine. At "Blank header size" you can define a value which will be a top margin of the ticket. (Without it the top of the ticket might be cut by the printer). In case of this printer type about 15px is the proper value. Click on "Save" to keep the adjusted parameters. With the help of "Print test" button you can check if the settings are OK.