Wednesday Nov 27, 2013

Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 3)

In the spirit of Thanksgiving this week being celebrated on Thursday in the USA

This post is shared from our Oracle Java Community. 
Hinkmond Wong's Weblog

By hinkmond on Nov 21, 2013

OK, sports fans. You've got your Vernier Go!Temp USB probe connected. It looks good with lsusb and you can see the /dev/ldusb0 device in your Raspberry Pi Linux shell.

So, how do you write a Java SE Embedded app to read in the turkey temp values. Well, as with most things, you search the Web and you can find how it was done previously in other non-Java inferior programming languages. <img src=" title=";-)" style="border: none;" /> Here's a great example in Python on the finninday.net site.

See: finniday.net Go!Teamp example in Python

It shows the reverse engineered byte format of the data coming over USB from the Vernier Go!Temp probe. Booyah! That's what we need to write a Java SE Embedded app. And, here it is...

/**
 *
 * @author hinkmond
 * Copyright © 2013 Oracle and/or its affiliates. All rights reserved.
 */
public class TurkeyTweeter {

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        Date date;
        FileInputStream fis = null;
        DataInputStream dis = null;
        byte   b[];
        
        double tempavg, c, f;
        int    samplecount=0, sequence=0, temp1=0, temp2=0, temp3=0;
        
        final double VERNIER_SCALING_FACTOR=126.74;
        final double VERNIER_CALIBRATION_OFFSET=5.4;

        b = new byte[8];

        // Loop to keep reading temperature
        while (true) {
            int available;

            try {
                fis = new FileInputStream("/dev/ldusb0");
                dis = new DataInputStream(fis);
            } catch (FileNotFoundException fnfe) {
                System.out.println("Cannot find temp sensor");
                fnfe.printStackTrace();
                System.exit(-1);
            }

            // Read 8 bytes from Vernier Go!Temp USB probe
            //   Format:
            //     Byte 0:   Sample Count
            //     Byte 1:   Sequence Index
            //     Byte 2-3: First temp sample
            //     Byte 4-5: Second temp sample
            //     Byte 6-7: Third temp sample
            try {
                if (dis != null) {
                    available = dis.read(b, 0, 8);
                    samplecount = b[0];
                    sequence = b[1];
                    temp1 = b[2] + b[3] * 256;
                    temp2 = b[4] + b[5] * 256;
                    temp3 = b[6] + b[7] * 256;
                }
            } catch (IOException ioe1) {
                System.out.println("Unable to get data from temp sensor");
                ioe1.printStackTrace();
            }
            
            tempavg = (temp1 + temp2 + temp3) / 3.0;
            c = tempavg / VERNIER_SCALING_FACTOR - VERNIER_CALIBRATION_OFFSET;
            
            // Convert from Fahrenheit to Celcius
            f = ((9.0/5.0) * c) + 32.0;
            
            double temperature = roundDouble(f);
            
            date = Calendar.getInstance().getTime();

            Format formatter = new SimpleDateFormat("E MMM d kk:mm:ss");
            String timedateString = formatter.format(date);

            System.out.println(timedateString+"  "+temperature);

            try {
                if (dis != null)
                    dis.close();
                if (fis != null)
                    fis.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
            try {
                Thread.sleep(1000);
            } catch (InterruptedException ie) {
                ie.printStackTrace();
            }
        }
    }

   public static double roundDouble(double value) {
        double result = value * 100;
        result = Math.round(result);
        result = result / 100;
        return(result);
   }
}

Compile using javac, lather, rinse, repeat. And, here's the output running on the RPi (NOTE: Remember, you must run as root to access the /dev/ldusb0 device):

pi@raspberrypi ~ $ sudo java -jar TurkeyTweeter.jar
Thu Nov 21 16:42:59  71.59
Thu Nov 21 16:43:00  72.39
Thu Nov 21 16:43:01  72.39
Thu Nov 21 16:43:02  72.39
Thu Nov 21 16:43:03  72.39
Thu Nov 21 16:43:04  72.39
Thu Nov 21 16:43:05  72.39
Thu Nov 21 16:43:06  72.39
Thu Nov 21 16:43:07  72.39
Thu Nov 21 16:43:08  72.39
Thu Nov 21 16:43:09  72.39
...
As you can see, it's 72 degrees Fahrenheit in my office. The turkey won't be that temperature roasting in the oven on Thanksgiving, but we have now confirmed this part of the Turkey Tweeter works. Exciting, isn't it? <img src=" title=":-)" style="border: none;" /> Next up, we will write the Java code to tweet out the values of our poor turkey as it cooks... (Yeah, poor turkey until it's inside my tummy. Then, it's yummy turkey!)

