Lantronix 900-691-R manual Monitor Filtering 1

Page 62

11: Monitor

Filtering

Figure 11-10 Monitor Filtering (1 of 2)

The response to each poll will be sliced up according to your filter rules. The objective is to simply slice enough so you can subsequently point to the data fields you want to mine.

Note the raw data in the grey box above; it reflects what was received from the serial device. See "Uptime" in the top right region-that's our target for the example.

STEP 1 - STRATEGY

Carefully examine the form of the response you received from a particular poll. Look for cues in the response to locate your desired information. Consider if the form of the response might have variations depending on the serial device state.

STEP 2 - SETUP

Use Monitor Explorer or directly configure settings in Monitor Filter Configuration. Rules are performed sequentially, but note that you can point each Rule to either the raw source (0) or a result of a previous rule (R.f). Each rule (R) slices the raw input into multiple fields (f), so with a dot between them (R.f) you are selecting a particular sliced result from a Rule.

STEP 3 - TEST

Testing is rapid and simplified using Monitor Explorer. You can see the response data sliced into pieces right in your browser windows.

Sample Configuration

 

First slice the response into lines, point to the one

Figure 11-11 Monitor Filtering (2 of 2)

containing Uptime, then slice between the caption

 

and the time value.

 

Setup as follows:

-We could see the Carriage Return / Line Feed sequence in our raw source.

-Rule 1 points to the raw source (Source 0), Mode = Delimiters, Delimiter 1 Binary String = "[0x0d 0x0a]".

-We can see our Uptime is in the sixth field.

-Rule 2 dices that field (Source 1.6) further, to split the caption from the value.

-We see that a colon (:) separates the caption from the data, but the data also contains colons.

