Voucher print for Android / Windows - free Demo version available

Updated on 30/05/2014

Published a Demo versión of HotSpot Manager for Android. All the features of the paid version are available in this demo version. The only limitation is that the ticket will not include the password of the generated user.

You can download the demo version at https://play.google.com/store/apps/details?id=es.infinitel.hotspot.demo

Updated on 16/12/2013

Update Windows CLI app to solve errors on RouterOS 6.3 or higher

Updated on 10/09/2013

Update Android app to prevent a printing error with RouterOS 6.3


Now you can test an Windows CLI (command line interface) executable that can generate random user/password for Mikrotik hotspots. It’s attached to this post as HotSpotCli.rar. It uses an esc/pos printer installed on the Windows PC so you don’t need a network thermal printer.

Run it as:

hotspotcli.exe [um profile]

And it will connect to the User Manager, generate an username and password and then print a voucher. Run it without parameters to view the syntax and a list of available printer names.

To set it up edit the settings.properties file and set your deployment values:

router_address=[router ip address]
router_port=[api service port]
router_user=[api username]
router_pass=[api user password]
userman_customer=[user manager profile]
userman_prefix=[generated hotspot username prefix]
userman_name_length=[random username length]
userman_pass_length=[random password length]
qr_address=[bidi values]
qr_redir=[bidi values] check HotSpot Manager for Android docs for bidi/qrcode functionality info.
printer=[name of printer or empty for default system printer]

And edit the ticket.txt file to setup the voucher format. For the ticket grammar check the HotSpot Manager for Android docs attached to this post.

Requires Java Runtime 1.6 or higher installed.

Original Message
Hi,

We’ve recently published an app to manage a small hotspot deployment from an Android device. The app connects to User Manager through API and generates a random user/password with the selected credit(v4.17)/profile(v5.12+) then prints a ticket through a ESC/POS network ticket printer.

The app main screen shows a button for each credit/profile configured, and when clicked it creates a new user with that credit/profile and prints a ticket.

We are currently working on it to improve it’s funtionality and we hope to add new features to the app.

At the moment it supports:

RouterOS/User Manager versions 4.17, 5.12 or higher
ESC/POS network ticket printer (ethernet or wireless)
Configurable printer ticket output
Multiple credits/profiles
On 4.17 the button takes the credit’s comment value as text, on 5.12+ it takes name-for-user’s value.
Configurable username prefix
Configurable random username length
Configurable random password length

You can find more info on Google Play: https://play.google.com/store/apps/details?id=es.infinitel.hotspot

There you can find some screenshots and a demo video that shows it working with a Samsung Galaxy S2 as android device, a RB751G as ap/hotspot/user manager and a Sewoo LK-T210 ticket printer.

If you need any other info you can find it at http://www.infinitel.es/hotspot_en.html. Just contact us if you need more detailed information.

Update 10/09/2013
1.6.1

  • Fixes printing error on RouterOS 6.3

Update 28/05/2013
1.6

  • Added the ${time} tag to be used in the ticket template. Prints the current time and date.

Update 22/05/2013
1.5.1

  • Now supports RouterOS 6.0
    1.5
  • Added option to register a list of predefied usernames that can be reused. A selectable droplist will appear on the main screen and you can choose AUTO to generate a random user or a predefined user name to delete the current user with the same name and create a new one with the same name and the selected profile.

Update 02/Aug/2012
Version 1.4 changelog:

  • Added option to generate usernames randomly or sequentially
  • Solved error with Mikrotik RouterOS with beta/rc version numbers

Version 1.3 changelog:

  • App name/Icon/Logo changed to a more neutral/no mark look
  • Added an option to customize the main screen’s logo
  • The settings screen can be password protected
    hotspotcli_1.3.rar (185 KB)
    User Manual.pdf (554 KB)

We’ve just published a new update with new features:

1.2
Rebuilt printer libraries

  • Added formating tags: bold, underlined, double tall, double wide, alignment left,center or right.
  • Added logo printing support.
  • Added QRCode printing support.
  • Added paper cut support.
    User manual available at product’s page.

1.1
Added support for Mikrotik User Manager 4.17.
Better handling of connection errors.

1.0
Initial Release.

Wow this is really nice!

I’ve attached the user’s manual to the first post.

New version 1.3 changelog:

  • App name/Icon/Logo changed to a more neutral/no mark look
  • Added an option to customize the main screen’s logo
  • The settings screen can be password protected

Hello, I have a problem of settings. I set the following items: IP Address, port API, Username, Password. The Mikrotik is set. All properly. Andorid applications writes: Unable to open connection to Mikrotik User Manager. Please have any idea what could be a problem. Thanks for any feedback.

Hi, if you could please give me more detailed information of your deployment I’ll try to help you. If you post an attachment of your Mikrotik settings and the settings applied to the app I will try to reproduce your installation in order to find the problem.

I agree with Normis, that does look nice!! Now I want to set my own little hotpot just to play with the Android interface :slight_smile:

Sent from my DROIDX using Tapatalk 2

Update 02/Aug/2012
Version 1.4 changelog:

  • Added option to generate usernames randomly or sequentially
  • Solved error with Mikrotik RouterOS with beta/rc version numbers

Update 07/Nov/2012
1.5

  • Added option to register a list of predefied usernames that can be reused. A selectable droplist will appear on the main screen and you can choose AUTO to generate a random user or a predefined user name to delete the current user with the same name and create a new one with the same name and the selected profile.

Wow good job pribasv. Nice.

How about supported Android devices? How about without usermanager?

I`m sorry I have one more question how about your API application on Windows PC?

  1. Any android device with version 2.2 or above should work.
  2. It’s designed to interact with User Manager through the API service. So it will only work with User Manager.

We already have a command line aplication with most of the features of the android version. We are currently using it to provide hotspot voucher printing from within POS software or desktop shortcuts on a Windows system.
It prints a voucher for an user manager profile specified as a parameter.

Just like executing: HotSpotCli.exe 1hour

That would generate a tiquet for a random username/password using a profile called 1hour.

The main functional difference is that it does not need a network pos printer. It uses the default system printer, that can be any kind of pos printer (usb, lpt, serial or network)

Thanks for your update. Good luck

Version 1.5.1

Now works with RouterOS 6.0

Small change added in version 1.6. Now you can add the tag ${time} to your ticket to print the current time and date.

Now you can test an Windows CLI (command line interface) executable that can generate random user/password for Mikrotik hotspots. It’s attached to the first post as HotSpotCli.rar. It uses an esc/pos printer installed on the Windows PC so you don’t need a network thermal printer.

Run it as:

hotspotcli.exe [um profile]

And it will connect to the User Manager, generate an username and password and then print a voucher. Run it without parameters to view the syntax and a list of available printer names.

To set it up edit the settings.properties file and set your deployment values:

router_address=[router ip address]
router_port=[api service port]
router_user=[api username]
router_pass=[api user password]
userman_customer=[user manager profile]
userman_prefix=[generated hotspot username prefix]
userman_name_length=[random username length]
userman_pass_length=[random password length]
qr_address=[bidi values]
qr_redir=[bidi values] check HotSpot Manager for Android docs for bidi/qrcode functionality info.
printer=[name of printer or empty for default system printer]

And edit the ticket.txt file to setup the voucher format. For the ticket grammar check the HotSpot Manager for Android docs attached to the first post.

Requires Java Runtime 1.6 or higher installed.

Hi, interested in trying the windows cli but just updated my deployments to use 6.1. Do you plan an update? Gary.

It should work properly with RouterOS 6.x.