See the full series on the steps to this cool demo:
Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 1)
Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 2)

Tuesday Nov 26, 2013

Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 2)

In the spirit of Thanksgiving this week being celebrated on Thursday in the USA

This post is shared from our Oracle Java Community. 
Hinkmond Wong's Weblog

By now you should have received your Vernier Go!Temp USB Temperature Probe and it is getting really close now to Turkey Day, so you want kick your Internet of Things (IoT) Turkey Tweeter project into high gear now.

First, we need to test the temperature probe before sticking it into unknown places, namely our delicious IoT bird on Thanksgiving. So, take your Go!Temp USB temperature probe and plug it into your Raspberry Pi device, just like in this photo.

See:

Connect Go!Temp Probe

If all went well on your Raspberry Pi, you should be able to bring up a terminal shell connected to your RPi and type "lsusb" to verify that the Go!Temp probe is now connected.

pi@raspberrypi ~ $ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 005: ID 08f7:0002 Vernier EasyTemp/Go!Temp

If your output looks like above, especially the last line where it says the Vernier Go!Temp was recognized and is connected as Device 005, you are golden.

One last check before we start to program using a Java SE Embedded app to grab the temperature readings is to make sure the /dev/ldusb0 device is present. So, type this command and make sure your output matches:

pi@raspberrypi ~ $ ls -l /dev/ldusb0
crw------T 1 root root 180, 176 Nov 18 17:25 /dev/ldusb0

If all that looks good, you're ready for the next step which is to write a Java SE Embedded app to read the temperature values, and eventually write code with IoT intelligence to tweet out the status of your turkey while it's cooking so that it becomes an Internet of Things connected bird on Twitter. Look for that in the next part of this series... Mmmmm... I can almost smell that turkey roasting... <img src=" title=":-)" style="border: none;" />

See the full series on the steps to this cool demo:
Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 1)


Monday Nov 25, 2013

Internet of Things (IoT) Thanksgiving Special: Turkey Tweeter (Part 1)

In the spirit of Thanksgiving this week being celebrated on Thursday in the USA

This post is shared from our Oracle Java Community. 
Hinkmond Wong's Weblog

By hinkmond on Nov 06, 2013

It's time for the Internet of Things (ioT) Thanksgiving Special. This time we are going to work on a special Do-It-Yourself project to create an Internet of Things temperature probe to connect your Turkey Day turkey to the Internet by writing a Thanksgiving Day Java Embedded app for your Raspberry Pi which will send out tweets as it cooks in your oven.

If you're vegetarian, don't worry, you can follow along and just run the simulation of the Turkey Tweeter, or better yet, try a tofu version of the Turkey Tweeter.

Here is the parts list:

 1 Vernier Go!Temp USB Temperature Probe
 1 Uncooked Turkey
 1 Raspberry Pi (not Pumpkin Pie)
 1 Roll thermal reflective tape
You can buy the Vernier Go!Temp USB Temperature Probe for $39 from here:http://www.vernier.com/products/sensors/temperature-sensors/go-temp/. And, you can get the thermal reflective tape from any auto parts store. (Don't tell them what you need it for. Say it's for rebuilding your V-8 engine in your Dodge Hemi. Avoids the need for a long explanation and sounds cooler...) <img src=" title=";-)" style="border: none;" />

The uncooked turkey can be found in your neighborhood grocery store. But, if you're making a vegetarian Tofurkey, you're on your own... The Java Embedded app will be the same, though (Java is vegan). <img src=" title=":-)" style="border: none;" />

So, grab all your parts and come back here for the next part of this project...


Tuesday Aug 07, 2012

Oracle Positioned in Leaders Quadrant in All Three Magic Quadrants Related to Application Infrastructure

