1/3
NetSimple screenshot 0
NetSimple screenshot 1
NetSimple screenshot 2
NetSimple Icon

NetSimple

Ferdinand Stueckler
Trustable Ranking IconPouzdano
1K+Preuzimanja
358kBVeličina
Android Version Icon2.2.x+
Android verzija
1.0(11-08-2017)Najnovija verzija
-
(0 Prikazi)
Age ratingPEGI-3
Preuzmite
DetaljiPrikaziVerzijeИнфо
1/3

Opis aplikacije NetSimple

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 < 0)

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)) < 0)

error("ERROR on binding");

while(1)

{

listen(sockfd,5);

clilen = sizeof(cli_addr);

newsockfd = accept(sockfd, (struct sockaddr *)

&cli_addr, &clilen);

if (newsockfd < 0)

error("ERROR on accept");

while(1)

{

bzero(buffer,256);

n = read(newsockfd,buffer,3);

if (n < 3)

{

error("ERROR reading from socket");

break;

}

float tmp1 = (float)buffer[0];

if (tmp1 > 127)

tmp1 -= 256;

float tmp2 = (float)buffer[1];

if (tmp2 > 127)

tmp2 -= 256;

float tmp3 = (float)buffer[2];

if (tmp3 > 127)

tmp3 -=256;

printf("%d %d %d\n",(int)tmp1,(int)tmp2,(int)tmp3);

}

close(newsockfd);

}

close(sockfd);

return 0;

}

NetSimple - Verzija 1.0

(11-08-2017)
Druge verzije

Trenutno nema komentara ili ocena! Da biste ostavili prvi komentar ili ocenu,

-
0 Reviews
5
4
3
2
1

NetSimple - Informacije o APK datoteci

Verzija APK datoteke: 1.0Paket: com.ip.netsimple
Kompatibilnost sa Android sistemom: 2.2.x+ (Froyo)
Programer:Ferdinand StuecklerSmernice za privatnost:http://lehrer.bulme.at/~sk/policy.htmlDozvole:1
Naziv: NetSimpleVeličina: 358 kBPreuzimanja: 5Verzija : 1.0Datum objavljivanja: 2021-10-25 23:14:39Najmanji ekran: SMALLPodržana CPJ:
ID paketa: com.ip.netsimpleSHA1 potpis: 99:8A:F2:9C:BA:F4:68:33:09:9A:E9:A0:B4:27:B7:25:F0:59:4A:90Programer (CN): Ferdinand StuecklerOrganizacija (O): Lokacija (L): Zemlja (C): Država/grad (ST): ID paketa: com.ip.netsimpleSHA1 potpis: 99:8A:F2:9C:BA:F4:68:33:09:9A:E9:A0:B4:27:B7:25:F0:59:4A:90Programer (CN): Ferdinand StuecklerOrganizacija (O): Lokacija (L): Zemlja (C): Država/grad (ST):

Poslednja verzija aplikacije NetSimple

1.0Trust Icon Versions
11/8/2017
5 preuzimanja358 kB Veličina
Preuzmite