• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
Rifartek Robot Training Course - How to use WebRobot
 

Rifartek Robot Training Course - How to use WebRobot

on

  • 1,139 views

 

Statistics

Views

Total Views
1,139
Views on SlideShare
1,092
Embed Views
47

Actions

Likes
0
Downloads
0
Comments
0

4 Embeds 47

http://www.rifartek.com 37
http://ns.rifartek.com 5
http://www.slideshare.net 4
http://ns.rifartek.com:8080 1

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Rifartek Robot Training Course - How to use WebRobot Rifartek Robot Training Course - How to use WebRobot Presentation Transcript

    • Rifartek Middleware Programming Training Course How to use WebRobot
    • Course Outline
      • WebRobot
        • Script Integration Development
      • CliRobot
        • ZigBee integration
        • Plugin Development
    • WebRobot Script Integration
    • RFID and Web System
      • Traditional JSP-based Web System
      JSP Container Tomcat HTTP Request http://localhost:8080/train/index.jsp index.jsp Hello World. <br> <% int n = 5; for(int i = 1; i <= n; i++){ out.println(“Counter reaches “ + i + “<br>”); } %> Hello World. <br> Counter reaches 1<br> Counter reaches 2<br> Counter reaches 3<br> Counter reaches 4<br> Counter reaches 5<br> index.jsp
    • Steps to development RFID Web system
      • Prepare WebRobot related files
      • Use integration component to bridge WebRobot into Web page
      • Click “more” button and setup WebRobot connection and script destination
      • Extend your JavaScript
    • Steps to development RFID Web system – 1. Prepare related files |-- CompanyCer.cer |-- about.gif |-- connect.jpg |-- datas | `--index2.data |-- disconnect.jpg |-- logo.jpg |-- mesure.gif |-- module_disconnect.jpg |-- module_read.jpg |-- module_write.jpg |-- netscape | `-- javascript | |-- JSException.class | `-- JSObject.class |-- wRobot.jar |-- wRobot.jsp `-- wRobotSave.jsp
    • Steps to development RFID Web system – 1. Prepare related files (Cont.) |-- CompanyCer.cer |-- about.gif |-- connect.jpg |-- datas | `--index2.data |-- disconnect.jpg |-- logo.jpg |-- mesure.gif |-- module_disconnect.jpg |-- module_read.jpg |-- module_write.jpg |-- netscape | `-- javascript | |-- JSException.class | `-- JSObject.class |-- wRobot.jar |-- wRobot.jsp `-- wRobotSave.jsp Certificate file for signed applet directory for WebRobot configuration for each page directory of classes for netscape compatibility Signed WebRobot jar file Helper files for easy integration
    • Steps to development RFID Web system – 2. Bridge WebRobot (1/4) index2.jsp <%@ page language=“java” contentType=“text/html;charset=UTF-8”%> <br> Hello World. <br> <%@ page language=“java” contentType=“text/html;charset=UTF-8”%> <%@ page import=“java.io.*”%> <%@ page import=“java.net.*”%> <%@ include file=“./wRobot.jsp”%> <% out.println(wRobot(getServletContext(), request, “wRobotSave.jsp”,”index.data”); %> <br> Hello World. <br> No need to change these three arguments. They help to do related Java Servlet or WebRobot configuration save tasks. Unique WebRobot configuration storage file name for each page.
    • Steps to development RFID Web system – 2. Bridge WebRobot (2/4)
      • The integrated WebRobot
      index2.jsp
    • Steps to development RFID Web system – 2. Bridge WebRobot (3/4)
      • Steps
        • Specify ServRobot IP
        • click connect
        • click “auto connect”
        • click “save and exit”
        • The index2.jsp will automatically reload
        • The settings will be stored in index.data
        • (The same setting will be there next time)
      index2.jsp Serialized Java file
    • Steps to development RFID Web system – 2. Bridge WebRobot (4/4)
      • WebRobot Panel
        • module pass
          • The module password that specified in ServRobot for security authentication
        • Duration Time
          • How long should the WebRobot report collected data for you
        • Distinct
          • Whether to distinct reported data
        • Sense and Sleep time
          • Control how ServRobot should contact to dumb Device (Often ignore them)
      index2.jsp
    • Steps to development RFID Web system – 3. Setup target JS (1/5)
      • Create a Javascript method
        • whatever method name you like
      index3.jsp
    • Steps to development RFID Web system – 3. Setup target JS (2/5)
      • Before do anything further, do your one favor
        • Duration time: 2000, Distinct: yes
      index3.jsp
    • Steps to development RFID Web system – 3. Setup target JS (3/5)
      • Click “script” button
        • The “Rifartek Middlescript” panel will show up
        • put 「 wRobotCallme(id); 」 in Middlescript pannel
        • click “save” button of Middlescript panel
        • click “save and exit” button of wRobot panel
      index3.jsp
    • Steps to development RFID Web system – 3. Setup target JS (4/5)
      • A little bit different…
      index4.jsp
    • Steps to development RFID Web system – 3. Setup target JS (5/5)
      • Result of index4.jsp
      index4.jsp
    • Steps to development RFID Web system – 4. Extend JS (1/4) index5.jsp Split RFID ID and antenna number
    • Steps to development RFID Web system – 4. Extend JS (2/4) index5.jsp
    • Steps to development RFID Web system – 4. Extend JS (3/4) index6.jsp More about HEX to ASCII using Javascript “fromCharCode() method”
    • Steps to development RFID Web system – 4. Extend JS (4/4) index6.jsp
    • Ex: Logistics Application
    • Exercise: logistics.jsp (1/13) logistics.jsp
    • Exercise: logistics.jsp (2/13) logistics.jsp We want to count total cases read We want to show pallet ID in this area We want to list cases IDs in this area Use button to trigger whether to process data
    • Exercise: logistics.jsp (3/13) logistics.jsp Increase activate button and debug area
    • Exercise: logistics.jsp (4/13) Pending RFID ID Clear old history data Return if status is not in activation status logistics.jsp
    • Exercise: logistics.jsp (5/13)
      • Processing of Pallet and case
      Put pallet RFID ID Put cases RFID IDs logistics.jsp
    • Exercise: logistics.jsp (6/13)
      • Use Javascript array (Hashtable) to increase search speed
      logistics.jsp Processing by ID type
    • Exercise: logistics.jsp (7/13)
      • update case list
      logistics.jsp Retrieve each case ID one by one
    • Exercise: logistics.jsp (8/13) logistics.jsp
    • Exercise: logistics.jsp (9/13)
      • Save to database
      logistics.jsp Prepare HTML element for DB
    • Exercise: logistics.jsp (10/13)
      • insert database in logistics_action.jsp
      logistics_action.jsp
    • Exercise: logistics.jsp (11/13)
      • Result
      logistics.jsp
    • Exercise: logistics.jsp (12/13)
      • Insert data using Database module
        • The wCall() method
        • The wCall() interface
          • An interface that help various client to use module specific methods in backward direction
          • The first param: Module Name
          • The second param: array of arguments for that module
            • [methodName, method arguments, …]
    • Exercise: logistics.jsp (12/13) logistics.jsp