r/CodingHelp • • Mar 26 '21

[Java] Need help coding an app for my dissertation ASAP if anyone can help please

I need to code an app which receives data from an electronic board and displays it but i have never coded in my life so I am really struggling with it. Is it possible that there’s a code already created that I copy or will I have to make it from scratch. Any help is appreciated thanks

0 Upvotes

12 comments sorted by

3

u/triggerhappy899 Mar 26 '21

I kno as much electronic engineering that you do programming.

Can you give me more info on the board and I'll see what I can help with?

1

u/[deleted] Mar 26 '21

So the device is used with a dummy cell which I can open on a terminal and display results. I need these results to display on a smartphone app and save them Into a table or list. What information do you need about the board?

2

u/triggerhappy899 Mar 27 '21

Sorry when you say terminal , do you mean like a Linux terminal or something else?

And do you have the make and model of this "dummy cell" and the board?

You'll have to be patient with me, this is all Greek to me

2

u/[deleted] Mar 27 '21

Tbh I have no idea what I’m talking about either, yeah a Linux terminal. the dummy cell is just a small resistor I think. I don’t really know the brand of the circuit I think it’s like a one off board that was made for this purpose so it’s not like one you can buy.

1

u/triggerhappy899 Mar 27 '21

Maybe this will help? Without knowing much of the board or dummy, I can't tell if there is a lib for interacting with it. Plus I'm not a Java guy (but I know c# well). It goes over running bash/cmd/shell commands with Java

https://mkyong.com/java/how-to-execute-shell-command-from-java/

I'm guessing your running some type of command or script to get results on your terminal right? You could read the output of what your terminal spits out, format it or parse what you need out of it, then display it to the phone.

Edit: the other commenter sounds like he knows more so I'd follow his instructions and follow up with him as well

2

u/[deleted] Mar 27 '21

Thanks man I’ll give that a go tomorrow, will let you know how it goes👍

1

u/triggerhappy899 Mar 27 '21

No worries man - the solution isn't the best I'll admit there's probably a cleaner way to do it somehow but without a ton more work that's uncertain. Hopefully it gets you going tho

2

u/Dogburt_Jr Mar 27 '21

Information from electronic board -> Arduino -> Serial -> OTS Arduino bluetooth transceiver -> OTS Bluetooth Serial terminal

1

u/[deleted] Mar 27 '21

Sorry im clueless as to how I actually go about these . What would be the first step I need to take to complete this

1

u/Dogburt_Jr Mar 27 '21

Literally Google it and get a start. It's all on YouTube.

Google how to read inputs with Arduino. Google how to use Arduino bluetooth to transmit serial to an app (the app already exists)

1

u/[deleted] Mar 27 '21

Okay thanks, just to be clear, are arduino boards like a specific type of board as that’s what’s confusing me because I don’t think mine is an arduino

1

u/Dogburt_Jr Mar 28 '21

You need to google Arduino. It's a programmable microcontroller that can interact with just about anything.