I’ve been playing around with the idea of using Gmail as an easy way of sending commands or getting information from a machine.  This is the ultimate “lazy man” solution.  I wrote this application to monitor the contents of the subject line of emails sent to a Gmail account that I made specifically for a machine.  When the application sees an email with subject matching one of my keywords it processes the message and sends the appropriate reply.

You could use this application to monitor a variable number or a parts counter.  If you have a machine with a barfeeder you could send an email to set a variable which stops the loop or set the number of parts to make.  You could even have your program waiting in a loop and command it to run a certain part by setting a common variable value.  You can ask it to send you an email if the machine alarms out or when the cycle is complete.  If you have any suggestions for commands put them in the comments.

The “window” for the application is a little button that sits under the vertical function keys.  Pushing the button will toggle monitoring mode on/off.  Pushing and holding the button will bring the settings window up.  Double clicking the button with close the application.

If you want to run this on your Okuma machine you will need to have API V1.15.0 and .NET Framework 4.

Get the source code here: Gosiger GRC

Here is is a sample email message:


About jweaver

Service Tech at Gosiger Michigan. Twitter: @jon_weaver6

4 responses »

  1. Tony says:

    Control by texting:
    xxxxxxxxxx@vtext.com or xxxxxxxxxx@mms.att.com
    Don’t wreck while “milling about” in your car!

  2. Chris Robson says:

    Very cool application!

    I really like what you did with the Gosiger Utility.

    Thank you for the source code, I look forward to diving into this and learning.

  3. jweaver says:

    Yeah I forgot to mention that I used the OpenPop library to send the emails. http://nuget.org/packages/OpenPop.NET/

  4. pmcoltrane says:

    Neat. I’d been toying around with doing similar through SMS, but GMail looks like a simpler solution. Looks like you could easily modify FetchAllMessages() to be configurable for other POP3 mail servers as well. I’ll have to try this out when I’m at a machine with VS2010.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s