1
2
3
4
5
6 package net.sf.atmodem4j.core;
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 import java.io.IOException;
37 import net.sf.atmodem4j.core.Modem.ModemCapabilities;
38
39
40
41
42
43 public class ItuV250Modem extends AbstractModem {
44
45 public ItuV250Modem() {
46 super();
47 }
48
49 @Override
50 public String getManufacturerId() throws IOException, InterruptedException {
51 return extractLineData(sendAndEctractData("AT+GMI"));
52 }
53
54 @Override
55 public String getModelId() throws IOException, InterruptedException {
56 return extractLineData(sendAndEctractData("AT+GMM"));
57 }
58
59 @Override
60 public String getRevisionId() throws IOException, InterruptedException {
61 return extractLineData(sendAndEctractData("AT+GMR"));
62 }
63
64 @Override
65 public String getSerialNumber() throws IOException, InterruptedException {
66 return extractLineData(sendAndEctractData("AT+GSN"));
67 }
68
69 @Override
70 public String getObjectId() throws IOException, InterruptedException {
71 return extractLineData(sendAndEctractData("AT+GOI"));
72 }
73
74 @Override
75 public ModemCapabilities[] getCapabilities() throws IOException, InterruptedException {
76 return ModemCapabilities.parseCapabilities(extractLineData(sendAndEctractData("AT+GCAP")));
77 }
78
79 @Override
80 public String getCountryOfInstallation() throws IOException,
81 InterruptedException {
82 return sendAndEctractData("AT+GCI?")[0];
83 }
84
85 }