Title: Add support for LocalEV3 · Issue #771 · ev3dev-lang-java/ev3dev-lang-java · GitHub
Open Graph Title: Add support for LocalEV3 · Issue #771 · ev3dev-lang-java/ev3dev-lang-java
X Title: Add support for LocalEV3 · Issue #771 · ev3dev-lang-java/ev3dev-lang-java
Description: Steps: Identify Interfaces & classes from LeJOS Implement a prototype Implement a stable solution Develop tests Move to LeJOS commons the missing interfaces & classes Review on internet the majority of Use cases from Users Review how to ...
Open Graph Description: Steps: Identify Interfaces & classes from LeJOS Implement a prototype Implement a stable solution Develop tests Move to LeJOS commons the missing interfaces & classes Review on internet the majorit...
X Description: Steps: Identify Interfaces & classes from LeJOS Implement a prototype Implement a stable solution Develop tests Move to LeJOS commons the missing interfaces & classes Review on internet the...
Opengraph URL: https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/771
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for LocalEV3","articleBody":"**Steps:**\r\n\r\n- [x] Identify Interfaces \u0026 classes from LeJOS\r\n- [ ] Implement a prototype\r\n- [ ] Implement a stable solution\r\n- [ ] Develop tests\r\n- [ ] Move to `LeJOS commons` the missing interfaces \u0026 classes\r\n- [ ] Review on internet the majority of Use cases from Users\r\n- [ ] Review how to include the concept about `BrickPi`\r\n\r\n**Motivation:**\r\n\r\nMany users use the library to build software for robots in `Mindstorms` ecosystem, but in order to go further with the idea to have robots based on multiple bricks, it is necessary to implement the concept about `LocalEV3`.\r\n\r\nIn LeJOS ecosystem, LocalEV3 is a recent concept appeared in EV3:\r\nhttp://www.lejos.org/ev3/docs/lejos/hardware/ev3/LocalEV3.html\r\n\r\n**Note:** If you are going to use only one Brick, you could use directly the objects that you need to use in your program, but if you are going to use Remote capabilities, RemoveEV3 is necessary. In order to begin that journey, it is necessary to provide a `LocalEV3` support.\r\n\r\nSome examples using `LocalEV3`\r\n\r\n```java\r\nBrick brick = BrickFinder.getLocal();\r\nAudio sound = brick.getAudio();\r\nsound.systemSound(0);\r\n\r\nRegulatedMotor left = new EV3LargeRegulatedMotor(brick.getPort(\"B\"));\r\nRegulatedMotor right = new EV3LargeRegulatedMotor(brick.getPort(\"C\"));\r\n\r\n// get a port instance\r\nPort port = LocalEV3.get().getPort(\"S2\");\r\n\r\n// Get an instance of the Ultrasonic EV3 sensor\r\nEV3UltrasonicSensor sensor = new EV3UltrasonicSensor(port);\r\n\r\nGraphicsLCD g = LocalEV3.get (). GetGraphicsLCD ();\r\n\r\nBrickInfo[] bricks = BrickFinder.discover();\r\n\r\nfor(BrickInfo info: bricks) {\r\n Brick brick = new RemoteEV3(info.getIPAddress());\r\n brick.getAudio().systemSound(0);\r\n}\r\n```\r\n\r\n**Article:**\r\nhttps://sourceforge.net/p/lejos/wiki/Remote%20access%20to%20an%20EV3/\r\n\r\nRelated issue:\r\nhttps://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/524\r\n\r\n**References:**\r\n\r\nBrick Capabilities:\r\n\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/ev3/LocalEV3.java\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/ev3/EV3.java\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/Brick.java\r\n- [x] http://www.lejos.org/ev3/docs/lejos/hardware/Audio.html\r\n- [x] http://www.lejos.org/ev3/docs/lejos/hardware/Sounds.html\r\n- [x] http://www.lejos.org/ev3/docs/lejos/hardware/lcd/GraphicsLCD.html\r\n- [ ] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/internal/ev3/EV3LCDManager.java\r\n- [x] http://www.lejos.org/ev3/docs/lejos/hardware/Power.html\r\n- [x] http://www.lejos.org/ev3/docs/lejos/hardware/port/Port.html\r\n\r\nWifi capabilities:\r\n\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/BrickFinder.java\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/Wifi.java\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/hardware/LocalWifiDevice.java\r\n- [x] https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/blob/master/ev3classes/src/lejos/internal/io/NativeWifi.java\r\n\r\n---\r\n\r\n**Offtopic examples:**\r\n\r\n- https://github.com/bartgerard/alpha/blob/master/robot/service/src/main/java/be/gerard/robot/LejosExperiment.java\r\n- https://github.com/david78k/EV3/blob/master/ev3-lejos/src/RemoteControl.java\r\n\r\n---\r\n\r\n- https://github.com/ev3dev-lang-java/lejos-ev3-code-mirror/tree/master/ev3classes/src/lejos/remote/ev3","author":{"url":"https://github.com/jabrena","@type":"Person","name":"jabrena"},"datePublished":"2020-12-29T20:38:48.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/771/ev3dev-lang-java/issues/771"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d3b79b64-faf2-b6f2-33a0-2b1ed05fb098 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BE28:38A719:23EA8BB:2FBE4BF:696EFBAB |
| html-safe-nonce | 1047712532b78f2a9e4b4193890717ffa3c40b681ffb4373a1b1a6f3ef386cff |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTI4OjM4QTcxOToyM0VBOEJCOjJGQkU0QkY6Njk2RUZCQUIiLCJ2aXNpdG9yX2lkIjoiNTI0NjkwMjA2MTI4Nzk4NjM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ce4005deb8d1034bbf0b048e31582b2905879b791a6d1206c3d81adf353c2aa0 |
| hovercard-subject-tag | issue:776076599 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/ev3dev-lang-java/ev3dev-lang-java/771/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6d7fb6cb5d0ff4c0d99c39388e330a95e5a40e47ee8ff35a91dac4b169f5aebd/ev3dev-lang-java/ev3dev-lang-java/issues/771 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6d7fb6cb5d0ff4c0d99c39388e330a95e5a40e47ee8ff35a91dac4b169f5aebd/ev3dev-lang-java/ev3dev-lang-java/issues/771 |
| og:image:alt | Steps: Identify Interfaces & classes from LeJOS Implement a prototype Implement a stable solution Develop tests Move to LeJOS commons the missing interfaces & classes Review on internet the majorit... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jabrena |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/ev3dev-lang-java/ev3dev-lang-java git https://github.com/ev3dev-lang-java/ev3dev-lang-java.git |
| octolytics-dimension-user_id | 17526590 |
| octolytics-dimension-user_login | ev3dev-lang-java |
| octolytics-dimension-repository_id | 45205585 |
| octolytics-dimension-repository_nwo | ev3dev-lang-java/ev3dev-lang-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 45205585 |
| octolytics-dimension-repository_network_root_nwo | ev3dev-lang-java/ev3dev-lang-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width