Your SlideShare is downloading. ×
Rifartek Robot Training Course - How to use WebRobot
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Rifartek Robot Training Course - How to use WebRobot

694

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
694
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
0
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Rifartek Middleware Programming Training Course How to use WebRobot
  • 2. Course Outline
    • WebRobot
      • Script Integration Development
    • CliRobot
      • ZigBee integration
      • Plugin Development
  • 3. WebRobot Script Integration
  • 4. 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
  • 5. 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
  • 6. 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
  • 7. 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
  • 8. 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.
  • 9. Steps to development RFID Web system – 2. Bridge WebRobot (2/4)
    • The integrated WebRobot
    index2.jsp
  • 10. 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
  • 11. 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
  • 12. Steps to development RFID Web system – 3. Setup target JS (1/5)
    • Create a Javascript method
      • whatever method name you like
    index3.jsp
  • 13. 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
  • 14. 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
  • 15. Steps to development RFID Web system – 3. Setup target JS (4/5)
    • A little bit different…
    index4.jsp
  • 16. Steps to development RFID Web system – 3. Setup target JS (5/5)
    • Result of index4.jsp
    index4.jsp
  • 17. Steps to development RFID Web system – 4. Extend JS (1/4) index5.jsp Split RFID ID and antenna number
  • 18. Steps to development RFID Web system – 4. Extend JS (2/4) index5.jsp
  • 19. Steps to development RFID Web system – 4. Extend JS (3/4) index6.jsp More about HEX to ASCII using Javascript “fromCharCode() method”
  • 20. Steps to development RFID Web system – 4. Extend JS (4/4) index6.jsp
  • 21. Ex: Logistics Application
  • 22. Exercise: logistics.jsp (1/13) logistics.jsp
  • 23. 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
  • 24. Exercise: logistics.jsp (3/13) logistics.jsp Increase activate button and debug area
  • 25. Exercise: logistics.jsp (4/13) Pending RFID ID Clear old history data Return if status is not in activation status logistics.jsp
  • 26. Exercise: logistics.jsp (5/13)
    • Processing of Pallet and case
    Put pallet RFID ID Put cases RFID IDs logistics.jsp
  • 27. Exercise: logistics.jsp (6/13)
    • Use Javascript array (Hashtable) to increase search speed
    logistics.jsp Processing by ID type
  • 28. Exercise: logistics.jsp (7/13)
    • update case list
    logistics.jsp Retrieve each case ID one by one
  • 29. Exercise: logistics.jsp (8/13) logistics.jsp
  • 30. Exercise: logistics.jsp (9/13)
    • Save to database
    logistics.jsp Prepare HTML element for DB
  • 31. Exercise: logistics.jsp (10/13)
    • insert database in logistics_action.jsp
    logistics_action.jsp
  • 32. Exercise: logistics.jsp (11/13)
    • Result
    logistics.jsp
  • 33. 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, …]
  • 34. Exercise: logistics.jsp (12/13) logistics.jsp

×