nefelimet / javaserialcomms Goto Github PK
View Code? Open in Web Editor NEWJava Serial Communications project for the Computer Networks I course.
Java Serial Communications project for the Computer Networks I course.
These two functions are almost identical and they could be merged into one with some extra checks. Do it for code readability.
The echo packets' response times are saved in a txt file along with the packets' info, which isn't very easy to work with when making a graph. The response times must be saved in a spreadsheet, so that we can easily use them by scripts to make graphs.
Write a .m script in order to get echo packets' response times and make them into a graph. This will be done after issue #3 is done.
Solved the infinite loop, but now there's a StringIndexOutOfBoundsException on line 315.
When receiveImage() tries to write into the txt files, this error occurs:
An error occurred.
java.io.FileNotFoundException: imageWithError.txt (Δεν ήταν δυνατή η προσπέλαση του αρχείου από τη διεργασία, επειδή χρησιμοποιείται ήδη από κάποια άλλη διεργασία)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:234)
at java.base/java.io.FileOutputStream.(FileOutputStream.java:155)
at java.base/java.io.FileWriter.(FileWriter.java:82)
at userApp.writeToFile(userApp.java:95)
at userApp.receiveImage(userApp.java:170)
at userApp.demo(userApp.java:220)
at userApp.main(userApp.java:19)
However, the program continues execution and does create the txt files correctly. The jpeg files have no problem.
I can just comment out the txt files part since we no longer need it anyway, but it would be nice to know the reason behind this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.