Oracle is positioned in the Leaders Quadrant in each of three Gartner Magic Quadrants focused on application infrastructure. “To create and run agile, intelligent business applications while also maximizing IT efficiency, organizations need a flexible, scalable and feature-rich business platform that can support innovation in the enterprise and the cloud,” said Hasan Rizvi, senior vice president, Oracle Fusion Middleware and Java products, Oracle. The Magic Quadrants are:

  • Application Infrastructure for Systematic Application Integration Projects
  • Application Infrastructure for Systematic SOA Infrastructure Projects
  • Application Infrastructure for Systematic SOA Application Projects

Gartner’s Magic Quadrant reports position vendors within a particular quadrant based on their completeness of vision and ability to execute. A component of Oracle Fusion Middleware, Oracle SOA Suite simplifies integration in the enterprise and the cloud to help speed time to market, increase agility, and lower costs. “Oracle Fusion Middleware provides a comprehensive, open, and integrated offering across social, mobile, and cloud technologies. We believe Oracle’s placement in Gartner’s application infrastructure Magic Quadrants is a testament to that unique position and the continued investment we are making in innovation across our best-of-breed suite of middleware products,” said Rizvi. Check out the press release to learn more.

Friday Dec 02, 2011

Resource kit: Oracle Fusion Middleware and Oracle Applications

Oracle Fusion Middleware and Oracle Applications: Engineered for Application Innovation

Oracle Fusion Middleware and Oracle Applications: Engineered for Application Innovation

Are you looking for more information on Oracle Fusion Middleware and Oracle Applications? You've come to the right place! Experience greater business-user productivity, lower costs, and improved business agility by using Oracle Fusion Middleware as a foundation for your Oracle Applications: PeopleSoft, E-Business Suite, Siebel, and JD Edwards. Learn how Oracle Fusion Middleware is the foundation for Oracle's next generation Fusion Applications transforming the way enterprises innovate, work, and adopt technology.

Learn more about:

  • Extending applications using Oracle BPM to respond to tactical and strategic process changes
  • Increasing performance, maximize uptime, and distribute application data in real-time with Oracle Data Integration
  • Customizing your applications to be upgrade-friendly, more intuitive, and more insightful using composers in Oracle Fusion Applications
  • Achieving extreme performance, scalability, and reliability of your business applications with Oracle Exalogic Elastic Cloud

Register now to access webcasts, white papers, and customer stories.

Friday Jun 24, 2011

FMW Cloud Forum: Chicago

 

The increasing popularity of cloud computing is changing how enterprise systems are managed and organized--and that change does not stop at the datacenter. Cloud computing is also changing how enterprises develop and build business applications, a shift that will require unprecedented collaboration across the enterprise, from developers to the user community. Are you currently building applications in the Cloud? What concerns or challenges do you forsee in doing so? Oracle experts will be discussing these topics and how with a user experience platform you can leverage new collaborative practices to design and build applications that deliver business value and meet exacting user requirements. Join us in Chicago on June 29th to learn more and hear from Oracle experts. Not located in Chicago? We're coming to a city near you!

Friday May 27, 2011

E2.0 Top 20: What will be millenials and other younger workers expecting from the internal technologies deployed at my company when joining?

We're wrapping up our "Top 20 Enterprise 2.0" Questions & Answers series! We hope you enjoyed the topics we discussed around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption.

E2.0 Top 20 #20: What will be millenials and other younger workers expecting from the internal technologies deployed at my company when joining?

For digital natives, there is no going back to a world without texting and twittering and facebooking . So at minimum, if you expect these folks to be your customers, your employees and your citizens, then you need to apply their expectations to the next generation of enterprise IT systems. But of far more immediate importance is how much productivity gains businesses and governments are leaving on the table by not following the next generation’s lead. It’s not just the millenials anymore, all workers now are familiar with Web2.0 technologies and expect the same kind of capabilities for Enterprise Systems such as Business Intelligence, CRM, ERP, HCM, and Extranets.  They expect to be able to share content easily inside and outside of the organization, connect with experts rapidly, discuss business challenges internally and externally, and find the right information quickly.  They don’t expect to use systems which are menu driven without rich media, without search, not mobile, and operating in a silo as many ERP, CRM implementations are today.
AIIM (www.aiim.org) survey “Putting Enterprise 2.0 to Work”:

  • Under 40s are twice as likely to be public social network evangelists or enthusiasts than over 40s.
  • There are plenty of evangelists amongst over 40s for internal social networks. They are more likely to be pragmatists than enthusiasts, but are just as willing to participate.

