1 / 10

Introduction of gogolib4java

Introduction of gogolib4java. Xiong Hongyu July 20, 2011. Software Libraries of GoGo Board Except GoGo Monitor. Netlogo. Microworlds. Scratch. Flash. c/ c++ visual basic. C#. Java API for GoGo Board. gogolib4java. http://code.google.com/p/gogolib4java/

donnan
Download Presentation

Introduction of gogolib4java

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction of gogolib4java XiongHongyu July 20, 2011

  2. Software Libraries of GoGo Board Except GoGo Monitor Netlogo Microworlds Scratch Flash c/c++ visual basic C#

  3. Java API for GoGo Board

  4. gogolib4java • http://code.google.com/p/gogolib4java/ • Java API to work with GoGo Board. GoGoSerialPort GoGoClient

  5. Current Class Summary of gogolib • GoGoClient • class to communicate with one GoGo Server embedded in GoGo Monitor • GoGoSessionManager • class to manage multiple connections to GoGo Server • GoGoSerialPort • class to work with local connected GoGo Board • GoGoConsole • a Command-Line application to manipulate local connected GoGo Board • GoGoMonitor • a GUI application to manipulate local connected GoGo Board

  6. GoGoClient Class • Class to work with a remote GoGoServer

  7. Example1 Beep.java • import kr.ac.scnu.cn.gogolib.GoGoClient; • public class Beep • { • public static void main(String[] argv)throws Exception{ • // connect to local running GoGo Monitor • GoGoClientggClient = new GoGoClient("localhost", 9873); • ggClient.beep(); • System.out.println(ggClient.receive()); • ggClient.close(); • } • }

  8. Example2 LedController.java • import kr.ac.scnu.cn.gogolib.GoGoClient; • public class LedController • { • public static void main(String[] argv)throws Exception{ • // connect to local running GoGo Monitor • GoGoClientggClient = new GoGoClient("localhost", 9873); • //the argument should be 'on' or 'off' • if( argv[0].equalsIgnoreCase("on")) • ggClient.ledOn(); • if( argv[0].equalsIgnoreCase("off")) • ggClient.ledOff(); • System.out.println(ggClient.receive()); • ggClient.close(); • } • }

  9. GoGoSerialPort Class • GoGoSerialPort Serial Port Connection

  10. GoGoMonitor class • PING COMMAND

More Related