NetSimple 1.0



Publisher Description



NetSimple - Network Remote Control for sending positional information to microcontroller.

The purpose of the app is to control remote hardware like Arduino, Netduino, Raspberry Pi ...
The protocol is TCP / IP (Client).

UP: 0, power, 0
DOWN: 0, -power, 0
LEFT: -power, power, 0
RIGHT: power, power, 0
MIDDLE: 0, 0, 0 or 0, 0, power (Zero active)

Byte Mode: 3 positions are transfered as 3 bytes (default)
ASCII mode: 3 positions are transfered as text seperated by comma (ended by n)
Session inactive: Each transmission in a Serated connection
Session active: Connection never closed, but if Necessary automatic reconnect (default)
Zero inactive: No return to zero values ​​after release
Zero active: Auto return to zero values ​​after release

Sample code for a server on Raspberry Pi:

#include "stdio.h"
#include "stdlib.h"
#include "string.h"
#include "unistd.h"
#include "sys / types.h"
#include "sys / socket.h"
#include "netinet / in.h"

void error (const char * msg)
{
    perror (msg);
    exit (1);
}

int main (int argc, char * argv [])
{
    int sockfd, newsockfd, portno, n;
    socklen_t clilen;
    char buffer [256];
    struct sockaddr_in serv_addr, cli_addr;
    
    sockfd = socket (AF_INET, SOCK_STREAM, 0);
    if (sockfd          error ( "ERROR opening socket");

    bzero ((char *) & serv_addr, sizeof (serv_addr));
    portno = 12345;

    serv_addr.sin_family = AF_INET;
    serv_addr.sin_addr.s_addr = INADDR_ANY;
    serv_addr.sin_port = htons (portno);
    if (bind (sockfd, (struct sockaddr *)
           & Serv_addr, sizeof (serv_addr))                 error ( "ERROR on binding");

    while (1)
    {
         listen (sockfd, 5);
         clilen = sizeof (cli_addr);
         newsockfd = accept (sockfd, (struct sockaddr *)
               & Cli_addr, & clilen);
         if (newsockfd                error ( "ERROR on accept");

         while (1)
         {
               bzero (buffer, 256);
               n = read (newsockfd, buffer, 3);
               if (n                {
                     error ( "ERROR reading from socket");
                     break;
               }

               float tmp1 = (float) buffer [0];

                     tmp1 - = 256;

               float tmp2 = (float) buffer [1];

                      tmp2 - = 256;

               float TMP3 = (float) buffer [2];

                      TMP3 - = 256;

               printf ( "% d% d% d n", (int) tmp1, (int) tmp2, (int) TMP3);
         }
         close (newsockfd);
     }
     close (sockfd);
     return 0;
}


About NetSimple

NetSimple is a free app for Android published in the Telephony list of apps, part of Communications.

The company that develops NetSimple is Ferdinand Stueckler. The latest version released by its developer is 1.0.

To install NetSimple on your Android device, just click the green Continue To App button above to start the installation process. The app is listed on our website since 2016-03-23 and was downloaded 2 times. We have already checked if the download link is safe, however for your own protection we recommend that you scan the downloaded app with your antivirus. Your antivirus may detect the NetSimple as malware as malware if the download link to com.ip.netsimple is broken.

How to install NetSimple on your Android device:

  • Click on the Continue To App button on our website. This will redirect you to Google Play.
  • Once the NetSimple is shown in the Google Play listing of your Android device, you can start its download and installation. Tap on the Install button located below the search bar and to the right of the app icon.
  • A pop-up window with the permissions required by NetSimple will be shown. Click on Accept to continue the process.
  • NetSimple will be downloaded onto your device, displaying a progress. Once the download completes, the installation will start and you'll get a notification after the installation is finished.



RELATED PROGRAMS
Our Recommendations






BarCode2D-PNG


Click stars to rate this APP!

Users Rating:  
  0.0/5     0
Downloads: 2
Updated At: 2024-04-19
Publisher: Ferdinand Stueckler
Operating System: Android
License Type: Free