-Rule 2 Mode - Delimiters, Delimiter 1 Binary String = " :" (that's a space followed by a colon). We use the space so it will match the transition from caption to value, but not match within the Uptime value itself.

Testing with this, confirm that the desired data is contained in a single field.

xPico® Wi-Fi® Embedded Device Server User Guide

62

Image 62
Contents Embedded Device Server User Guide Contacts WarrantyIntellectual Property DisclaimerTable of Contents Configurable Pin Manager Interface SettingsTunnel Settings Services SettingsBranding the xPico Wi-Fi Unit Maintenance and Diagnostics SettingsAdvanced Settings MonitorAppendix C Technical Support 103 Updating FirmwareAppendix B WebAPI 100 105Appendix E Binary to Hexadecimal Conversions 112 XPico Wi-Fi Product Label List of FiguresList of Tables XPico Wi-Fi Embedded Device Server User Guide Summary of Chapters Using This GuidePurpose and Audience Chapter DescriptionAdditional Documentation Document DescriptionKey Features IntroductionTroubleshooting Capabilities Protocol SupportProduct Information Label Configuration MethodsAddresses and Port Numbers XPico Wi-Fi Product Label Configuration Using Web Manager Accessing Web ManagerStatus StatusHelp Area Web Manager ComponentsNavigating Web Manager Web Manager Pages Web Manager Description SeeTo Configure Network 1 Interface Settings Network SettingsNetwork 1 Interface ap0 Configuration Network Interface SettingsNetwork 1 ap0 Link Description Settings Network 1 ap0 Link SettingsNetwork 1 ap0 Link Settings To View Network 1 Interface StatusMode To Configure Network 1 Link SettingsTo View Network 1 Link Status UptimeNetwork Interface Description Settings Network 2 wlan0 Interface ConfigurationTo Configure Network 2 Interface Settings To View Network 2 Interface Status Network 2 wlan0 Link StatusWlan Profiles To View Network 2 Link StatusWlan Profile Basic Settings Description To Configure Wlan ProfilesTo Configure Wlan Profile Settings Creating, Deleting or Enabling Wlan ProfilesWlan Profile Security Settings Wlan Profile Description Security SettingsWlan Profile Advanced Settings Description To Configure Wlan Quick ConnectWlan Profile Advanced Settings Wlan Quick ConnectScan network Ssid Wlan Quick Connect Description SettingsWlan Quick Connect Network Name linkLine Configuration Settings Interface SettingsLine Settings Line Settings DescriptionTo View Line Status To Configure Line SettingsGap Timer Xoff CharSPI Configuration Settings Serial Perpheral Interface SPI SettingsTo Configure SPI Settings To View SPI Status To View Tunnel Serial Settings Tunnel SettingsLine Settings Tunnel Line SettingsTunnel Packing Mode Description Settings Packing ModeTunnel Packing Mode Settings Tunnel Accept Mode Settings To Configure Tunnel Packing Mode SettingsAccept Mode Tunnel Accept Mode Description SettingsTo Configure Tunnel Accept Mode Settings Tunnel Connect Description Mode Settings Connect ModeTunnel Connect Mode Settings Tunnel Disconnect Mode Settings To Configure Tunnel Connect Mode SettingsDisconnect Mode Tunnel Disconnect Description Mode SettingsModem Emulation Settings Modem Emulation SettingsTo Configure Tunnel Disconnect Mode Settings StatisticsCommand Description Tunnel SettingsModem Emulation Commands and Descriptions ATZ Current Configurable Pins Configurable Pin ManagerConfigurable Pin Status CP StatusRoles Active in RoleCPM Role Current Description Configuration To Configure CPM SettingsRole Configuration To Configure Http Settings and Access Control Services SettingsHttp Settings Http SettingsTo View Http Status File System Statistics Maintenance and Diagnostics SettingsFile System Settings File DisplayFile Manipulation Device SettingsDevice Management Settings To Transfer or Modify File System FilesAdmin User Settings Admin UserTo Configure Admin User on the Device To View IP Socket Status Diagnostics SettingsTo View Hardware Status To View Buffer Pool StatusXML Import and XML Export Advanced SettingsTo Import or Export XML Configuration Modem Emulation Settings Description Performance SettingsPerformance Settings To Configure Performance Explorer Settings Description Monitor SettingsMonitor Explorer Settings MonitorRule Number DisplayMonitor Control Settings ConfigurationMonitor Initialization Settings Initialization Description SettingsPoll Settings Description Monitor Poll SettingsMonitor Filter Settings DelayData Settings Description To Configure MonitorMonitor Data Settings Selector NumberExample Data Capture on a Serial Device InitializationPolling Monitor Polling 1Filtering 10 Monitor Filtering 1Data Mining 12 Monitor Data Mining 1Presenting Data Capture on SPI Changing the Presentation Branding the xPico Wi-Fi UnitWeb Manager Customization Path FormatOther Overridable Files Updating Firmware Obtaining Firmware Loading New Firmware through Web ManagerUpdating Firmware XML Architecture and Device Control Appendix a Command ReferenceConventions Convention DescriptionBoot to CLI Configuration Using Serial PortSerial Command Mode Table A-1 Keyboard Shortcuts Using Keyboard Shortcuts and CLINavigating the CLI Hierarchy Key Combination DescriptionUnderstanding the CLI Level Hierarchy Configuration Using XMLAppendix a Command Reference XML Configuration Record Document Type Definition Figure A-3 DTD for XCRsElement Start and End Tags Quick Tour of XML SyntaxDeclaration Element AttributesRecord, Group, Item, and Value Tags Figure A-5 XML ExampleConfiggroup CPM XML for xPicoWi-Fi Embedded Device ServerConfiggroup Access Point Configitem Port Configgroup Http ServerConfigitem State Configitem Inactivity TimeoutConfigitem Dhcp Client Configgroup InterfaceConfigitem Access Control Configgroup Line Configitem Baud Rate Configitem NameConfigitem Protocol Configitem ParityConfiggroup Performance Configitem Wkup Pin Power Up Configgroup SPIConfigitem Maximum Time Powered Down Configitem Time Powered UpConfiggroup Users Configitem Password Configgroup Wlan ProfileConfigitem Instance Configitem BasicConfiggroup XML Import Control Configgroup Modem Emulation Configgroup Monitor Initialization Value Length Configgroup Monitor ControlValue Timeout Configgroup Monitor Poll Configitem DelayConfiggroup Monitor Filter Configitem RuleConfigitem Selector Configgroup Monitor DataConfiggroup Tunnel Accept Configitem Local PortConfigitem Flush Line Configitem Start CharacterConfigitem Flush Start Character Configitem Block LineConfigitem Prompt for Password Configgroup Tunnel LineConfigitem Block Network Configitem DTRValue Address Configgroup Tunnel ConnectConfigitem Host Value Port Configitem ConnectionsConfigitem Reconnect Time Value ProtocolConfigitem Flush Stop Character Configgroup Tunnel DisconnectConfigitem Stop Character Configitem Modem ControlConfiggroup Tunnel Packing Configitem Send CharacterConfigitem Trailing Character Export Status Group Export Configuration GroupAppendix B WebAPI Take Status Action Appendix B WebAPIImport Configuration Group Curl example configuration as part of commandEurope, Middle East, Africa Emea Appendix C Technical SupportNorth America Japan Asia / Pacific ApacLatin America & Caribbean Online Table D-1 Country Certifications Country SpecificationAppendix D Compliance Table D-2 Country Transmitter IDsTable D-3 Safety Table D-4 Europe EU Declaration of ConformityFederal Communication Commission Interference Statement Radiation Exposure StatementManual Information To the End User Industry Canada StatementEnd Product Labeling Déclaration dexposition aux radiationsPlaque signalétique du produit final Table D-5 Approved Antennas List Manuel dinformation à lutilisateur finalAntenna Requirement Type Gain BrandManufacturers Contact RoHS NoticeConversion Table Appendix E Binary to Hexadecimal ConversionsConverting Binary to Hexadecimal Scientific CalculatorAppendix E Binary to Hexadecimal Conversions