SmartServer Troubleshooting
Many issues are resolved by updating to the latest SmartServer software. Review the SmartServer release notes before upgrading or re-imaging to a different software version. For issues that require diagnostics, this section provides some helpful hints to troubleshoot various issues that you may experience using the SmartServer.
In addition, a list of useful console/SSH commands for troubleshooting and checking the SmartServer health are provided (see Using Console / SSH commands). For help outside the scope of these sections, go to the Knowledge Base (KB). See Contacting Support below to open a support support ticket.
Starting with software release 4.2 and higher, you may see a "WARNING - POTENTIAL BREACH" message when try to log into SSH or SFTP (this warning message is expected and can be usually be ignored, see KB1458 for more details).
Before starting the warranty return process for a SmartServer, or if the warranty has run out, first try re-imaging the SmartServer since this operation may fix SmartServer issues. In some cases, in addition to re-imaging you may need to do a reset database or restore to factory to resolve some issues. Backup the SmartServer settings or database prior to upgrading or re-imaging.
SmartServer software versions are hardware specific. Before you contact the Support team, consider upgrading to the latest SmartServer version to ensure that you are running the latest SmartServer features and fixes. See Determining SmartServer Software Version Compatibility before upgrading or downgrading to verify compatibility for your update.
Device capacity and maintenance licenses may be required for SmartServer 3.3 and higher depending on the application. Not all applications require licenses. Maintenance License are required to upgrade the SmartServer to a newer software version. See Manage Licenses and Frequently Asked Questions - Licensing for more information.
This section consists of the following:
See also:
- Determining SmartServer Software Version Compatibility
- Using Console / SSH commands
- Power Line Repeating DCI Console
- Rebooting Your SmartServer IoT
- Resetting the SmartServer IoT Databases
- Resetting the SmartServer IoT to Factory Defaults
- Starting Modbus with Debug Level Tracing Enabled
- Clearing the Browser's Cache
- SmartServer Pi Troubleshooting (Custom Hardware)
Warnings
The following list provides use-case specific warnings for the SmartServer. These warnings are in addition to the warnings listed for your SmartServer release in the SmartServer Release Notes.
- BACnet – Use SmartServer 3.6 Update 3 or higher. SmartServer 3.6 Update 3 includes fixes for BACnet broadcast message handling.
- LoRaWAN – Use SmartServer 4.2 or higher.
- LON IP-852 routing – Use SmartServer 3.5 or higher. SmartServer 3.5 improves support for disconnected or unreliable LAN or WAN Ethernet connections.
- LON U60 and U70 network interface noise issues – If you are using a LON U60 or U70 network interface that is attached to a LON FT, TP-1250, or PL-20 channel with very high levels of electrical noise, then the noise can cause USB communication failures in the SmartServer. One symptom of electrical noise is an EMI? error in the /var/log/kern.log file. You can reduce the electrical noise that enters a SmartServer from the LON channel by installing a ferrite clamp on core filter onto the U60 or U70 USB cable. An example filter is available at https://www.mouser.com/ProductDetail/623-0431164281.
- LON PL-20 power line networks using the U70 network interface – Use SmartServer 3.6 Update 5, 4.1 (Beta), or newer, with U70 Firmware 2.0. If your U70 has U70 Firmware 1.0, then you can update the firmware as described in Updating the U70 Firmware. The SmartServer and U70 must have compatible versions as described in the U70 Firmware release notes. U70 Firmware 2.0 improves the reliability of the communication between SmartServer and U70 and fixes the issue that causes the U70 to stop working and show a CENELEC error on the SmartServer Configuration page LON tab.
Troubleshooting Tools
The following tools are useful for SmartServer troubleshooting:
- A console/ssh application, like putty.
- Use an USB cable to access the SmartServer console to determine the SmartServer IP addresses and to watch the boot process.
- Use SSH for most other console/SSH commands.
- An SFTP application, like WinSCP, to copy and read files on the SmartServer.
- MQTT Explorer to monitor MQTT traffic on the SmartServer platform.
- Requires IAP/MQ ports to be open (SmartServer Configuration page Features tab) before you can view MQTT traffic.
- Enhanced Security (available with SmartServer 3.5 and higher, System Configuration page) defaults to these ports being disabled.
- LON devices only – LonScanner Protocol Analyzer to monitor channel bandwidth and packets.
- You can download the LonScanner Protocol Analyzer for free. Use the LonScanner 5 link.
- Most LON channels are half duplex; therefore, maintain a sustained bandwidth below 40% for optimal performance.
- For SmartServers using power line repeating.
- LonScanner Protocol Analyzer allows you to see all packets for devices in which the SmartServer can directly communicate to the destination device.
- Packets between repeaters, or between a repeater and the destination device, are typically not shown in LonScanner.
- For SmartServer networks where you also have a U10/U60 or U20/U70, you can open two LonScanner windows to check communication at both the SmartServer and a problem device.
- With LonScanner Protocol Analyzer, you can see if network traffic makes it through the network and whether the destination device responds.
- If you do not see a response either there is an issue with the channel (e.g., FT-10 there is a short or broken connection) or the device is down
- If you see repeated packets and a delayed response this may mean the channel bandwidth is too high, the device is taking too long to respond back or there are impairment on the Lontalk channel.
- Some channel impairment, like motors running may cause a temporary interruption in communication.
- To see packets at both ends (at the SmartServer and at the edge device) you will need to take your laptop near the problem device and use a U10/U60 or U20/U70 to look at traffic at the device.
- Open a LonScanner window for the SmartServer LonScanner RNI.
- Verify that the Protocol Analyzer is enabled on the SmartServer LON Configuration page and that a LonScanner RNI is created in the control panel LonWorks Interface applet.
- Open another LonScanner window for the U10/U60 or U20/U70.
- Open a LonScanner window for the SmartServer LonScanner RNI.
- With LonScanner Protocol Analyzer, you can see if network traffic makes it through the network and whether the destination device responds.
- NodeUtil diagnostic tool allows you to determine whether you can communicate to a device.
- Example: if you are using a SmartServer RNI "x.default.176"
nodeutil -dx.default.176
- Example: if you are using a SmartServer RNI "x.default.176"
- You can download the LonScanner Protocol Analyzer for free. Use the LonScanner 5 link.
Hardware LEDs and Buttons
- SmartServer IoT LEDs and Buttons – to determine if the SmartServer hardware is operating properly.
- U60 LEDs
- U70 LEDs and Buttons
Troubleshooting Scenarios
1. I cannot determine the SmartServer IP address, or I am having IP connection issues.
To find the SmartServer IP address, connect your laptop to the SmartServer console port and run ifconfig, or if your PC is on the same IP subnet as the SmartServer, then try accessing it using the SmartServer host name (e.g., for host name 17q2eyh, use https://smartserver-17q2eyh.local). See Step 2 - Connect to Your SmartServer IoT. When using the ifconfig command from the console, either log in as root or enter sudo ifconfig.
When you first access your SmartServer, follow the procedure in the Configuring the SmartServer IoT IP Address and Hostname section to change the LAN/WAN ports that you are using from Startup Mode to Static IP Address or DHCP. Failure to do so may result in flaky Ethernet connections especially if you unplug and re-plug in the SmartServer, or if there are issues on the Ethernet connection. This may happen because startup mode looks for DHCP, and if not found, it falls back to a static IP address. Therefore, if you experience issues on the Ethernet channel, or if you unplug and re-plug in the Ethernet cable, then the SmartServer may not know whether it is using DHCP or static IP addresses. Changing the Ethernet ports to Static IP Address or DHCP when you first access the SmartServer eliminates this problem.
2. The SmartServer requires that I change the password.
Starting with SmartServer 3.5, enhanced security was added as a default (System Configuration page). If you update the SmartServer software, then enhanced security is disabled if the older software did not support enhanced security, or if enhanced security was disabled. If you re-image the SmartServer to 3.5 or higher, then enhanced security is enabled by default. Perform one of the following:
- Change the password and continue using enhanced security.
- Change the password and disable enhanced security (using SmartServer Configuration Page System tab).
Disable enhanced security, or disable the enhanced security password checking so you do not have to change the password. Perform one of the following using console/SSH:
Disable enhanced security from console/sshsudo smartserver-secure -all
Disaable only password checking but use all other enhanced security featuressudo smartserver-secure -pwd
Once you have disabled enhanced security, close the existing web page that is pointing to the login web page and open a new web page to access the SmartServer.
3. I forgot the SmartServer password, or have password issues.
There are two types of user logins: apollo, the primary user that is used to configure the SmartServer (e.g., configure the SmartServer IP Addresses), and end-user.
- End-user
- End-user passwords can be recovered by clicking Forgot Password on the SmartServer CMS login page, which causes a reset password message to be sent to the user, if SMTP is configured.
- An owner user type can click action button for the user that is having a problem from the Users widget and select the Reset Password action, which causes a reset password message to be sent to the user, if SMTP is configured.
- If SMTP is not configured, then you may need to remove the user using the CMS Users widget, and then add the user with a new password.
- Apollo user
- When you change the apollo password, the password needs to be changed in three areas: SSH/console/SFTP, the Configuration page, and the CMS.
- When you change the apollo password using the System Configuration page, then all three areas are changed. It is recommended that you only change the apollo password using System Configuration page.
- If the CMS does not accept the new apollo password, then try logging in with the old password. If that works, then use the Users widget to change the apollo password to the new password.
- If you change the apollo password using the Users widget, then only the CMS gets changed and the SSH/console and Configuration page will still use the old password.
- When you change the apollo password using the System Configuration page, then all three areas are changed. It is recommended that you only change the apollo password using System Configuration page.
- If the apollo password works for SSH/console, SFTP, and the Configuration page, but not for the CMS web page, and you just changed the password using the System Configuration page Change Password button, then perform the following:
- Reboot the SmartServer.
- Log into the CMS using the old password. If this is successful, then go to the Users widget and change the password to the new password.
- Use password recovery, if enabled on the System Configuration page to convert the password back to the original password.
- If you restored a Full System image, then the original password is the password of the SmartServer from which you made the backup.
- If the password problem still persists, then you will need to change the SmartServer password and perform a restore to factory settings, which will delete your current configuration (i.e., CMS and IP address settings).
- If you changed the apollo password, then restore the password using the console port from the U-boot prompt. Contact the EnOcean support team for instructions.
- Next do a restore to factory settings using the System Configuration page Reset To Defaults button.
- When you change the apollo password, the password needs to be changed in three areas: SSH/console/SFTP, the Configuration page, and the CMS.
4. I cannot access the SmartServer Configuration page.
The SmartServer Configuration page allows you to specify the SmartServer IP address and other hardware configurations.
- Verify that you are you using https://<smartServer IP address>. http will not work.
- Determine whether you downgraded the SmartServer software from release 4.0 and higher to 3.xx.
- Starting with SmartServer 4.0, certificates and keys are now encrypted to improve security, but the older software versions do not know what to do with the encrypted certificates and keys. Consequently, a re-image from SmartServer 4.0 and higher to 3.xx will partially fail without any error message.
- If you have experience this issue, after downgrading, you will be able to access the SmartServer Configuration pages and the Mosquito service will not work; however, you will be able to access the SmartServer CMS.
- To remove SmartServer 4.0 and higher certificates (this can be done before or after doing a re-image), perform one of the following using console/SSH commands:
Using script:
Removing 4.0+ certificatessudo cd to /var/apollo/data/certs sudo chmod 755 prep_for_3.x.sh sudo ./prep_for_3.x.sh
Using remove commands (you will need to modify the command based on the SmartServer hostname):
Format: Replace <hostname> with your SmartServer's hostnamesudo rm /etc/ssl/certs/message_broker/ sudo rm /var/apollo/data/certs/<hostname>.echelon.cloud
Example: SmartServer with the hostname SmartServer-17qehiesudo rm /etc/ssl/certs/message_broker/ sudo rm /var/apollo/data/certs/SmartServer-17qehie.echelon.cloud
- Starting with SmartServer 4.0, certificates and keys are now encrypted to improve security, but the older software versions do not know what to do with the encrypted certificates and keys. Consequently, a re-image from SmartServer 4.0 and higher to 3.xx will partially fail without any error message.
- Does the web page show an error similar to NET:ERR_CERT_DATE_INVALID when using signed certificates and when using something like https://smartserver-17qehie.echelon.cloud?
- This may mean that the certificate timed out. The SmartServer will try to automatically renew the certificate, but may not be able to do so.
- To continue using signed certificates, manually re-new the certificate using KB1455.
- Alternatively, you can just use the SmartServer IP address.
- You may see not be able to access the SmartServer Configuration page and CMS if the HTTP and HTTPS ports changed from the defaults.
- You should be able to ping the SmartServer, but not access the SmartServer Configuration Page and CMS Web page.
- Issue the following console command: sudo grep "listen" /etc/nginx/sites-enabled/apollo.conf. The line with ssl should show 443 and there should be two lines showing 80.
- If 443 and 80 are not shown then you may need to change the apollo.conf file to use the default ports. See "Changing HTTP and HTTPS Ports" for details.
- Check if the SmartServer is constantly rebooting by looking at the SmartServer console port.
5. I cannot access the SmartServer CMS.
- Verify that you are you using https://<smartServer IP address>. http will not work.
- Determine whether you can log into the SmartServer Configuration page.
- If you are on a VPN and you are using the SmartServer hostname to access the SmartServer, then clicking the CMS tab on the SmartServer Configuration page will not work.
- Changing the hostname to the SmartServers IP address in the web page URL should allow you to access the CMS.
- Go to the Network Configuration page and make sure you are not in startup mode for the Ethernet ports that you are using.
- If startup mode is assigned, then you may see flaky Ethernet connections.
- Change the IP address to static or DHCP and then reboot the SmartServer.
- If you are on a VPN and you are using the SmartServer hostname to access the SmartServer, then clicking the CMS tab on the SmartServer Configuration page will not work.
- Does the web page show an error similar to NET:ERR_CERT_DATE_INVALID when using signed certificates and when using something like https://smartserver-17qehie.echelon.cloud/cms?
- This error may mean that the certificate timed out. The SmartServer will try to automatically renew the certificate, but may not be able to do so.
- To continue using signed certificates, manually re-new the certificate using KB1455.
- Alternatively, you can use the SmartServer IP address instead of the hostname.
- Determine whether you can ping the SmartServer from your PC.
- Open a Windows command prompt.
- Issue a ping command with your SmartServer IP address (e.g., ping 10.0.0.113).
- Determine whether you can you log into the SmartServer Configuration page.
- You may not be able to access the SmartServer Configuration page and CMS if the HTTP and HTTPS ports changed from the defaults HTTP (80) and HTTPS (443).
- You should be able to ping the SmartServer, but not access the SmartServer Configuration page and CMS.
- Issue the following console command: sudo grep "listen" /etc/nginx/sites-enabled/apollo.conf. The line with ssl should show 443 and there should be two lines showing 80.
- If 443 and 80 are not shown then you may need to change the apollo.conf file to use the default ports. See "Changing HTTP and HTTPS Ports" for details.
- You may not be able to access the SmartServer Configuration page and CMS if the HTTP and HTTPS ports changed from the defaults HTTP (80) and HTTPS (443).
- Determine whether you can use SSH or SFTP (e.g., using WinSCP) to the SmartServer.
- If you are using signed certificates, then check the cert file permissions after cert renewal (should be apollo apollo) using WinSCP or SSH
Using WinSCP or SSHSSH issue the following command and make sure the last updated file has apollo apollo:
Make sure files are assigned to apollo apollosudo ls -l /var/apollo/data/certs/smartserver-*.echelon.cloud/fullchain-*
Workaround: if files show root as owner.
Workaround signed certificate assigned wrong usersudo chown apollo:apollo /var/apollo/data/certs/smartserver-*.echelon.cloud/fullchain-*.pem sudo chown apollo:apollo /var/apollo/data/certs/ssiot.crt
Reboot the SmartServer after making changes.
- If you are using self-signed certificates, some SmartServer versions try to automatically renew these certificates.
- Whether the certificates are renewed or not
- Distinguishing between a valid self-signed certificate and an expired one is not very obvious. Both are reported as not secure by browsers.
Manually renewing self-signed certificates
SmartServer 3.5 and 3.6 (does not work on newer versions)sudo ./sbin/update-sscert
- Whether the certificates are renewed or not
- If you are connected to the SmartServer console, then issue ifconfig to determine the IP address.
- When using the ifconfig command from the console, either log in as root or enter sudo ifconfig.
- Determine whether the SmartServer is constantly rebooting.
- Verify that another device is not using the same IP address.
- If another device or PC is using the same IP address, then accessing some pages, SSH, or SFTP may work and the other may not.
- Unplug the Ethernet cable from the SmartServer and ping the SmartServer IP address to see if another device responds.
- Ping response may be disabled by the IT department or the other device may not respond back to a ping.
- Ping response may be disabled by the IT department or the other device may not respond back to a ping.
- Unplug and plug back in the Ethernet cable to the SmartServer.
- Check if any space in the SmartServer has 100% usage, as this could cause problems.
- Run df -h.
- Run df -h.
- For SmartServer 4.3 and prior, check if the SmartServer CMS (Karaf) service is running.
- Run sudo systemctl status karaf using console/SSH. If you see a green response, then most likely the CMS service is running.
- Run sudo systemctl status karaf using console/SSH. If you see a green response, then most likely the CMS service is running.
- For SmartServer 4.3 and prior, try restarting the karaf.
- Run sudo systemctl restart karaf using console/ssh.
- If the restart works, then wait at least 5 minutes and then reboot the SmartServer to make sure the CMS works after a reboot.
- Rebuild the SmartServer configuration.
- If you can log into the Configuration page using the apollo username and password, but cannot log into the CMS using the same password and the apollo username, then perform the following:
- Rebuild the SmartServer; backup the SmartServer settings.
- Delete the current SmartServer database using one of the following:
- Restore to factory settings using the System Configuration page Reset To Defaults button.
- Re-image the SmartServer.
- Rebuilt your SmartServer configuration.
- If you can log into the Configuration page using the apollo username and password, but cannot log into the CMS using the same password and the apollo username, then perform the following:
- If you need to contact the Support team, then have the following information available (see the Contacting Support section below for details):
- All /var/log files.
- Results from sudo systemctl status karaf (for SmartServer 4.3 and prior).
- Karaf log files (for SmartServer 4.3 and prior).
- Check if the SmartServer is constantly rebooting by looking at the SmartServer console port.
6. The SmartServer CMS shows incorrect information.
In most cases, if the SmartServer CMS shows incorrect information, then this problem is related to cached data in the web browser. To clear cached data, perform one or more of the following:
- Click the Refresh button () on the CMS web page / widgets.
- Enter CTRL-F5 in the web browser.
- Open a private window in the web browser.
- Close all browser windows that are accessing this SmartServer.
- Reopen one web browser window.
- Enter CTRL-F5.
- Enter CTRL-F5.
- Optionally clear the cached in the web browser.
- Check the Alarms and Events widget for warning or error messages that are related to what you are doing.
7. SSH, SFTP (WinSCP), and MQTT no longer work.
If you re-image the SmartServer to 3.5 or higher, then the SmartServer defaults to enhanced security, which automatically disables SSH, SFTP, and MQTT ports. You need to manually re-enable these features using the SmartServer Firewall Configuration page.
8. The SmartServer licenses disappear (device capacity and maintenance licenses).
Device and maintenance licenses are not affected (deleted or modified) by software upgrades (GLPO file) or re-image.
If you perform a software upgrade or re-image to SmartServer 3.6 and higher, and you did not have a valid maintenance license, then the SmartServer will disable any device related processes even if there is a valid device capacity license. Activating a maintenance license will resolve this issue.
If the SmartServer had been previously licensed and all the SmartServer Licenses disappear, then perform the following steps:
- Re-enter the customer ID and re-activate the device capacity and maintenance licenses.
- If you try to re-enter customer ID, but the dialog just seems to spin:
- Check if the customer ID is correct.
- If the customer ID is correct and this is a lab SmartServer, or a SmartServer that you can re-image, then try re-imaging the SmartServer.
- If the customer ID is correct and this is a lab SmartServer, or a SmartServer that you can re-image, then try re-imaging the SmartServer.
- Check if the customer ID is correct.
- If you try to re-enter customer ID, but the dialog just seems to spin:
Retrieve the license specific log (/var/apollo/data/lic_data*) and setup files using the following console/SSH commands:
sudo tar -czvf /var/apollo/data/lic_data-${APOLLO_INSTALL_CODE}-$(date +"%Y%m%d%H%M%S").tar.gz /var/.slm /var/apollo/data/certs/lic/.data/lservrc /var/log/supervisor/lim.log /var/log/supervisor/supervisord.log /var/log/syslog sudo chown apollo:users /var/apollo/data/lic_data*
Get MQTT data.
Get MQTT data with ssh/consolemosquitto_sub -v -t glp/0/+/fb/lic/cfg -t glp/0/+/fb/lic/sts --retained-only
If you have devices that are purple but you have sufficient device credit, then run this MQTT request shown below and send Support the log file starting with /var/apollo/data/retained_mqtt /var/apollo/data.
Sufficient device credit, but seeing purple devicesmosquitto_sub -t "glp/#" -F "%J" --retained-only > /var/apollo/data/retained_mqtt_${APOLLO_INSTALL_CODE}-$(date +"%Y%m%d%H%M%S")_log.txt
Use an SFTP application, like WinSCP, to get the tar file /var/apollo/data/lic_data*.
Look at the following license log for any issues: /var/log/supervisor/lim.log.
Use one of the following:
Console/SSH and enter the following command:
cat /var/log/supervisor/lim.log
WinSCP to unzip the tar file.
If you see Failed with status 510046 in lim.log, then perform the following:
Console/ssh workaround (only applies to the 510046 failure)sudo supervisorctl stop core:echlim su rm -r /var/.slm/ sudo supervisorctl restart core:echlim sudo supervisorctl reload
If you still have a problem, then reboot the SmartServer.
- If you are still not able to resolve this issue, then contact Support as described below.
- If you need to contact the Support team, provide the the SmartServer install code that is displayed on the SmartServer System Configuration page or the label on back of SmartServer.
9. The SmartServer shows up as unprovisioned in CMS Devices widget or the System Configuration page.
This problem can occur for the following reasons:
The signed or unsigned certificate has timed out.
Using ssh, enter the command shown below to see if the SmartServer ID is returned.
You should see the SmartServer ID in the response. If you do not see the SmartServer ID, then the certificate may have timed out.mosquitto_sub -t glp/0/././# "17qam88"
Click Ctrl-C to exit the command.
- Workaround:
- Select the Signed Certificates option on the System Configuration page. Wait for the change to take effect (the checkbox changes from greyed-out to active, or wait 15 seconds), and then click the option again. The system interprets this process as switching from your current mode of operation (either signed or not signed) and then back again. Finally, reboot the SmartServer.
10. IzoT CT or IzoT Net Server tool do not see Service messages (e.g., IP-852 router) from the LON SmartServer LON Configuration page.
All IP-852 and U60/U70 routers have a service/connect button in the LON Configuration page that send a service pin message.
Routing is only available when using IMM (DMM is the default).
- Make sure the SmartServer is configured for IMM.
- Look at the System Configuration page (LON Network Management Mode shows Independent or CMS shows IMM).
- To change to IMM, go to the CMS Devices widget and select the Segment Controllers tab. Then click the SmartServer's Action button () and select the Switch to LON independent Management Mode action.
The LON Configuration page allows you to send service pin messages for the routers.
- IzoT CT and IzoT Net Server neuron IDs are called MAC addresses on the LON Configuration page.
Every time you re-image, reset the database, or restore to factory defaults, these operations change the MAC addresses. With these operations, re-commission the SmartServer in the LNS database with the new neuron IDs.
- If you are using enhanced security (System Configuration page), then outgoing ports that are used for routing are closed and you will need to do one of the following using ssh:
Disable enhanced security.
Disabling enhanced securitysudo smartserver-secure -all
Open any outgoing ports.
Check which ports opensudo ufw status verbose
Look at the Config Server to see which ports you need to open (if you are using the default 1628 port).
sudo ufw allow out 1628/udp
- Some of the neuron IDs (called MAC IDs on the SmartServer) are displayed on the LON Configuration page.
If you do not see service pin messages in the integration tool, refer to the following steps:
- Workaround:
- You may need to perform a restore-to-factory for the IP-852 service pin messages to work properly after performing a re-image.
Try to manual add the neuron ID using the router MAC address that is displayed in the LON Configuration page.
Check the following to see if there is something mis-configured on the SmartServer using console/SSH.
ssh/console - send to support team1. Show ethaddr_space=32: sudo fw_printenv | grep "ethaddr_space" 2. Verify that the assignedmacs owner is apollo: ls -l /var/apollo/data/router/ -rw-r--r-- 1 apollo users 0 Feb 9 11:04 assignedmacs --- needs to be apollo -rw-r--r-- 1 apollo apollo 21 Feb 9 06:14 lonNi.conf 3. List the available mac addresses: cat /var/apollo/conf.d/macaddrs 4. List the mac assignment: cat /var/apollo/data/router/assignedmacs
- Workaround:
- Make sure the SmartServer is configured for IMM.
11. SmartServer routers stop working in an IzoT CT or IzoT Net Server network after a SmartServer reboot.
This problem usually indicates that the SmartServer is configured for DMM (the default).
In DMM, the SmartServer is the network integration tool. Therefore, if you commissioned the SmartServer routers in an IzoT CT/IzoT Net Server network, and the SmartServer reboots, then the SmartServer will see that its router configuration is not what is expected for DMM and it will re-commission it for DMM. As a result, your IzoT CT or IzoT Net Server network will lose all access to the SmartServer routers and edge devices that are connected to the SmartServer U60/U70 channels.
Changing back and forth between IMM and DMM is not supported. Therefore, you must first discern which mode of operation (DMM or IMM) your application requires and then maintain that mode. For IzoT CT and IzoT Net Server networks, when you are using the SmartServer routers, you will first need to change to IMM before commissioning the SmartServer routers in IzoT CT or IzoT Net Server. See the workaround below if you mistakenly used DMM.
Add a ferrite clamp onto the U60/U70 USB cable to reduce LON channel noise (similar to one used for the SmartPhone as seen here: https://www.usbfirewire.com/parts/rr-fh0-500b.html).
Only SmartServer 3.50.026 and higher can be used for IP-852 routing. In prior releases, unplugging or re-plugging the Ethernet cable and possibly IP infrastructure issues could stop communication to external devices through U60s/U70s.
Workaround
Backup any settings or files that are on the SmartServer. If you are only using the SmartServer for routing or RNI, then you do not need to backup anything.
Click the Reset To Defaults button (System Configuration page).
- After the reset is done, optionally do another reboot of the SmartServer using the System Configuration page. This reboot will cause the SmartServer router neuron IDs to change.
- Go to the CMS Devices widget, Segment Controller tab.
- Select the Switch to LON Independent Management Mode (IMM) action.
- Verify that the SmartServer is IMM mode.
- The CMS shows the IMM mode in the upper left-hand corner.
- The System Configuration page shows the LON Network Management Mode as Independent (IMM).
- In IzoT CT/IzoT Net Server, decommission the SmartServer routers and do not save the neuron IDs.
- In IzoT CT/IzoT Net Server, commission the SmartServer routers with the new neuron IDs using the SmartServer LON Configuration page.
12. Other SmartServer LON routers issues.
With SmartServer 4.0, IP-852 service pin message do not work in with enhanced security.
Workaround: verify that the ports you are using are open.
13. My LON devices are all RED (down) in the CMS using U60s or U70, or I am seeing communication issues to the LON devices.
If the SmartServer Configuration page LON tab shows "The lon1 device has failed a CENELEC protocol query. Device likely needs to be reset to restore communication" then you need to use SmartServer 3.65 or 4.1 (Beta) and higher, and update the U70 software. For power-line repeating networks, update the SmartServer and U70 software even if do not see the CENELEC error.
If you experience problems with the U60 or U70, then add a USB 2.0 ferrite clamp onto the USB cable to reduce LON channel noise. See https://www.usbfirewire.com/parts/rr-fh0-500b.html
See the steps below for more information and diagnostics.
- Verify that the U60 or U70 is up using one of the following methods:
- Use the SmartServer Configuration page LON tab to see if the U60/U70 appears under LON interfaces.
- Use the console/SSH command ifconfig and check the lon#. There should be one lon# per U60/U70. When using the ifconfig command from the console, either log in as root or enter sudo ifconfig.
- If the U60 or U70 do not appear, then perform the following:
- Verify whether these devices are plugged in.
Check for USB noise by looking for EMI? in the SmartServers.
- For SmartServer release 4.0 and higher (most of the important logs are now in the /var/log/syslog):
- Go to the System Configuration Web page and click on the Logs button which will download the file to your PC (usually downloads folder).
- Extract the *.tgz - on windows you can use 7-zip to extract the files.
- During the extraction process you may see a Confirm File Replace dialog pop up. If you see this dialog click the Auto Rename button.
- Extract the *.tar file.
- During the extraction process you may see a Confirm File Replace dialog pop up. If you see this dialog click the Auto Rename button.
- As some of the files in the *.tgz are symbolic links which may not be supported by Windows, wait until the progress bar is completely green and the click the Close button.
Look for EMI? in /var/log/syslog, using console/SSH.
sudo grep "EMI?" /var/log/syslog
- For Smartserver 3.6 and prior releases:
Look at /var/log sys.log, kern.log, and error files using the commands below. If you see EMI? in the log files, then you need to add a filter, like a USB 2.0 ferrite bead clamp onto the U60/U70 USB cable.
Console/ssh commands to look for looking for EMI?sudo grep "EMI?" /var/log/kern.log sudo grep "EMI?" /var/log/error sudo grep "EMI?" /var/log/syslog
- For SmartServer release 4.0 and higher (most of the important logs are now in the /var/log/syslog):
Reboot the SmartServer.
If the U60/U70 continuously stops working after power cycles, then perform the following:For SmartServer 3.6 only, enter the following SSH command (this command may allow the U60/U70 to come up, but it is not a fix):
sudo /sbin/apollo-usbreset start
For all SmartServer versions, add a USB 2.0 ferrite bead clamp onto the U60/U70 USB cable.
- Verify that the LTE and LTX services are running.
- For SmartServer release 4.0 and higher:
- Check if LTE and LTX services are running. The LTE and LTX may get restarted if you import or make changes to an XIF file or re-import Resource File Set XML file.
Check the current status of these services using the following ssh commands. The example below shows the U60 working.
$ sudo smartserverctl status alarm ACTIVE 1h 4min bacnet ACTIVE 1h 4min core ACTIVE 1h 4min datapoint-connection-manager ACTIVE 1h 4min datapoint-controller ACTIVE 1h 4min datapoint-get ACTIVE 1h 4min enocean-driver ACTIVE 1h 4min formatter ACTIVE 1h 4min housekeeper ACTIVE 1h 4min iap-controller ACTIVE 1h 4min init ACTIVE 1h 4min lim ACTIVE 1h 4min loader ACTIVE 1h 4min logger ACTIVE 1h 4min lon ACTIVE 1h 4min lte ACTIVE 1h 4min ltx ACTIVE 1h 4min lwd ACTIVE 1h 4min modbus ACTIVE 1h 4min monitoring ACTIVE 1h 4min mosquitto ACTIVE 1h 4min node-red ACTIVE 1h 4min pyro4-ns ACTIVE 1h 4min query ACTIVE 1h 4min reboot-manager ACTIVE 1h 4min resource-publisher ACTIVE 1h 4min scheduler ACTIVE 1h 4min secmount ACTIVE 1h 4min services ACTIVE 1h 4min smartserver ACTIVE 1h 4min storage-manager ACTIVE 1h 4min apollo@smartserver-17qam88:~$
You can also restart these services as they may get out of sync (for example, you may have deleted a device in the CMS, but it did not get cleared from MQTT) using the following command:
sudo smartserverctl restart lon
- For SmartServer 3.6 and prior releases:
- Check if lon:echlte and lon:echltx services are running. The LTE and LTX may get restarted if you import or make changes to an XIF file or re-import Resource File Set XML file.
Check the current status of these services using the following ssh commands. The example below shows the U60 working.
sudo supervisorctl status ~$ sudo supervisorctl status apollo-init EXITED Dec 19 06:29 AM core:echhousekeeper RUNNING pid 1159, uptime 4:21:35 core:echlim RUNNING pid 1163, uptime 4:21:35 echbacnet RUNNING pid 1155, uptime 4:21:35 echmodbus RUNNING pid 1240, uptime 4:21:34 echopcua-server STOPPED Not started lon:echlte RUNNING pid 3627, uptime 4:19:57 lon:echltx RUNNING pid 3626, uptime 4:19:57 ready EXITED Dec 19 06:29 AM services:echalarm RUNNING pid 1208, uptime 4:21:35 services:echapollo-rp-launch RUNNING pid 1236, uptime 4:21:34 services:echconnection RUNNING pid 1214, uptime 4:21:35 services:echdatapointcontrol RUNNING pid 1216, uptime 4:21:35 services:echdatapointget RUNNING pid 1227, uptime 4:21:35 services:echformatter RUNNING pid 1229, uptime 4:21:35 services:echiap-controller RUNNING pid 1239, uptime 4:21:34 services:echloader RUNNING pid 1185, uptime 4:21:35 services:echlogger RUNNING pid 1170, uptime 4:21:35 services:echmonitoring RUNNING pid 1174, uptime 4:21:35 services:echquery RUNNING pid 1180, uptime 4:21:35 services:echscheduler RUNNING pid 1237, uptime 4:21:34
You can also restart these services as they may get out of sync (for example, you may have deleted a device in the CMS, but it did not get cleared from MQTT) using the following command (include the : at the end of the command):
sudo supervisorctl restart lon:
- For SmartServer release 4.0 and higher:
- Use the SmartServer Configuration page LON tab to see if the U60/U70 appears under LON interfaces.
Use NodeUtil to see if device status "s" works.
Using NodeUtil: Make sure that an RNI is set up for the U60 or U70. Next make sure you set up a RNI in the PC Windows Control panel > LonWorks Interfaces applet.
Start NodeUtil (e.g., nodeutil -dx.default.215) using a DOS command prompt.
Add the device neuron Id (from the CMS Devices Widget) to NodeUtil using the "a" add command. Next click "g" followed by return and then "s".
- If NodeUtil device status works, then:
- Make sure the device is configured for the correct domain Id.
- Press "d" for domain in nodeUtil which will show you the device's domain ids. You can look at the SmartServer Configuration Page LON tab for the current domain id.
- If the domain ids are correct, then restart the LON drivers as shown above.
- Make sure the device is configured for the correct domain Id.
14. BACnet is not working.
Verify that BACnet is enabled as described in Add a BACnet Interface.
SmartServer 4.1 and prior example
SmartServer 4.2 and higher example
Verify that both BACnet enable checkboxes (shown above) are checked, that the Router Configuration device instance is unique (defaults to 20039), and that the Server Configuration (network number that defaults to 8888) are unique in the BACnet network. If you are using a BACnet tool to look at LON and Modbus devices, then the Server Configuration Starting Device Instance needs to be unique in the BACnet network.
Verify that the Router Configuration table Network Numbers match what is used for the BACnet networks. This Network Number may not be used for device discovery. Some BACnet features may not work if this is set up incorrectly.
If BACnet was not enabled prior to importing BAC, BTM, or DTP files with BAC and BTM files, then you need to enable BACnet and may need to re-import these files
Verify that the BACnet service is running by issuing the following console/SSH command (depends on SmartServer version):
For SmartServer release 4.0 and higher, look for bacnet.
sudo smartserverctl status
For SmartServer 3.6 and prior releases, look for echbacnet.
sudo supervisorctl status
Instructions are based on BACnet Client or BACnet Server:
BACnet Client – real BACnet devices and you use the SmartServer CMS to read and write to BACnet devices.
Verify that BACnet is enabled.
- If not, installing BAC files (or DTP files that include BAC files) prior to enabling BACnet will cause the files to never get processed. You will need to re-import the BAC files after enabling the SmartServer for BACnet.
If you manually imported the BAC files, then determine whether these files worked before.
If you are using CMS device discovery, then it may take 10-30 minutes after the CMS Devices widget Discover button () indicates that device discovery completed before all the background processing of new devices is fully done. Therefore, you may not see some devices appearing immediately after device discovery, but appearing later.
- Discovered BACnet device BAC files are located in the following folder: /var/apollo/data/bacnetrouter/res. The number of BAC files depends on the number of devices and whether the devices have unique datapoint lists.
- Copy any *.bac to your PC in case you need to contact EnOcean Support.
- Copy any *.bac to your PC in case you need to contact EnOcean Support.
- Determine whether the number of BAC files in the folder above matches the number BACnet device types you see in the CMS Device Types widget.
Check if any BACnet devices show up using MQTT console/ssh command. Press CTRL-C to exit.
mosquitto_sub -v -t glp/0/+/fb/dev/bacnet/+/if/#
To verify that BACnet datapoints are getting updated properly, refer to the following:
To verify if datapoint events are working using MQTT console/ssh commands:
(press CTRL-C exit command)
Example datapoint : "dev/bacnet/4/if/Temperature/0/temperature"
a. Show all datapoint (any protocol) with datapoint name "temperature"
mosquitto_sub -v -t glp/0/+/ev/data/# | grep "temperature/value"
b. Show all datapoints for specific device device blockName/blockIndex
mosquitto_sub -v -t glp/0/+/ev/data/# | grep "dev/bacnet/4/if/Temperature/0"
BACnet Server – use a BACnet tool to read and write to LON and Modbus devices that are connected to a SmartServer.
- Verify that you imported BACnet Type Map (BTM) files for each device type (one per program ID) after you enabled BACnet in the BACnet Configuration page. You must enable BACnet before importing the BTM files.
- If you do not see LON/Modbus devices in the BACnet tool, then it is possible that the BTM file is incorrect. You can use the BTM creation tool (a web page that creates BTM files). Once these files are created, you can edit the file and then import the new file into the SmartServer CMS.
15. Modbus is not working.
Verify that the RS-485 Configuration page is configured for the Modbus RS-485 port. Only one RS-485 port can be configured for Modbus.
Verify that the Modbus service is running by issuing the following console/SSH command (depends on SmartServer version):
For SmartServer 4.0 and higher, look for modbus.
SmartServer release 4.0 and highersmartserverctl status
For SmartServer 3.6 and prior, look for echmodbus.
SmartServer 3.6 and prior releasessudo supervisorctl status
- In most cases, if you can add a device and the datapoints are not showing up properly, then it is likely that there is a problem with the .MOD file.
Verify that datapoints are being updated.
Example SSH/console command to see "temperature" datapoint updatesmosquitto_sub -v -t glp/0/+/ev/data/# | grep "temperature/value"
Example SSH/Console command to see same datapoint from a single devicemosquitto_sub -v -t glp/0/+/ev/data/# | grep "dev/bacnet/4/if/Temperature/0"
- Log Modbus operations (logging should only be enabled for a short period of time due to high CPU and memory demand).
Enable Modbus logging using the following SSH command (not the console):
mosquitto_pub -t idl/rq/modbus/debugMode -m 1
View real-time data using the following command:
SmartServer release 4.0 and highersudo tail -f /var/log/syslog | grep "modbus"
SmartServer 3.6 and prior releasestail -f /var/log/supervisor/modbus.log
Disable Modbus logging using the following command:
mosquitto_pub -t idl/rq/modbus/debugMode -m 0
View the entire modbus log using the following command:
SmartServer release 4.0 and highersudo grep "modbus" /var/log/syslog
SmartServer 3.6 and prior releasescat /var/log/supervisor/modbus.log
16. EnOcean devices are not working.
Verify that the EnOcean Configuration page has the EnOcean driver enabled.
EnOcean datapoint values are pushed from the EnOcean device. To get all updates, set up event-driven updates in the CMS Datapoint Properties widget.
Verify that the EnOcean service is running by issuing the following console/SSH command (depends on SmartServer version). For SmartServer 4.0 and higher, look for enocean.
SmartServer release 4.0 and highersmartserverctl status
- In most cases, if you can add a device and the datapoints are not showing up properly, then it is likely that there is a problem with the .eno file.
Verify that you see datapoint updates from the EnOcean device.
Example SSH/Console command to see any datapoint from an EnOcean devicemosquitto_sub -v -t "glp/0/+/ev/data" | grep /dev/enocean
Example SSH/Console command to see same datapoint from a single devicemosquitto_sub -v -t glp/0/+/ev/data/# | grep "dev/enocean/4/if/Temperature/0"
Example SSH/console command to see "temperature" datapoint updatesmosquitto_sub -v -t glp/0/+/ev/data/# | grep "temperature/value"
- If you are not seeing datapoints updates, or they are sporadic, verify that the CMS Datapoint Properties widget shows that event-driven monitoring is enabled.
If so, then check MQTT to see if the EnOcean driver also shows that the event-driven monitoring is enabled.
Example SSH/Console command to check if event driven enabledmosquitto_sub -v -t "glp/0/+/fb/dev/enocean/+/if" | grep '"event":'
Look for "event": in red. True indicates that event-driven monitoring is enabled and false indicates that event-driven monitoring is disabled. Either de-provision the device and re-provision it using the CMS Devices widget, or in the CMS Datapoint Properties, select polling and then select event-driven, and then click the update button.
- View SmartServer logs for EnOcean devices operations.
View real-time data using the following command:
SmartServer release 4.0 and highersudo tail -f /var/log/syslog | grep "enocean"
View all EnOcean log entires using the following command:
SmartServer release 4.0 and highersudo grep "enocean" /var/log/syslog
17. LoRaWAN is not working.
Verify that the LoRaWAN Configuration page has LoRaWAN enabled, and that ChirpStack is enabled and is configured properly.
LoRaWAN datapoint values are pushed from the LoRaWAN device. Some devices only push data once every 24 hours. Many sensors will send once an hour. To get all updates, set up event-driven updates in the CMS Datapoint Properties widget.
Verify that the LoRaWAN service (called lwd) is running by issuing the following console/SSH command (depends on SmartServer version). For SmartServer release 4.2 and higher, look for lwd.
SmartServer release 4.2 and highersmartserverctl status lwd
- If devices do not show up, then datapoints are being seen or datapoint updates are not happening. Some devices only send updates once a day.
- Go to the LoRaWAN gateway and make sure it is set up correctly.
- Make sure that the LoRaWAN devices are working.
- Look at device data and check for logs.
- Make sure that the LoRaWAN devices are working.
- Check the Chirpstack setup in the SmartServer.
- Verify that the gateway active.
- Verify whether devices are added.
- Verify whether you are receiving data from the devices.
- If see data then check the *.lorawan file.
- Check the SmartServer CMS.
Verify whether LoRaWAN devices appear in the Devices widget (they are automatically added after the *.lorawan file has been imported and after the next datapoint update from the device which could full day).
- Verify whether you can see the datapoints in Datapoints widget.
- Verify whether the Datapoint Properties widget shows that event-driven updates are enabled.
- Go to the LoRaWAN gateway and make sure it is set up correctly.
View real-time data using the following command:
SmartServer release 4.2 and highersudo tail -f /var/log/syslog | grep "smartserver-lwd"
View the entire LoRaWAN log using the following command:
SmartServer release 4.2 and highersudo grep "smartserver-lwd" /var/log/syslog
18. I used device discovery but my devices are not showing up.
When the Discover button () shows that device discovery is complete, it means that the SmartServer is finished the process of looking for devices. However, it will still take some time for the SmartServer to fully add all of the devices. This process can take more than 10 minutes, after the Discover button has a line though it, for all the devices to appear in the CMS Devices widget.
You may also need to run device discovery multiple times in order to discover all of the devices (particularly in the case of BACnet networks).
- BACnet
- Make sure you enabled BACnet using the BACnet configuration page prior to running a device discovery.
- Each time you run device discovery, the discovery process will create new devices for unknown devices, and check existing BACnet devices to make sure that the datapoint information has not changed. If it has, then a new device type will be created for these devices.
- Each time you run device discovery, the discovery process will create new devices for unknown devices, and check existing BACnet devices to make sure that the datapoint information has not changed. If it has, then a new device type will be created for these devices.
- Make sure you enabled BACnet using the BACnet configuration page prior to running a device discovery.
- Modbus
- Modbus protocol does not have a built-in way to discover Modbus devices, but the SmartServer can discover then if you specify a marker value in the MOD file.
- Verify that you configured the Modbus using the RS-485 Configuration page prior to running a device discovery.
- Verify that you imported the MOD file prior to running device discovery.
- LON devices
- Verify that you imported all device XIF files and any necessary Resource File Set XML files prior to running device discovery.
- Devices that appear in the CMS but are not working are generally devices in which the device XIF, or necessary Resource File Set XML files, were not imported prior to running device discovery. These devices are not usable.
- Delete these devices and the corresponding device types.
Import the device XIF, or any necessary Resource File Set XML files, and re-run device discovery.
LON devices only - DMM device discovery - caution about discovering previously installed LON devices
If you discover and provision a previously installed LON device when using DMM, then the SmartServer may modify the configuration of the device. If the device is part of an operational system, then the system may no longer function as expected due to the change in the LON device configuration.
Discovering and/or provisioning a discovered device may change the device's subnet/node IDs, and set the existing datapoint values to default value, and delete all existing connections to devices.
To restore the site back to normal operation, perform one of the following:
- Restore the network using integration tool that was originally used to create the site network.
- Reconfigure discovered LON devices using the SmartServer CMS.
LON devices only - DMM device discovery - caution about deleting LON devices
Deleting a discovered LON device (using the Remove action in the Devices widget) will cause the SmartServer to try to decommission the device and set the subnet and device ID to 0 before deleting the device from the SmartServer. This process may cause a previously working device to stop working.
To delete a discovered LON device, first make sure the device is no longer connected to the network (e.g., FT channel), or disconnect the SmartServer from the network (such as disconnect the U60), and then delete the device in the CMS Devices widget.
Doing a reset database will not affect the existing devices.
19. Device discovery never seems to stop.
Device discovery can take up to 45 minutes. If device discovery is not complete (i.e., the Devices widget discovery button is still greyed-out) after 1.5 hours, then it is possible that one of drivers restarted and interfered with the SmartServer being able to complete the device discovery process. In this case, reboot the SmartServer.
20. LON IzoT Net Export (inex) issues.
inex is used to export a subset or complete IzoT CT drawing or IzoT Net Server database into the SmartServer in order to access device datapoints. inex only works with CT or IzoT Net Server 4.2. Use inex 1.50.016+ (make sure the SmartServer is supported; check the SmartServer release notes).
Change the SmartServer to IMM prior to running inex. Failure to change to IMM prior to running inex will cause the IP-852 and U60/U70 routing and datapoint access to stop working after a reboot.
Any required Resource File Sets must be converted to XML files and then imported prior to importing device XIF files or running inex. A SmartServer IoT device needs to be added to CT for each SmartServer IoT device you are going to use. The SmartServer IoT device needs to be added to a IP-70 channel (each SmartServer needs its own IP-70 channel), which may require you to add additional IP-70 or U60 channel. Only devices in the CT subsystem or child subsystem will be exported to the SmartServer.
Issues:
- Did you change the SmartServer to IMM before using inex?
- If not, then reset the SmartServer database, change to IMM using the SmartServer CMS Devices widget, and go through the inex import process again.
- inex cannot find the SmartServer IoT device in CT or IzoT Net Server.
- Did you add a SmartServer IoT device to a SmartServer IP-70 channel in your CT drawing or IzoT Net Server database?
- If not, then add the device.
- inex cannot reach the SmartServer.
- Make sure that the MQTT ports are open; by default these may be closed. Go to the SmartServer Configuration page Firewall tab and open the ports that you are using with the inex tool.
- Datapoints in the SmartServer are correctly formatted or are not working properly.
- Did you import any required resource file set prior to running inex? Resource XML files need to be imported manually into the SmartServer CMS prior to running inex.
- Workaround: remove all devices and device types, then import the Resource file Set XML files, and finally run inex.
- If you ran inex using /skipfile and did not import the XIF manually or import the device XIF into the SmartServer CMS prior to running inex, then this could cause the issue.
- Workaround: remove all devices and device types, import any required Resource file Set XML files, optionally import the XIF files, and run inex with /skipfiles if XIF files were already imported, or without /skipfiles for inex to export the XIF files.
- Did you import any required resource file set prior to running inex? Resource XML files need to be imported manually into the SmartServer CMS prior to running inex.
- Routing or datapoint access stop working after a SmartServer reboot.
- This usually means that you ran inex while the SmartServer is in DMM.
- Workaround: reset the SmartServer database, change to IMM, and reimport the Resource File Set XML and XIF files, and then run inex.
- This usually means that you ran inex while the SmartServer is in DMM.
21. The SmartServer constantly reboots in the U-boot prompt, or is stuck in the U-boot.
If the SmartServer constantly reboots in the U-boot prompt, then you may be able to recover the SmartServer by performing the workarounds described below. If the SmartServer gets stuck in the U-boot, then try to stop the U-boot boot process. While this issue is rare, it mostly occurs when re-imaging to an older image (prior to SmartServer 3.5) or when upgrading an older image.
Not all old SmartServer software versions support the newer hardware as the old software version does not know about the new hardware changes (for example, CPU, PMIC or memory). Using the wrong software version can cause the SmartServer to stop working and may invalidate the SmartServer warranty. See Determining SmartServer Software Compatibility for details on which software supports your SmartServer hardware.
If you already downgraded the SmartServer and are stuck in the U-boot then try re-imaging the SmartServer in the U-boot prompt to the Software version that supports the SmartServer hardware.
This issue may also occur when doing a re-image using lower quality USB flash drive. In this case there have been reports of the SmartServer getting stuck in the U-boot, but after plugging in a known good USB drive that you used before for re-image, and then reboot the SmartServer, the SmartServer in many case will then complete the re-image process. Use quality flash storage such as a Samsung flash storage device.
U-boot Instructions:
- Connect to the SmartServer console port (SSH cannot be used).
- Press and hold down any key on your keyboard (e.g., the space bar) until the boot process stops. Once it is stopped, you will have less than 30 seconds to enter commands. You can press any key to extend the timeout for another 30 seconds.
If the boot process stops, then re-save the environmental variables by issuing the following commands as one copy and paste. Doing so fixes most rebooting issues.
env default -a saveenv
Once the SmartServer comes up, perform another reboot using the System Configuration page.
- If the previous workaround does not work, then re-image the SmartServer from the U-boot prompt by following KB1438.
- If you cannot stop the boot process, then contact Support as described below.
22. SmartServer does not recognize a USB flash drive.
This issue may occur when doing a re-image using lower quality USB flash drive, or when the USB flash drive is not formatted properly. Use a quality flash storage such as a Samsung flash storage device.
To resolve this problem, perform the following:
- Try rebooting the SmartServer with the USB drive plugged in.
- In older SmartServer version you will need to unplug the U60/U70, plug in the USB flash driver and reboot the SmartServer before the USB flash drive is recognized.
Using SSH/console, enter the following command:
sudo mount /dev/sda1 /media/usb0
If the problem persists, then enter the following commands:
sudo mkdir -p /media/usb0 sudo mount /dev/sda1 /media/usb0
- Try using a different USB flash drive.
23. The SmartServer power line repeating does not work, or cannot communicate with power line devices.
If the SmartServer Configuration page LON tab shows "The lon1 device has failed a CENELEC protocol query. Device likely needs to be reset to restore communication" then you need to use SmartServer 3.65 or 4.1 (Beta) and higher, and update the U70 software.
For power line repeating networks, update the SmartServer and U70 software even if do not see the CENELEC error.
If you experience problems with the U60 or U70, then add a USB 2.0 ferrite clamp onto the USB cable to reduce LON channel noise. See https://www.usbfirewire.com/parts/rr-fh0-500b.html.
Once you enable repeating static/dynamic, you cannot revert to non-repeating. Doing so requires that you perform a database reset using the System Configuration page that deletes all of your settings and devices. Once repeating is enabled, you can change between static and dynamic.
You typically will enable dynamic repeating to cause the SmartServer to set up repeating chains based on power line communication. In most cases, you will use dynamic repeating so that the SmartServer periodically checks the network and sets up the best repeating path based on current channel impairments.
After you change the power line communications setting in the SmartServer LON Configuration page and press the Power Line Communications Update button, you need to reboot the SmartServer.- Devices appear red in the CMS – if you are using repeating (static or dynamic), then you can use the DCI console commands to see the devices' current state and repeater chains. If the CMS Devices widget shows red devices, but the dcxshowdevices shows that devices are up, then use the CMS Devices widget to test the device. This test will determine whether communication is truly down.
- Check the SmartServer Configuration Page LON Tab to see if the U70 is working.
- If U70 is not working you many need to upgrade the U70 software (and SmartServer software), and add a filter. See CENELEC note above for upgrading U70 software, and U60 and U70 USB 2.0 Ferrite Bead filter note. for filter details.
- Even there is no issue with the U70, you may want to add these enhancements to prevent future issues.
- If U70 is not working you many need to upgrade the U70 software (and SmartServer software), and add a filter. See CENELEC note above for upgrading U70 software, and U60 and U70 USB 2.0 Ferrite Bead filter note. for filter details.
- Using NodeUtil – when power line repeating is enabled, NodeUtil can only be used to communicate edge devices, which can be reached directly by the SmartServer. NodeUtil cannot be used to communicate to edge devices that require a repeater since there is no way to specify a repeater path with NodeUtil.
- Using LonScanner – LonScanner can only see traffic locally; therefore, you will only see traffic that the SmartServer can hear. LonScanner sees packets that go to devices that the SmartServer can communicate directly to (1 hop). For devices that require repeaters (2 or more hops), in most cases, LonScanner will not show the packets in between repeaters and the destination device.
24. I am having connections issues.
You can create connections with both the CMS Connections widget and using MQTT. MQTT created connections do not show up in the Connections widget. If you make changes using the Connections widget but do not see the updates, then click the Refresh button () to see the updates.
- Only LON devices using DMM – why am I not able to create a peer-to-peer between edge devices or an internal device and an edge device?
- Not all datapoints on the LON device can have a peer-to-peer connection. This applies to both input and output datapoints. Look at the device's XIF to determine if the datapoint can have a peer-to-peer connection. Each datapoint has a poll flag, which when set, means that the datapoint can only be polled. If a datapoint is poll only, see the datapoint section for details.
- Workarounds:
- Internal devices – you can change the XIF you are using such that the datapoint poll flag in the XIF file is set to a 0 and then re-import in the XIF file. You may need to change the program ID in the XIF file if you were using this same XIF file for real devices.
- Edge devices – you will either need to use point-to-point connections (which may slow down sending updates to sources datapoints) or compile new code for the devices with the poll flags set to 0.
- Workarounds:
- Not all datapoints on the LON device can have a peer-to-peer connection. This applies to both input and output datapoints. Look at the device's XIF to determine if the datapoint can have a peer-to-peer connection. Each datapoint has a poll flag, which when set, means that the datapoint can only be polled. If a datapoint is poll only, see the datapoint section for details.
25. Scheduled events astronomical sunrise and sunset times are off.
The SmartServer uses Civil Dawn and Civil Dusk for sunrise and sunset, respectively, as Civil times are reportedly more accurate for street light applications. The Calendar widget only shows a fixed sunrise and sunset time.
- Determine actual sunrise (Civil Dawn) and sunset (Civil Dusk) times.
- With SmartServer 3.62 and higher, the /var/log/supervisor/scheduler.log shows each day, or after power up, the daily Civil Dawn and Civil Dusk in local time.
- If the times are off, check latitude and longitude using CMS Devices widget. Click the View All Properties action to see latitude and longitude.
- Using the CMS:
- Assign the device to a context.
- Export devices, modify the devices.csv to include latitude or longitude, and re-import the file.
- Using REST or MQTT API to add latitude and longitude.
- Using the CMS:
- Verify that the SmartServer is in the correct timezone by looking CMS Devices widget → Segment Controllers tab.
- Using console/SSH, check current time by entering timedatectl.
26. I am having issues with the SmartServer data log.
The SmartServer data log is accessible through the CMS Datapoints widget, or through REST/WebSocket APIs. MQTT does not have access to the data log data.
- If the SmartServer does not appear to be logging all data, then this usually means that you may be using the default logging setup. This setting is not correct and will usually mean gaps in log data. If you are using Value for Log Minimum Delta Value, then you must specify a numeric value.
Example of an incorrect setting: default logging setup on the Datapoint Properties widget Monitoring and Logging Configuration tab (this configuration may result in gaps of data log data):
Example of a correct setting: configuration for a numeric scalar datapoint (e.g, only logging temperature data if temperature value changes by one degree since the last logged data value):- Log settings:
- Structured datapoint – Log Minimum Delta Value must be changed to Always or On Any Change
- Scalar datapoints
- Number datapoint – Log Minimum Delta Value can be Value, Always or On Any Change
- If you are using Value, then you must specify a numeric value as shown above.
- If you do not specify a numeric value, then you will get inconsistent or no log data.
- If you are using Value, then you must specify a numeric value as shown above.
- Enumerated datapoints (datapoints that are strings, such as HVAC_Auto) – Log Minimum Delta Value must be changed to Always or On Any Change
- Number datapoint – Log Minimum Delta Value can be Value, Always or On Any Change
- Log settings:
27. For LON devices only, I deleted a device, and now I cannot add a new device with the same name.
Only for LON devices using DMM.
You can create connections with both the CMS Connections widget and using MQTT. MQTT created connections do not show up in the Connections widget.
This problem may indicate that the LON drivers LTE and LTX crashed or are out of sync.
Restart only the LON services using SSH/console. Doing so typically allows you to add the new device.
sudo smartserverctl restart lon
sudo supervisorctl restart lon:
For SmartServer 3.6 and prior, include the colon : at the end of the command.
28. SmartServer internal device stops working after upgrading to SmartServer 4.0 or higher.
Perform the following steps to troubleshoot problems with edge devices:
- With SmartServer 4.0 and higher, to access services and install internal devices, note the following:
- supervisorctl is replaced with smartserverctl. For SmartServer 3.6 and prior, supervisorctl is used.
- Update any scripts or code that use supervisorctl to use smartserverctl (the format has changed for some commands); create unit files.
29. Troubleshooting edge device issues.
Perform the following steps to troubleshoot problems with edge devices:
- Go to the CMS Devices widget and check the current state.
- If device appears to be down, but is expected to be up, then do one of the following:
- Click the device's Action button () and select the Test action to verify communications to the device.
- Go to the CMS Datapoints widget and filter on at least one of the device's datapoints, and either have the polling interval greater than 0 or click the Refresh button ().
- Use MQTT explorer to check device health (e.g., topic
glp/0/17qam88/fb/dev/lon/2/sts
health parameter).
- For LON devices only that are using power line repeating:
- The CMS Datapoints widget polling interval should be set either to 0 or a very large number. Do not leave the polling interval at the default 30 seconds since this can affect power line performance.
- The CMS Datapoints widget polling interval should be set either to 0 or a very large number. Do not leave the polling interval at the default 30 seconds since this can affect power line performance.
- If device appears to be down, but is expected to be up, then do one of the following:
- If data logging is enabled for a datapoint on the device, then check the data log using Datapoints widget and filter on logged data.
- Each data log entry will report whether the device is running (normal) or down.
- Each data log entry will report whether the device is running (normal) or down.
- Go to the CMS Alarms and Events widget and look for warning or error messages.
- Check the device information, typically available in the alarm event Details or Description.
- Manually review the information in these columns; there is no filter capability for the columns.
- Filter on Raising local time column to reduce the number of events that are displayed.
- Raising local time is when the alarm/event occurs (based on the SmartServer local time).
- Export the alarms and use Excel to search for the device name.
- Check the device information, typically available in the alarm event Details or Description.
- For LON devices only:
- Use LonScanner.
- Use LonScanner to check whether the device is responding to write or read requests.
- Use the SmartServer's built-in LonScanner RNI to look at LON traffic.
- To fully check a LON channel, use a laptop with its own network interface and place it near the problem device, and open LonScanner with two log windows, one for the laptop network interlace and one at the SmartServer. In this way, you can determine if a request from the SmartServer reaches the edge device, and whether the edge device response is received by the SmartServer. You can also determine the degree of delay in responses.
- A delayed response, due to heavy traffic on the channel or noise, can cause the device to be reported as down even though there is communication to the device.
- Sustained traffic on a LON FT-10 or XF-1250 channel should be 40% or lower, since this half duplex channel needs to allow some bandwidth for important traffic to get through without delay.
- If the SmartServer is originating all of the communication (it is the only one sending request packets), then you can have a higher sustained bandwidth value.
- Use NodeUtil to communicate to the edge device using the SmartServer RNI or another network interface.
- Check whether you can communicate to the device by:
- Getting node status information.
- Looking at the device's domain/subnet/node IDs.
- Reading back network variable values.
- For power line repeating channels, you can only communicate to devices with direct communication to the SmartServer.
- Check whether you can communicate to the device by:
- Use LonScanner.
30. I cannot export files using the SmartServer CMS Import/Export button.
When you export settings or create backups using the SmartServer CMS Import/Export Button and click the download button, the SmartServer will open a new web page that uses the SmartServer hostname in the URL. If you do the export remotely through a VPN, or the hostname to IP address resolution does not work, then you will get an error similar to the one shown below.
Perform one of the the following:
- Change the URL to use the SmartServer IP address instead of the hostname. For example:
- URL using the SmartServer hostname that returns an error: https://smartserver-17qap31/iap/cms/storage/download/e9xbVBKle7
- Replace the hostname with the SmartServers IP address and then click the enter key: https://10.100.16.31/iap/cms/storage/download/e9xbVBKle7
- If you change the HTTPS port (say from 443 to 1443) you will also need to add that: https://10.100.16.31:1443/iap/cms/storage/download/e9xbVBKle7
- If you change the HTTPS port (say from 443 to 1443) you will also need to add that: https://10.100.16.31:1443/iap/cms/storage/download/e9xbVBKle7
- If the SmartServer always uses a fixed IP address, change the /etc/hosts file to resolve the hostname to IP address. See Backing Up, Restoring, and Cloning the SmartServer for more information.
Contacting Support
Before you contact the Support team, consider upgrading to the latest SmartServer version to ensure that you are running the latest SmartServer features and fixes.
If you need to contact support, please provide the following information:
- Provide the SmartServer software version. The software version appears on the Configuration page System tab, the CMS dashboard, and when you log into an SSH/console session.
- Provide the SmartServer serial number.
- The SmartServer datecode is part of the SmartServer serial # is found on the SmartServer label.
- Only use the label serial number for RMAs.
- You can also see the serial # on the SmartServer Configuration Page System tab and when you ssh/console in.
- Note, these values are changed when restoring a backed-up or cloned system image; cannot be used for RMAs.
- Format: 44yywwrxxxxx, where ww is the week of the year, yy is the year, and r is hardware revision. xxxxx indicates other characters in the serial #.
Example Serial # 442031F00100: Datecode = 2031F which means 31st week in year 2020 with Rev "F" hardware (Quad core). Rev A-D are dual core, Rev F+ are quad core.
- The SmartServer datecode is part of the SmartServer serial # is found on the SmartServer label.
- For license issues also provide the SmartServer install code (Look at System Configuration page or label on back of SmartServer).
- Provide additional information, such as:
- Identify when the problem started.
- Example: the problem happened after a GLPO update (i.e., an update using the CMS Devices widget, Update action), re-image, or restoring a previous backup.
- Identify whether this a new problem, or whether this problem always existed.
- Provide screen captures or videos of error messages, web pages, or console/SSH commands.
- Identify when the problem started.
- Provide SmartServer log files.
- For SmartServer release 4.0 and higher - Most of the important logs are now in the /var/log/syslog.
- Go to the System Configuration Web page and click on the Logs button which will download the file to your PC (usually downloads folder).
- Extract the *.tgz - on windows you can use 7-zip to extract the files.
- During the extraction process you may see a Confirm File Replace dialog pop up. If you see this dialog click the Auto Rename button.
- Extract the *.tar file.
- During the extraction process you may see a Confirm File Replace dialog pop up. If you see this dialog click the Auto Rename button.
- As some of the files in the *.tgz are symbolic links which may not be supported by Windows, wait until the progress bar is completely green and the click the Close button.
- The /var/log/syslog contains the most of the important log information.
- In older Smartserver version (prior to release 4.0) each driver (like lte, ltx, or BACnet) had their own log file. Starting with 4.0 these logs are now combined in syslog.
- For SmartServers 3.6 and prior, some log files cannot be copied with the apollo login.
- You can retrieve the log files in one of the following ways:
- Use WinSCP with root login (not supported if enhanced security, available with SmartServer 3.5 or higher, is enabled; see Enhancing Security) to copy all files and directories in
/var/log - If you are using SmartServer 3.5 or higher, and enhanced security is enabled, then go to the System Configuration page and temporarily disable Enhancing Security. Use WinSCP with root login to copy all files and directories in /var/log, and then re-enable enhanced security using the System Configuration page.
/var/log Create a log tar file (like a windows zip file) using the apollo login for both SSH and WinSCP.
Run the following two SSH commands (these commands can be used with enhanced security enabled or disabled), and use an SFTP application (e.g., WinSCP) to copy the file /var/apollo/data/logs.tar.gz.sudo tar -czvf /var/apollo/data/logs.tar.gz /var/log sudo chown apollo /var/apollo/data/logs.tar.gz
- Use WinSCP with root login (not supported if enhanced security, available with SmartServer 3.5 or higher, is enabled; see Enhancing Security) to copy all files and directories in
- For SmartServer 4.3 and prior, if you have any issues with the CMS, then provide the Karaf log files.
- The location of the files is dependent on the SmartServer version number.
/home/apollo/echelon-container-devel-xx.xx.xxx/data/log/karaf.log
where xx.xx.xxx is the SmartServer version number
For example, SmartServer 2.61.005:
/home/apollo/echelon-container-devel-2.61.005/data/log/karaf.log - To read the last 2000 lines in the file, use the following ssh/console command:
tail -2000 /home/apollo/echelon-container-devel-2.61.005/data/log/karaf.log
- The location of the files is dependent on the SmartServer version number.
- You can retrieve the log files in one of the following ways:
- For SmartServer release 4.0 and higher - Most of the important logs are now in the /var/log/syslog.
- Provide an Export of the CMS Settings:
- For SmartServer 3.5 and higher, use the Import/Export button ().
- For SmartServer 3.4 and prior, use the CMS Settings button ().
- Before processing any warranty returns (RMA) or if the SmartServer is out of warranty
- Try re-imaging the SmartServer to the latest supported software for the hardware as a re-image fixes most issues.
- In some cases in addition to the re-image you may need to do additional reset database or restore to factory to correct an issue.
- Open a Support ticket:
- Open a support ticket at https://support.enocean.com/#login. This usually provides the fastest response time from our support team.
- Send an email to edge.support@enocean.com.
- Provide the SmartServer serial number.