Tag: Phidgets

  • How Do Phidgets Work?

    How Do Phidgets Work?

    What Are Phidgets?

    Phidgets are a collection of specialty circuit boards manufactured by Phidgets, Inc. These task-specific boards are designed to work seamlessly together in a network environment, and are backed by a suite of software that enables Roastmaster to read and use the information they gather for Data Logging.

    Operating on your WiFi network, Phidgets offer a versatile and scalable wireless solution for monitoring and logging temperatures while you roast in Roastmaster.

    Wireless…How?

    Since iOS devices do not have USB ports, a Phidget Temperature Sensor (with one or more attached J,K,E or T thermocouples or RTD probes) is connected to a network “host”. This host sends temperature readings to Roastmaster via your WiFi network.

    What Can I use as a Host?

    You can use any desktop, laptop or compact computer to host a Phidget Temperature Sensor on your WiFi network. As long as it is capable of running the Phidgets Network Server software, and has USB and wireless capabilities, it can be used as a host for Roastmaster. Common setups are:

    A Standard Laptop or Desktop Computer

    A Mac or Windows laptop or desktop with available USB port and a wireless capabilities is a cost-effective solution for a Phidget host. It is not the most convenient solution, however, since the laptop must be powered on and sitting near the roaster while you roast.

    Phidgets SBC

    Phidgets, Inc. manufactures a SBC (Single Board Computer) with a web management interface that is tailored to serving as a network host for their sensor hardware. This miniature computer runs Debian GNU/Linux and is easy to configure and maintain. This solution is the most convenient and efficient, since it can be mounted near the roaster and requires very little maintenance.

    Later models include an incorporated VINT Hub for attaching the modern Phidgets.

    Phidgets Wireless VINT Hub

    The Wireless VINT Hub incorporates is a more economical host for Phidgets. Similar to an SBC, but lightweight, it also includes an incorporated VINT Hub for attaching the modern Phidgets.

    DIY Hardware

    For enterprising DIY enthusiasts, any other hardware capable of running the Phidget Server Software can be used as well, e.g. RaspberryPi.

    Transmitting Temperature Readings

    Once you’ve selected a host, all you need to do is download the Phidget Software Library and install it on your host. Once installed, you simply activate the Phidget Network Server (WebService on older versions). This will make the attached Phidget visible to Roastmaster on your WiFi network.

    If both the host and Roastmaster are joined to the same WiFi network, and you firewall is allowing the Phidget traffic to participate on your network, Roastmaster can use the Phidgets attached to your host to monitor temperatures and log data.

    See Setting Up Phidgets for instructions on how to get a Phidgets host configured on your network.

  • Troubleshooting Phidgets

    Troubleshooting Phidgets

    What to Do When Roastmaster Can’t Connect to Phidgets

    Setting up a Phidgets network host is normally a quick and painless process. But, when something is not configured correctly, or other network problems occur, it can be intimidating and time-consuming to diagnose. Rainfrog does not author Phidgets software–neither do we have any insight into its internal workings. But…we have seen many Phidgets configuration and network problems, and we can probably help.

    We don’t want you to suffer alone, but before sending us a log file for troubleshooting, please read through the following configuration checklists. These were compiled from years of helping users just like you diagnose their network problems and configuration errors. Nothing on this page is filler. These have all, at one time or another, been real-world problems affecting a Phidgets network host installation.

    We’ve tried to present issues in the order of likelihood that it will help you diagnose your own Phidget host problems.

    1. Check the Link In Roastmaster
    2. Check the Network Host Computer
    3. Check the Phidgets Software Version
    4. Check Your Firewall Settings
    5. Check the Phidgets Network Server Logs
    6. Restart Your Host
    7. See Other Phidgets Issues

    If you still come up empty, submit a log file and ask us for help.

    In addition, you can also reach out to Phidgets directly. They have an excellent support department, and are very good at diagnosing issues and pinpointing problems.

    Check the Link In Roastmaster

    The details screen of a Phidgets probe definition in Roastmaster is the easiest way to determine if Roastmaster is communicating properly with a Phidgets device attached to your network host. Roastmaster will report a status of “Linked” if the Phidget host is powered on and relaying Phidget information over your WiFi network. All you need to do is define a reading curve in a roast, and bind this probe to that curve to view and log temperature readings as you roast.

    If this screen reports a status of “Unlinked”, however, the network host is not properly conveying Phidget information to Roastmaster. This is usually due to a configuration error or software problem on the host, or a network topology problem.

    Check the Network Host Computer

    Roastmaster communicates with Phidgets via a “host” computer that shares the data of any Phidgets attached to it with Roastmaster via your wireless WiFi network. See How Do Phidgets Work? for more information.

    • Verify that the host is powered on and not in a low-power or sleep state
    • Verify that the desired Phidgets are properly attached to the host with the correct USB cables
    • Verify that the Roastmaster iOS device and the host computer are both joined to the same WiFi network

    Check the Phidgets Driver Software on the Host

    Roastmaster 11.0 (October 2017) and later requires Driver Library 22 to be running on your host. Lib22 shares Phidget information with Roastmaster via its “Network Server” software. This must be configured and running for Roastmaster to connect to Phidgets attached to your host.

    Once Lib22 has been installed on the host, verify the following in the Phidgets Control Panel application of your Mac or Windows host that was installed as part of Lib22. SBC users can find these settings in the Phidgets > phidget22 Network Server tab of the SBC Administration Console.

    1. Verify that Phidget Network Server is Enabled and Published
    2. Verify that an arbitrary Server Name (ID) is entered and contains no illegal characters
    3. Verify that a Port is entered
    4. Verify that the Password field is blank
    5. Verify that the Network Server is active. “Network Server is Running” should be displayed

    If you make changes to any of the above items, it is usually necessary to REBOOT the host after applying/saving the changes. Restarting the Network Server software alone (depending on the situation) is often not enough.

    Roastmaster 10.1 and earlier requires Driver Library 21 of the Phidgets software. Lib21 shares Phidget information via its “WebService”. This must be configured and running for Roastmaster to connect to its Phidgets.

    Check Firewall Settings

    A firewall’s purpose is to make your network and computer as safe as possible from unauthorized access and malicious attacks. One way firewalls accomplish this is by blocking unrecognized or suspicious traffic. If a firewall somewhere on your network is enabled with aggressive settings, it may erroneously block the TCP port traffic that the Phidgets Network Server is sending across your network. This can be a firewall on either the host computer, or the router itself. To troubleshoot…

    1. Try disabling any firewall on your host machine or network
    2. Restart the network host computer
    3. Relaunch Roastmaster
    4. See if a connection is established

    If connection is achieved, then the firewall is the culprit. First, re-enable the firewalls. Then add an exception rule to the offending firewall that allows ANY traffic on the TCP port specified in the Phidgets Network Server software.

    When using a Windows machine as a network host, it is usually necessary to add firewall exception rules to the Windows firewall, in order to allow the Network Server to operate. You will need to add both an inbound and outbound rule.

    MacOS and SBC users do not usually have to worry about this, though it can vary–depending on firewall settings on the host computer.

    Check the Phidgets Network Server Logs

    The Lib22 Phidget Network Server software records noteworthy events in a log file called “phidget22networkserver.log”. This file contains detailed information about connections and any errors the Network Server may encounter.

    For example, the following log entry describes a problem in which the Network Server cannot start due to an invalid apostrophe character in the Name (ID) field…

    ERR [phidget22net][2017-10-27T11:41:40 servers.c+997 startServer()]: server name contains invalid characters (‘”‘ or ‘\’)? ‘John’s MacBook’

    In the above example, the formal typographer’s apostrophe ’ is the offending character. Replacing it with an ASCII single quote character will allow the Network Server to start correctly.

    If you cannot connect to your network host from Roastmaster, the log will usually provide information to help you determine why.

    MacOS

    The log file is located at /Library/Logs/phidget22networkserver.log. To view the file, open the Console application located in utilities, and select “/Library/Logs”, then “phidget22networkserver.log”. Or, navigate to that directory in the Finder.

    Windows

    The log file is located at C:/ProgramData/Phidgets/logs/phidget22networkserver.log. To view the file, click “Logs” in the bottom right of the Phidgets Control Panel, or navigate to this directory.

    SBC

    The log file is located at /var/log/phidget22networkserver.log. To view the file, launch the Phidgets Administration Console from the Phidgets Control Panel on a laptop computer. In the Administration Console, navigate to the System > File Editor tab. In the list of directories, click the “var” directory, followed by the “log” directory. The phidget22networkserver.log can be downloaded to your desktop by clicking it.

    Restart Your Host

    Yes, it is often necessary to perform a complete restart of your network host to clear old network sockets and caches when making changes to the Phidget Network Server settings. Simply restarting the Network Server software is often not enough. Perform a reboot by first powering down your host, then booting normally. SBC users can reboot from the System > Reboot tab in the Administration Console.

    When restarting your host, it’s a good idea to relaunch Roastmaster so you can start with a clean slate.

    1. Double-tap the home button on your iOS device. This will display all the apps currently running.
    2. Find the Roastmaster screen and swipe upwards to terminate it.
    3. Relaunch as usual.

    Other Phidgets Issues

    Most Phidget host or network configuration problems can be resolved by the preceding suggestions and settings. The following suggestions, though, may offer some insight into tougher connection problems or other sporadic issues.

    Cause

    Description

    Aggressive FirewallNo connection

    Roastmaster reads Phidget data from a host via a TCP “port”. In networking, ports are designated by numbers, and segregate types of traffic, e.g. 80 for web traffic, 20 or 21 for FTP traffic, etc.

    All firewall(s) on your network must allow both inbound and outbound traffic on the TCP port that is specified in the Phidget Server section of the host Phidget software.

    1. First, verify that the firewall (if any) on the host is allowing inbound and outbound traffic.
      • Windows host: If you are using a Windows machine as the host, you will almost certainly need to add both an inbound and outbound “exception” rule to the Windows firewall for TCP traffic on the applicable port.
      • Mac host: Adding firewall exceptions is usually not necessary.
      • SBC host: Adding firewall exceptions is usually not necessary. 
    2. Then, make sure the firewall running on the router itself allows the same traffic. WiFi routers will typically allow Phidget Server traffic by default, but if you suspect your router is blocking Phidget traffic, you may wish to add exception rules to this firewall as well.
    Mismatched or outdated Phidgets driversNo connection

    The Phidgets software running on the host must be compatible with the Phidgets software running in Roastmaster.

    For Roastmaster 11.0 or higher, please use Driver Library 22.

    For Roastmaster 10.1 or lower, please use Driver Library 21.

    Multiple Simultaneous connectionsNo connection

    Roastmaster and Phidgets support multiple simultaneous connections to a Phidget host from the same hardware device. But multiple simultaneous connections to a host from DIFFERENT hardware devices are NOT supported by the Phidget Server software.

    If you are experiencing a connection problem, please verify that no other users are currently using the Phidget device(s) in question. Even the “monitoring utility” included in the Phidgets software counts as a connection. Please make sure that the monitoring utility is closed as well when attempting a connection from Roastmaster.

    Note: It is often necessary to stop and restart the Phidget Server on the host to clear old connections from its cache.

    Invalid server nameNo connection

    Only certain ASCII characters are permissible in a Network Server host name (ID). Formal typographer’s single and double quote marks, slashes and other special characters are not allowed, and will prevent the Network Server from starting.

    Missing information in Roastmaster’s probe details screen.No connection

    Roastmaster requires a serial number and probe port for each probe definition in order to make a connection. Please ensure that the serial number you use is for the Temperature Sensor itself, and NOT the SBC that it is attached to.

    Roastmaster or host not joined to the WiFi networkNo connection

    Roastmaster and the host computer must both be joined to the same WiFi network for a connection to occur.

    WiFi bottlenecksSporadic connection/dropouts

    Many things can place a strain on your network bandwidth: Audio streaming with Pandora, iHeart radio, iTunes radio, etc, or video streaming via Facebook, YouTube, etc. VOIP/internet phone systems can also occupy an appreciable amount of your available bandwidth.

    If the WiFi network becomes congested, the Phidgets WebService may have a hard time keeping up with the demands, and drop connections sporadically.

    Try eliminating as much unnecessary network traffic as possible.

    Insufficient WiFi rangeNo connection/sporadic connection

    The best possible WiFi range that can be expected indoors with 802.11b/g is 150 ft. This is greatly reduced by obstructions: corners, stairs, floors, etc., and by electronic interference: cell phones, RF products, electronic motors, etc.

    Dead SBC EEPROM batteryNo connection

    If the EEPROM battery on an SBC has been exhausted, the SBC may “forget” its network setting when rebooting, resulting it not joining the WiFi network when restarting. The network information will need to be input again, and the batter will need to be replaced in order to remember this information between reboots.

    Bad or missing themocoupleNo connection/erroneous reading

    If the probe attached to the applicable port is damaged (or if no probe is present at all) the temp sensor will not be able to accurately perform its cold/hot junction algorithms.

    Roaster housing interferenceNo connection, sporadic connection or erroneous readingsMetal roaster housings can pick up electrical noise and transfer that to a thermocouple as electronic interference. This can interfere with the temp sensor’s ability to perform its cold/hot junction compensation and algorithms, resulting in erratic temperature readings.

    Newer roasters may have better grounding, anticipating the popularity of data logging. Older roasters, however, sometimes just employ an iron ferrite bead somewhere in the pathway of the thermocouple leads, as a means to filter out the inherent interference.

    Electronic interference can be combatted by one of two means:

    1. Isolate the probe from the roaster completely by changing a grounded/unshielded probe to an ungrounded/shielded type.
    2. Wrapping the probe leads around a ferrite bead (or using a clamp-style ferrite core around the leads).
    Piggy-backed or spliced probe leads.No connection, sporadic connection or erroneous readings

    The voltages used by thermocouples is extremely low. Therefore, thermocouple leads can never be safely spliced, or split to provide output to two different sets of electronics.

    Consider installing a dedicated probe for Data Logging, or switching to a dual-tip probe.

    Reversed PolarityNo connection or erroneous readings

    Make sure the polarity of the probe leads is correct.

    Radio InterferenceNo connection, sporadic connection or erroneous readings

    RF products (cordless phones, intercom systems, electronic equipment, etc) can cause enough radio interference to create connection issues.

    Try turning off sources of RF interference to see if this is the culprit.

    Incorrect alloy type set in RoastmasterNo connection or erroneous readings

    Verify that the correct alloy type is specified in Roastmaster (K or J).

    Incorrect passwordNo connection

    Roastmaster 10.2 no longer supports the Phidget password field on a host. If you have passwords defined in Roastmaster, remove them.

    In Roastmaster 10.1 and earlier, make sure the password entered in the probe definition exactly matches the password entered in the Web Service field of the host.

    Damaged or incompatible USB cableNo connection

    Replace the USB cable with a compatible USB cable (preferably the cable that came with your Phidget).

    Ask Us for Help

    If you have consulted this guide, and still cannot get a Phidgets connection, please don’t hesitate to ask for help. Locate the network server log file of your host. Make a copy of this file and email it us. We can compare it to the log file of a functioning installation, and possibly offer some insight. Please be sure to include the following in your email.

    1. The “phidget22networkserver.log” log file as an attachment. We cannot offer support without this file.
    2. The version of Roastmaster you are using. This can be found in the “About” window of the main app menu.
    3. The version of Phidgets Lib22 that is installed on your host.
    4. The type and version of operating system running on your host, e.g. OS X 10.12.6, Windows 10, etc.
    5. A summary of your problem
  • Setting Up Phidgets Legacy Lib21

    Setting Up Phidgets Legacy Lib21

    These are outdated instructions, and only apply to Roastmaster 10 and earlier, which uses Phidgets Lib21 software. If you are configuring Phidgets for Roastmaster 11 (October, 2017) or later, please see the instructions for Lib22 in Setting Up Phidgets

    Phidgets offer a versatile and scalable solution for monitoring and logging roast temperatures with Roastmaster’s Data Logging option. Roastmaster connects to one or more Phidget Temperature Sensors through your WiFi network via a network “host”.

    Please see How Do Phidgets Work? to become acquainted with how a network host is used to communicate with Roastmaster.

    To use Phidgets with Roastmaster, you’ll need…

    1. A Phidget Temperature Sensor and attached K or J thermocouple(s)
    2. A network host to send wireless readings (one of the following):
      • A full-size computer, e.g. Mac or PC desktop or laptop
      • Phidget SBC with USB WiFi adapter
      • Another brand of wireless DIY computer
    3. A wireless Ethernet network
    4. Roastmaster’s Data Logging entitlement (available as an in app purchase in the “Probes” section of Roastmaster’s Utilities screen)

    Configuring your Host

    Once you have procured the necessary parts, you need to configure your host with the Phidget Network Server software drivers that allow it to communicate with Roastmaster on your wireless network.

    Standard Computer Host, e.g. laptop, desktop

    1. Download and install the appropriate version of Driver Library 21
    2. Attach the Temperature Sensor to your computer via the supplied USB cable
    3. Launch the Preference Pane (Mac) or Control Panel (Windows)
    4. Assign an arbitrary Server ID, e.g. Danny’s Mac, My Phidget Host, etc.
    5. Turn the WebService on.

    SBC Host

    1. Download and install the appropriate version of Driver Library 21 to a standard computer. This software and the computer will be used only once to perform the initial configuration of the SBC.
    2. Attach the Temperature Sensor to your SBC via the supplied USB cable
    3. In the PhidgetSBC tab of the Phidgets Preference Pane (Mac) or Control Panel (Windows), double click the SBC to launch the web Administration Console.
    4. In the Administration Console, verify that Library 21 is installed on your SBC.
    5. Make the SBC a member of your network in one of two ways:
      • If you will network the SBC with an Ethernet cable…
        1. Attach one end of the cable to your router or switch, and the other to the SBC.
      • If you will network the SBC using the Phidget wireless adapter…
        1. Attach the wireless adapter to the SBC.
        2. In the Administration Console, navigate to Status > Wireless.
        3. Select your network in the detected networks, and enter the network password.
        4. To automatically join this network whenever the SBC is in range, verify that the “Remember this network” checkbox is checked. If so, the SBC/Temperature Sensor combination will become completely self-sufficient, automatically joining your network when it boots, and available for immediate use to Roastmaster.
        5. Click “Add This Network”.
    6. Navigate to the Phidgets > phidget21 Webservice pane.
    7. Verify that Phidget Webservice is enabled.
    8. Assign an arbitrary Server ID, e.g. Danny’s SBC, My Phidget Host, etc.
    9. Click “Start” to launch the Webservice if it is not already running.

    Define Probes in Roastmaster

    After configuring the network host, it’s time to define the probes you want to use in Roastmaster. This process is only performed once. After the probes are defined, they will be available for the life of the app on your device.

    If you have not yet purchased the Data Logging option, you can purchase it by navigating to Probes, and tapping “Probe Store” in the bottom toolbar.

    1. Navigate to “Probes” in Roastmaster.
    2. Tap “+” to create a new probe.
    3. Choose Phidgets Temperature Sensing.
    4. Locate the Serial number of the Temperature Sensor.
      • Standard Computer Host: Navigate to the “Phidgets” tab of the “Phidget Control Panel” application. The Serial # column will show the serial number of any attached Temperature Sensors
      • SBC Host: Navigate to the Phidgets > Status pane. The Serial Number column will show the serial number of any attached temperature sensors.
    5. Enter the Temperature Sensor Serial number in the “Serial” field of the probe definition.
    6. Choose the “Port” that your thermocouple will be attached to on the Temperature Sensor
    7. Choose the correct Alloy Type: K or J
    8. Name the probe
    9. Tap Save

    Verify Connection

    After entering a valid Serial Number and Port, Roastmaster should display a green “Linked” status, as well as the current temperature of the probe.

    If you see “Unlinked” displayed in red, and have followed all of these steps, it’s very likely that a firewall somewhere on your network (either on the host or the router itself) is blocking the Network Server traffic. Please visit Troubleshooting Phidgets for a list of common connection problems and possible solutions.

    Begin Using Your Probe!

    Once your probe definition has been created, and displays a linked status, all that’s left to do in the future is to link the probe to reading curves in roasts to report temperatures and log data.

    1. In “Roasts”, tap the “+” button to create a new roast.
    2. Tap the curve button, and choose “Create New Curve”
    3. Set the curve type to “Reading”
    4. Tap the “Bind To” field to bind the curve to your new probe definition.
    5. Save the curve

    In the roast console, you can select your curve by tapping the console graph. Roastmaster will display live temperature readings as they change on the probe. After you start the roast, Roastmaster will log these temperatures at the interval defined in the curve for the duration of the roast.

    Have a look at some of our screencasts, particularly those in the “Roasting with Roastmaster” series, for instructions on how to leverage curves and profiles with Data Logging to create effortless workflows with vital Reference Curves for targeting, and Data Curves for logging new data.