Using phpMyAdmin is better to add new columns because:
Category Archives: Support
How to Send E-Mail with MOBITEK Q25
DESCRIPTION | AT COMMAND |
Configure Parameters of a TCP/IP ContextAT+QICSGP=<contextID>,<context_type>,<APN>,<username>,<password>, <authentication> |
AT+QICSGP=1,1,”yoodo”,””,””,0 OK |
Activate a PDP ContextAT+QIACT=<contextID> |
AT+QIACT=1 OK AT+QIACT? +QIACT: 1,1,1,”10.32.47.42″ OK |
Configure SSL Type//Set the SSL type for SMTP. AT+QSMTPCFG=”ssltype”,<ssltype> |
WITHOUT SSL
AT+QSMTPCFG=”ssltype”,0
WITH SSL AT+QSMTPCFG=”ssltype”,1 AT+QSMTPCFG=”sslctxid”,1 AT+QSSLCFG=”ciphersuite”,1,0xffff AT+QSSLCFG=”seclevel”,1,0 AT+QSSLCFG=”sslversion”,1,1 |
Configure Parameters for SMTP Server//Set the PDP context ID. AT+QSMTPCFG=”contextid”,<contextID> //Set the IP address or domain name and port of SMTP server. AT+QSMTPCFG=”smtpserver”,<srvaddr>,<srvport> //Set username and password. AT+QSMTPCFG=”account”,<username>,<password> //Set sender name and sender address. AT+QSMTPCFG=”sender”,<sender_name>,<sender_email> |
AT+QSMTPCFG=”contextid”,1 OK AT+QSMTPCFG=”smtpserver”,”smtp.example.com”,587 OK AT+QSMTPCFG=”account”,”*username*”,”$password$” OK AT+QSMTPCFG=”sender”,”MOBITEK”,”add-new-post@feed.mobitek.my” OK |
Add or Delete RecipientsAT+QSMTPDST=<mode>,<type>,<emailaddr> Parameter:
|
AT+QSMTPDST=1,1,”sales@abc.my” OK AT+QSMTPDST=1,2,”marketing-director@abc.com” OK AT+QSMTPDST? +QSMTPDST: 1,”sales@abc.my” +QSMTPDST: 2,”marketing-director@abc.com” OK |
Edit the Subject of an EmailAT+QSMTPSUB=<charset>,<subject> Parameter:
|
AT+QSMTPSUB=0,”TEST SMTP USING Q25″ OK AT+QSMTPSUB? +QSMTPSUB: 0,”TEST SMTP USING Q25″ OK |
Edit the Body of an EmailAT+QSMTPBODY=<charset>,<body_length>,<input_time> Parameter:
|
AT+QSMTPBODY=0,50,60 CONNECT +QSMTPBODY: 37 OK |
Send an EmailAT+QSMTPPUT=<timeout> Parameter:
|
AT+QSMTPPUT=300 OK +QSMTPPUT: 0,0 |
Clear the Content of an EmailAT+QSMTPCLR |
AT+QSMTPCLR OK |
Deactivate a PDP ContextAT+QIACT=<contextID> |
AT+QIDEACT=1 OK |
How to Set-Up Mosquitto MQTT Server
SETTING of TP-LINK Wireless Router Archer C1200 | SCREEN SHOT | REMARK |
Open admin panel (192.168.1.1). Go to “Advanced” -> “NAT Forwarding” -> “Virtual Servers”, add:
|
Connect MQTT Explorer or Q25 using the router’s Public IP:
or using DNS |
How to Use MQTT with MOBITEK Q25 4G Modem
MOBITEK Q25 SETTINGS — MOSQUITTO MQTT SERVER
- Q25’s Setting:-
- Remote Host: 175.*.*.* / *.dyndns.*
- Remote Port: 1883
- User Name: ***
- User Password: ***
- Subscribe Topic: Test
- Publish Topic: Test
- Mosquitto version 2.0.14‘s Settings:-
- In “C:\Program Files\mosquitto\mosquitto.conf”:
- find “Listeners” and add
listener 1883 0.0.0.0 - find “Security” and add
allow_anonymous true
- find “Listeners” and add
- Stop “Mosquitto Broker” in “Services”
- Open command prompt as administrator and enter:
- cd “C:\Program Files\mosquitto”
- mosquitto -v -c mosquitto.conf
- Add port forwarding in router:
- Service Type = TCP
- External Port = 1883
- Internal IP = (Public IP of router)
- Internal Port = 1883
- Protocol = ALL
- In “C:\Program Files\mosquitto\mosquitto.conf”:
AT COMMANDS — MOSQUITTO MQTT SERVER
DESCRIPTION | AT COMMAND |
Configure Parameters of a TCP/IP ContextAT+QICSGP=<contextID>,<context_type>,<APN>,<username>,<password>, <authentication> |
AT+QICSGP=1,1,”yoodo”,””,””,1 OK |
Activate a PDP ContextAT+QIACT=<contextID> |
AT+QIACT=1 OK AT+QIACT? |
Configure receiving mode when data is received from serverAT+QMTCFG=“recv/mode”,<client_idx>,<msg_recv_mode>, <msg_len_enable> |
AT+QMTCFG=”recv/mode”,0 +QMTCFG: “recv/mode”,0,0 OK |
Open a network for MQTT clientAT+QMTOPEN=<client_idx>,“<host_name>”,<port> |
AT+QMTOPEN=0,”175.*.*.*”,1883 OK +QMTOPEN: 0,0 AT+QMTOPEN? +QMTOPEN: 0,”175.*.*.*”,1883 OK |
Connect a client to MQTT ServerAT+QMTCONN=<client_idx>,“<clientID>”,“<username>”,“<password>” |
AT+QMTCONN=0,”Q25″,””,”” OK +QMTCONN: 0,0,0 AT+QMTCONN? +QMTCONN: 0,3 OK |
Publish messagesAT+QMTPUBEX=<client_idx>,<msgID>,<qos>,<retain>,“<topic>”,<msg_length> |
AT+QMTPUBEX=0,0,0,0, “Test”,30 > Q25 publish from Hyper Terminal OK +QMTPUBEX: 0,0,0 |
Subscribe to TopicsAT+QMTSUB=<client_idx>,<msgID>,“<topic1>”,<qos1>[,“<topic2>”,<qos2>…] |
AT+QMTSUB=0,1, “Test”,0 OK +QMTSUB: 0,1,0,0 +QMTRECV: 0,0, “Test”, “Publish from MQTT Explorer in HPC-8300” |
Disconnect a client to MQTT ServerAT+QMTDISC=<client_idx> |
AT+QMTDISC=0 OK |
Close a network for MQTT clientAT+QMTCLOSE=<client_idx> |
AT+QMTCLOSE=0 OK |
Deactivate a PDP ContextAT+QIDEACT=<contextID> |
AT+QIDEACT=1 OK |
MOBITEK Q25 SETTINGS — FAVORIOT
- Remote Host: mqtt.favoriot.com
- Remote Port: 1883
- User Name: ***
- User Password: ***
- Subscribe Topic: XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams/status
- Publish Topic: XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams
AT COMMANDS — FAVORIOT
DESCRIPTION | AT COMMAND |
Configure Parameters of a TCP/IP ContextAT+QICSGP=<contextID>,<context_type>,<APN>,<username>,<password>, <authentication> Parameter:
|
AT+QICSGP=1,1,”yoodo”,””,””,1 OK |
Activate a PDP ContextAT+QIACT=<contextID> |
AT+QIACT=1
AT+QIACT? |
Configure receiving mode when data is received from serverAT+QMTCFG=“recv/mode”,<client_idx>,<msg_recv_mode>, <msg_len_enable> Parameter:
|
AT+QMTCFG=“recv/mode”,0,0,1
+QMTCFG: “recv/mode”,0,1 OK |
Open a network for MQTT clientAT+QMTOPEN=<client_idx>,“<host_name>”,<port> Parameter:
|
AT+QMTOPEN=0,”mqtt.favoriot.com”,1883 OK +QMTOPEN: 0,0 AT+QMTOPEN? +QMTOPEN: 0,”mqtt.favoriot.com”,1883 OK |
Connect a client to MQTT ServerAT+QMTCONN=<client_idx>,“<clientID>”,“<username>”,“<password>” Parameter:
|
AT+QMTCONN=0,”Q25″, “***”, “***” OK +QMTCONN: 0,0,0 |
Publish messagesAT+QMTPUBEX=<client_idx>,<msgID>,<qos>,<retain>,“<topic>”,<msg_length> Parameter:
|
AT+QMTPUBEX=0,0,0,0, “XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams”,30 > Q25 send from Hyper Terminal OK +QMTPUBEX: 0,0,0 |
Subscribe to TopicsAT+QMTSUB=<client_idx>,<msgID>,“<topic1>”,<qos1>[,“<topic2>”,<qos2>…] Parameter:
|
AT+QMTSUB=0,0, “XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams”,0 OK +QMTSUB: 0,0,0,0 +QMTRECV: 0,0, “XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams”,38, “Publish from MQTT Explorer in HPC-8300″ +QMTRECV: 0,0,”XYoUfrDZ8mzvHNKJAtkLIvVBOw23dGnb/v2/streams”,46, “Publish from MQTT Explorer in Taufiq’s desktop” |
Close a network for MQTT clientAT+QMTCLOSE=<client_idx> Parameter:
|
AT+QMTCLOSE=0
OK |
Why MOBITEK Q25 cannot connect to Mosquitto MQTT Server?
Reasons:-
- the server is located in LAN (behind a router)
- the server’s IP address is NOT public, i.e. exposed to the internet directly
How to Change the Baud Rate of MOBITEK Q25 4G Modem
- By default, the baud rate for MOBITEK Q25 is “115200”.
- To change the baud rate of MOBITEK Q25 to another value and save it as default, MOBITEK Q25 needs to be connected to the PC using serial cable.
- Open Hyper Terminal, connect MOBITEK Q25 using “COM1” and set the baud rate to “115200”.
- Type “AT” in Hyper Terminal. If the response is “OK” then MOBITEK Q25 is successfully connected. If nothing can be entered in Hyper Terminal , then unplug and replug the serial cable to the serial port of the PC until “OK” is shown.
- In this example, the baud rate will be changed to “9600”. To do this, type “AT+IPR=9600;&W” in Hyper Terminal.
- At this point, nothing can be typed in Hyper Terminal because the baud rate setting has been changed from “115200” to “9600”.
- Disconnect MOBITEK Q25 from Hyper Terminal.
- Go to “File” -> “Properties”. In “Properties”, click on “Configure”. In “Port Settings”, change the baud rate to “9600”.
- Connect the MOBITEK Q25 to Hyper Terminal again. Enter “AT” and query the baud rate command. The baud rate should be changed to “9600”.
How to Build a Release Version of VB.Net Application and How to Publish VB.Net Application
Conclusion
- Using Microsoft Visual Basic 2008 Express to build (publish) an installer (setup.exe), there are many limitations:-
- unable to specify the path to install files; by default it install the exe file into “..\AppData\Local\Apps” folder
- no “Uninstall” shortcut/icon
- Therefore, we will not use Microsoft Visual Basic 2008 Express to build an installer file (setup.exe).
Different Grid Type in PHPRunner
How to Solve “PL2303HXA PHASED OUT SINCE 2012. PLEASE CONTACT YOUR SUPPLIER”
Problem: MOBITEK Q24 USB driver v. 3.8.40 is no longer supported. “Device Manager” in Windows 10 will show this error message “PL2303HXA PHASED OUT SINCE 2012. PLEASE CONTACT YOUR SUPPLIER.”
Applies to: MOBITEK Q24 Modem
Solution: use version — v.3.3.0.1 or older versions. Get the older version from
Renaming Column Name will Affect PHPRunner
If column name is renamed via PHPMyAdmin or PHPRunner, the records will be missing from the list page (tellow table) despite there are 3528 records:-
The following solutions DOES NOT work:-
- Remove all fields in stock card’s list page and add them all again.
- Delete current list page and add a new list page.
- Remove the table and add it again.
The only solution is to re-build the PHP project from scratch.
The possible root cause is the PHP project was built using old version (e.g. version 10.3) or trial version of PHPRunner. Then column name is renamed in the new version of PHPRunner, e.g. version 10.4.