You need a modern user interface and applications which are user friendly, intuitive and efficient. Oracle WebCenter allows us to provide such a layer on top of existing applications and services. Oracle WebCenter is the cornerstone of what Oracle is doing with E2.0: it’s a modern user experience platform for the enterprise and the Web, based on a composite application concept with many integrated social capabilities, so you can build a composite application and add social tools for executing that application. Here are some additional assets where you can learn more.

Thursday May 26, 2011

E2.0 Top 20: What companies should reduce email overload and facilitate the reuse of existing content?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #19: What companies should reduce email overload and facilitate the reuse of existing content?

All companies using a mail solution to share information, for example by sending attachments on a regular basis, are ideal candidates for implementing a collaborative solution.  The collaborative solution will allow all users to be able to access the latest version of the required document, and update it if they have enough rights.  This update can be done right from within the application itself.  This will greatly reduce the amount of mail being sent and stored, and ensure people always have access to the latest version.

Wednesday May 25, 2011

E2.0 Top 20: Are enterprise content management and business process management converging towards a more adaptive and dynamic approach to knowledge work?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #18: Are enterprise content management and business process management converging towards a more adaptive and dynamic approach to knowledge work?

Yes they are – these two types of applications are complementary:

  • Many business processes require storing unstructured content at some point, and an enterprise content management solution is the obvious place to do so
  • Information inside content management solutions often needs to be processed alongside other enterprise data, and our Business Process Management tool provides rich capability to design, simulate and run the processes to be able to do so.

Oracle Enterprise Content Management provides comprehensive records management in a consistent, cost-effective way, and enables organizations to consolidate ECM repositories and connect ECM to critical business applications. As Oracle Enterprise Content Management and Oracle BPM both belong to the Oracle Fusion Middleware family - the convergence layer for existing and future Fusion applications and services - they can be easily integrated  simply  assembling services together without writing any additional code. Oracle Application Development Framework enables rapid application development through composition instead of coding, lowering the barriers for an enterprise to make changes. Learn more!

Tuesday May 24, 2011

E2.0 Top 20: Is it safe to let everyone in the company freely share information or do we need to impose some form of control?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #17: Is it safe to let everyone in the company freely share information or do we need to impose some form of control?

Some form of control is absolutely necessary!  Within the boundaries of the enterprise there is a definite need to be able to restrict and control the information people are specifying and accessing, to be able to have high availability and redundancy, and to be able to restore backups whenever necessary.  For this reason it is very important to use enterprise software designed for these scenarios, and the assistance from experienced implementers to ensure necessary governance processes are followed. The challenge now is that organizations must redefine how they deal with security and privacy issues and extend how they think about control and governance in order to deal with social technologies that are much more distributed, informal, and ubiquitous than anything that we have known previously.  Looking to learn more?

Monday May 23, 2011

E2.0 Top 20: How can I make my learning and e-learning initiatives more appealing and engaging?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #16: How can I make my learning and e-learning initiatives more appealing and engaging?

A solution such as WebCenter is ideal for providing the platform for making applications such as e-learning available externally.  WebCenter will provide the necessary performance, security, administration and monitoring infrastructure, and allow business users to create page and determine what should be made available and to what populations of users. We invite you to view the following assets to learn more!

Friday May 20, 2011

E2.0 Top 20: Which are the five fundamental suggestions to improve team coordination across different locations and departments?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #9: Which are the five fundamental suggestions to improve team coordination across different locations and departments?

  • Be able to find information when you need it
  • Know your colleagues and peers and their expertise
  • Be kept up to date on people’s activities
  • Avoid having to duplicate information
  • Have a simple to use place you can enter information you want to share

