Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
There's a number of ways to do that based on the coder's preference.
Pseudo-codish, take with a grain of salt. I only just got out of bed.
// This is just a simple converter that takes a binary string and converts it to a char array
#include <string.h>
#include <math.h>
int i = 0;
int length...
I do PC programming, so I can't be a lot of help with this, but I doubt the two are terribly dissimilar. A seg fault is an error in which your program has tried to access memory it doesn't have permission to access. You may have a loop that's stepping outside of its allowed memory:
char...
A simple HTTP POST to a PHP script would get the data to your site. Example: http://yoursite/log.php?string=stuff+goes+here&auth=blah
Displaying that data depends on your data.
In .NET you can access serial ports through System.IO.Ports: SerialPort
A less complex example, showing how to receive a string: https://msdn.microsoft.com/en-us/library/7ya7y41k.aspx
The constructor will throw System.IO.IOException if the COM port doesn't exist or cannot be opened. I don't know...
I usually use Bluestacks for Android-only stuff, since my phone was destroyed. I don't think it's a "complete" emulation, with as fast as it runs, but it may have just been the architecture emulation in the Android SDK slowing things down.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.