Electronics are everywhere now. The electronics based systems usage has exploded exponentially and has entered all aspects of our life whether it is automotive, white goods, entertainment, wearables and what not!
This has happened due to the large integration of electronic devices to make very complex and computational intensive micro-controllers and SOCs (systems on chip). Today consumer whitegoods and electronic designs are getting complex day by day which is bringing the focus of designers to ease of usage and troubleshooting.
The complexity of design requires a greater need for the internal debug information to understand what is happening inside the computing unit and if there are faults or failures seen, it can be retrieved and checked at various stages of product lifecycle as shown below.
Product Development and Engineering
For embedded systems, it may be needed to observe and certify the reliability of the product by checking the performance over a long period of time. Manually observing the behaviour of the system may not be feasible or efficient. It can be challenging as well to analyze big data and need specific analysis.
The intermittent failures or conditional failures can only be debugged after the right logging of events and errors cases. This information is already available and checks are already put in place by the developer. Providing this information externally for analysis requires a small amount of memory or dumping of the internal information
These self-tests and error codes or messages are helpful in quality assurance during product development and manufacturing, optimization of test time and production tests and even post-sales maintenance. If there is an error, the system already provides the information on which part was not able to communicate well and hence caused the problem. This can be tested or debugged by a technician easily and repairs can be carried out.
Some key products may require a specific mode of transport and logistics. These kinds of systems may keep track of environmental and handling electronic data into the internal memory like shock, humidity and temperature. These data can be analysed at a destination to check if the product moved in a recommended mode of transport and handling.
In field Service
The user can use the smartphone to retrieve the internal information of the product installed in the field. This information is very useful for the maintenance service provider and can help the company to inform the staff to be rightly prepared for the service call. This not only saves the number of visits for the maintenance but also the time in the service call.
Currently used Methods for Debugging the Systems
While, the LEDs, LED segments and LCDs have limited capability to provide error information, the new smart connectivity can provide much more information to the user. These open new ways of capturing information, debugging, production level quality check and optimization of test time and post-sales maintenance.
New Smart Connectivity Method for Debugging using NFC
Most of the embedded systems have an internal non-volatile memory for the storage of some system parameters. When this EEPROM is replaced by a Dual-Interface EEPROM, it can further be used for the error reading and system health using wireless communication
The active RFID tags can provide very cost-effective error codes logging. These can be retrieved by an NFC interface. NFC (Near Field Communication) is a wireless technology based on RFID (Radio Frequency Identification) at 13.56 MHz that establishes a communication between the devices by bringing them in close proximity. Today most of the mobile phones have NFC interface. This can be used to communicate with Active tags to the information exchange with a user.
Consider that in a system, like a consumer product, an active tag can be very useful for the self- diagnosis. When the system is powered ON, all parts of the systems are checked and the status is written in the already available Active-tag. This can be read during the final quality check and if all the parameters are found to be ok, the product is shipped.
Testing all parts of the system in one step can also save time during the production line. It takes a few seconds of time to read the system health. A smart-phone or a reader can show the meaning of the error by suitable apps and it can be a very easy user interface. While, if there is an error, the system already provides the information on which part was not able to communicate well and hence caused the problem.
This can be tested or debugged by a technician easily and repairs can be carried out. This method can also be used in post-sales. The user can just touch the smartphone on the panel of the white good and read the internal information via NFC. This information can be sent to the central servers while logging the complaint automatically via WAN connectivity like Wi-Fi or GPRS connection.
Implementing NFC based Smart Connectivity for Easy Debugging
Microcontroller controlled embedded system can test its internal logic and external peripherals connected with it. Self-test report can be updated on smartphones using NFC. Some testing commands can be given using a phone to further analyse the problem. NFC connectivity is a very cost-effective, compact and noise free solution which can be incorporated easily even in small systems.
Today most people have smartphones which can be used to test system and then to give its preliminary information along with the type of fault which can be displayed on phone using android application. For better understanding, the pedometer system has been taken as an example.
Wearable Pedometer is implemented using a STM32L series microcontroller which reduces the power requirement for concerned application & provides adequate processing capabilities ideal for this application. It also has various on-chip peripherals like SPI, I2C and ADC which helped in designing low cost and low power solution.
Dynamic NFC/RFID tag IC M24SR64-Y has the capability to operate from an I2C interface or by a 13.56 MHz RFID reader or an NFC phone. It helps in establishing low-cost RF Communication between pedometer and phone. It embeds an EEPROM memory which is used to save the system status and other required information.
To take the advantage of troubleshooting system without opening the system, An Android app has been developed which can communicate with the system without making physical contact. Even Dynamic NFC/RFID tag IC does not require the power supply to communicate using RFID reader. To check the status of the system, phone has to bring near to the system to initiate the communication.
Dynamic NFC/RFID tag IC has a pin which can be configured to generate an interrupt for the main controller to wake up the system with the presence of NFC. With the interrupt system can run configured tasks to check the system health & write the status in NFC IC. The NFC can be read using RF link to check system status. Eventually, phone displays the system status like “System Ok” pops up to tell that overall system is ok. Otherwise “System Fault” pops up in case of faulty systems mentioning the area in which fault has occurred.
Smart connectivity in systems can give multiple benefits starting from the production to the servicing on hand of the customer. This can help in to reduce the overall costing of the product. Out of the smart connectivity options available today, NFC could be a good choice as it is economical, require very low power & space which makes it ideal for any of the application whether small or big.
(The article is co-written by Mr. Alok Kumar Mittal – Group Manager, SRA (System Research and Applications), India, STMicroelectronics and Mr. Kamaldeep Bansal – Staff Engineer, SRA (System Research and Applications), India, STMicroelectronics)