For those looking to deliver quick wins via configurable unified intelligent workspaces, organizations can benefit from Oracle WebCenter Spaces – a ready-to-use application within Oracle WebCenter Suite that delivers dynamic business communities with all the rich Oracle WebCenter Services to empower teams to quickly and efficiently manage their information, applications, projects, and people without requiring IT assistance. It brings together the latest technology around Enterprise 2.0 and social computing, communities, personal productivity, and ad-hoc team interactions without any development effort. Oracle WebCenter Spaces allows users to work more effectively with project teams and work groups, including teams that span multiple geographies, and even include external members. It eliminates or reduces duplication of efforts and content inconsistencies, and it enables the sharing and collaboration on team content, focusing an organization’s valuable resources on solving business problems, tapping into new ideas, and reducing time-to-market.

Oracle WebCenter Suite includes Oracle WebCenter Services – a comprehensive set of standards-based components that enrich existing portals and Web sites with the industry's most complete and open set of Enterprise 2.0 capabilities. These services include wikis, blogs, discussions, online awareness and communications, content collaboration and social networks. Oracle WebCenter Services works with all Oracle portal offerings, enabling organizations to enhance their existing enterprise portals and Web sites, and empowering users with Enterprise 2.0 services that work with their existing information systems. The services are integrated so that business users can also use them together (for example, you can add an Instant Messaging and Presence link to a discussion forum to talk with a product expert directly from a forum topic), manage them effectively, and even model relationships between users and information to find new experts, create richer connections, and discover new ways to improve your organization’s performance.

Thursday May 19, 2011

E2.0 Top 20: How can I fund innovation capitalizing on existing applications?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #9: How can I fund innovation capitalizing on existing applications?

As clearly presented in the AIIM (www.aiim.org) Future History whitepaper, the future of Enterprise IT is strongly related with move from Systems of Record – those tools, repositories, and systems upon which organizations have built their business processes for the last several decades – to Systems of Engagement, where digitally facilitated communication and collaboration become the focus. By strategically embedding collaboration and communication tools into specific business contexts, companies significantly increase visibility into changing business conditions—and can respond much more agilely. Systems of Engagement need to operate on top of and be in touch with existing core Systems of Record, spreading across processes and departments. Information, documents and images at the core of System of Records need to flow in the new System of Engagement feeding conversations, interactions and collaborative projects.

Oracle Enterprise Content Management provides comprehensive records management in a consistent, cost-effective way, and enables organizations to consolidate ECM repositories and connect ECM to critical business applications. Thanks to the shared user experience strategy across Oracle Fusion Middleware, Oracle Fusion Applications and many other Oracle Applications, customers can easily create real, customer-specific composite applications using Oracle WebCenter Suite and Oracle Application Development Framework. Oracle Application Development Framework components provide modular user interface components that can build rich, social composite applications. In addition, a broad set of components spanning BPM, SOA, ECM, and beyond can be quickly and easily incorporated into composite applications. Learn more!

Wednesday May 18, 2011

E2.0 Top 20: How can I make informed decisions combining back-office systems with social media?

We're continuing on in our "Top 20 Enterprise 2.0" Questions & Answers series! In the coming weeks, we'll be posting topics around some of the challenges, best practices and strategies regarding Enterprise 2.0 adoption. We hope you'll join in the conversations!

E2.0 Top 20 #8: How can I make informed decisions combining back-office systems with social media?

“Activity streams” is a fundamental key to re-design and get many business processes to be social, including informed decision making. By integrating social activities with business applications, you can deliver rich contextual "activity streams." Activity streams are a new way for enterprise users to get relevant information as quickly as it happens, by navigating to that information in context directly from their portal. It's not about syndicating social activities limited to a single application. Instead, Oracle believes back-office systems will be combined with social media tools to drive how users make informed business decisions in brand new ways. For example, an account manager might log into the company portal and automatically receive notification that colleagues are closing business around a certain product in his market segment. With a single click, he can reach out instantly to these colleagues via social media and learn from their successes to drive new business opportunities in his own area.

Oracle enterprise applications as well Oracle Universal Content management are integrated with Oracle WebCenter, providing a true Enterprise 2.0 infrastructure. Having an infrastructure that enables participation from any business process efficiently using any content is the real magnifying force. Learn more by viewing the resources below!

About

Oracle WebCenter is the center of engagement for business—powering exceptional experiences for customers, partners, and employees. It connects people, process, and information with the most complete portfolio of portal, Web experience management, content, imaging and collaboration technologies.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
2
4
5
6
7
10
11
12
13
14
17
19
20
22
23
24
25
26
27
28
29
30
   
       
Today