C sharp - Chip de celular remoto

 
Vista:
Imágen de perfil de Andres

Chip de celular remoto

Publicado por Andres (4 intervenciones) el 30/10/2014 04:30:22
Hola, mi pregunta no es sobre codigo en si, mi pregunta es si existe la posibilidad de conectar un chip de celular a una pc, es decir mi idea es crear un sistemita chico, donde pueda enviar mensajes masivos con un chip, este chip tendria credito y lo usaria atravez de la pc, no pretendo partes de codigo, script o algo, lo unico que quiero saber es si es posible realizar esto o solo estoy alucinando..
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder
sin imagen de perfil

Chip de celular remoto

Publicado por Walter (16 intervenciones) el 02/11/2014 05:07:44
Si se puede mira este link.

http://www.taringa.net/posts/hazlo-tu-mismo/16982438/Enviar-mensajes-GSM-por-medio-de-C.html

Pego el código por si se cae el link.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO.Ports;
using System.Threading;
namespace MOVIL
{
class GSM
{
SerialPort serialPort;
 
public GSM(string comPort)
{
this.serialPort = new SerialPort();
this.serialPort.PortName = comPort;
this.serialPort.BaudRate = 9600;
this.serialPort.Parity = Parity.None;
this.serialPort.DataBits = 8;
this.serialPort.StopBits = StopBits.One;
this.serialPort.Handshake = Handshake.RequestToSend;
this.serialPort.DtrEnable = true;
this.serialPort.RtsEnable = true;
this.serialPort.NewLine = System.Environment.NewLine;
}
 
public bool sendSms(string cellNo, string sms)
{
string messages = null;
messages = sms;
if (this.serialPort.IsOpen == true)
{
try
{
this.serialPort.WriteLine("AT" + (char)(13));
Thread.Sleep(4);
this.serialPort.WriteLine("AT+CMGF=1" + (char)(13));
Thread.Sleep(5);
this.serialPort.WriteLine("AT+CMGS="" + cellNo + """;
Thread.Sleep(10);
this.serialPort.WriteLine(">" + messages + (char)(26));
}
catch (Exception ex)
{
//MessageBox.Show(ex.Source); 
}
return true;
}
else
return false;
}
 
public void Opens()
{
if (this.serialPort.IsOpen == false)
{
this.serialPort.Open();
}
}
 
public void Closes()
{
if (this.serialPort.IsOpen == true)
{
this.serialPort.Close();
}
}
 
}
}

Espero te sirva.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar
Imágen de perfil de Andres

Chip de celular remoto

Publicado por Andres (4 intervenciones) el 19/11/2014 02:41:41
Buenisimo viejo, mil gracias, voy a implementarlo y contarte que tal me fue, saludos
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar