element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Code Exchange
  • Technologies
  • More
Code Exchange
Forum Android app dev wanted?
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Code Exchange to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 0 replies
  • Subscribers 48 subscribers
  • Views 15 views
  • Users 0 members are here
  • technichian
  • plcs
  • programming
  • usb
  • phone
  • apps
  • service
  • cellular
Related

Android app dev wanted?

SensoredHacker0
SensoredHacker0 1 day ago

Trapped at work!
wouldn't even care, but I need an adapter to go from USB-C to usb-a and I only know of one at my local makerspace.
Ive been struggling with creating my own Andriod app. I dont know how folks put up with it, I wrote 3 files, 
built the thing and ended up with 1877+ files, and meaningless directory structures. /... and my app doesn't work. :( 

well anyway, the app I want to write would send my PLC IO control commands to a PLC via USB. 
which commands formatted in hex? The commands below for IDEC series PLCs.

This app:
https://play.google.com/store/search?q=usb%20serial&c=apps&hl=en_US

has macros, and I am really ansy to test it. 
I wrote an arduino echo back program:

void setup() {
Serial.begin(115200);
while (!Serial) { } // wait for a connection
Serial.println("READY");
}
 
void loop() {
// connect phone and see if you get transmission interactions
if (Serial.available()) {
String input = Serial.readStringUntil('\n');
Serial.print("ECHO: ");
Serial.println(input);
}
}


which works great!
image

but I want to talk to the PLC now!
 

05 FF 30 57 79 30 30 30 30 31 2F 0D
05 FF 30 57 79 30 30 30 31 31 2E 0D
05 FF 30 57 79 30 30 30 32 31 2D 0D
05 FF 30 57 79 30 30 30 33 31 2C 0D
05 FF 30 57 79 30 30 30 34 31 2B 0D
05 FF 30 57 79 30 30 30 35 31 2A 0D
05 FF 30 57 79 30 30 30 36 31 29 0D
05 FF 30 57 79 30 30 30 37 31 28 0D
05 FF 30 57 79 30 30 30 30 30 2E 0D
05 FF 30 57 79 30 30 30 31 30 2F 0D
05 FF 30 57 79 30 30 30 32 30 2C 0D
05 FF 30 57 79 30 30 30 33 30 2D 0D
05 FF 30 57 79 30 30 30 34 30 2A 0D
05 FF 30 57 79 30 30 30 35 30 2B 0D
05 FF 30 57 79 30 30 30 36 30 28 0D
05 FF 30 57 79 30 30 30 37 30 29 0D


So i wrote some macros to send commands. but I'm stuck until 5 because I don't have some adapter.

implication of functional test:

I can write code to conduct system debugging from a cell phone... the thing every service tech has. 
no more climbing on ladders with a laptop, only to connect and data collect, and still not have a network to dial out on. 
this is an every day problem for many technicians. There's no internet in the building, no place to plug in, no cellular, no way to get the data off the laptop on to a phone, 
the tech has a laptop, but can't install programs (ok i have solved most of that) but, its the same issue, the service reps aren't computer programmers, or IT specialist, and the sites they go to might not have reliable network connectivity. you're in a dense industrial building, that acts like shielding from every service signal, then you want to link out, but your laptop needed to run some proprietary BS software still has to connect to your phone ... its stupid, and unnecessary, and I'll Fkn fix it myself if I can ever figure out how to write a GD Android App. 

in the meantime, i want to test this program for functionality. it should work. 

  • Sign in to reply
  • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube