Guillaume DOTT
e1e7be5d98
Add compatibility with ruby 1.9.3
2013-11-06 17:26:26 +01:00
Guillaume DOTT
926d7ec544
Add count on repeat when at least one occurence is required
2013-10-03 11:14:28 +02:00
Guillaume DOTT
3656fd6d82
Allow for an id or an enumerable for Biju::Hayes#delete
2013-10-03 11:11:21 +02:00
Guillaume DOTT
77105b180a
Ignore PDU message lines in response when sending SMS
...
Tested with TP-LINK MA180.
It returns the PDU message when sending a message with a length greater
than 56 (i don't really know why for now). These lines are ignored and
only the last one with the status is parsed.
2013-10-03 11:07:45 +02:00
Guillaume DOTT
9475bdfb5c
Flush serialport output before every AT command
2013-10-03 11:05:35 +02:00
Guillaume DOTT
a3a9c43d8b
Clean Biju::PDU.decode method
2013-10-01 15:08:29 +02:00
Guillaume DOTT
4e8463e0dc
Add class for PDU 'first octet' field
2013-10-01 15:04:19 +02:00
Guillaume DOTT
a0757a9c69
Add generic rule for responses in parser
2013-10-01 15:01:27 +02:00
Guillaume DOTT
001cbacfca
Do not use ATZ command on initialization
...
ATZ can reset settings like SMSC number on some 3G keys.
2013-10-01 14:54:41 +02:00
Guillaume DOTT
be53921802
Modify README and add comments for some cryptic methods
2013-09-12 10:37:50 +02:00
Guillaume DOTT
550a2b4d3d
Add support for +CPIN? and use SIM status before entering PIN
2013-09-12 10:37:13 +02:00
Guillaume DOTT
aabb2027b0
Add timeout to raise exception when Modem#wait is stuck
2013-09-12 10:37:13 +02:00
Guillaume DOTT
7281b8f82d
Add support for +CNUM to get SIM phone numbers
2013-09-12 10:37:13 +02:00
Guillaume DOTT
2f4f1f81f3
Modify Hayes#messages to always return an array
2013-09-12 10:37:13 +02:00
Guillaume DOTT
ff6dc617dc
Remove support for string datetime in SMS
2013-09-12 10:37:13 +02:00
Guillaume DOTT
f4218e1025
Add timestamp class to convert from PDU format to DateTime
2013-09-12 10:37:13 +02:00
Guillaume DOTT
f049777a00
Remove mutation of argument string
2013-09-12 10:37:13 +02:00
Guillaume DOTT
e790ac07c4
Raise a CmsError or CmeError when AT responds with error
2013-09-12 10:37:13 +02:00
Guillaume DOTT
276f0b0093
Improve Hayes#send to check for prompt and wait for answer
2013-09-12 10:37:13 +02:00
Guillaume DOTT
ea3106cfc2
Add minimum length for Modem#wait
2013-09-12 10:37:12 +02:00
Guillaume DOTT
2de794042d
Move GSM7Bit and UCS2 into Biju::PDU::Encoding submodule
2013-09-12 10:37:12 +02:00
Guillaume DOTT
1c3521586a
Move PDU fields methods into their own classes
2013-09-12 10:37:12 +02:00
Guillaume DOTT
dbd2f09ec2
Return length in encode method for gsm7bit and ucs2
2013-09-12 10:37:12 +02:00
Guillaume DOTT
885ac26cd1
Accept prompt in parser
2013-09-12 10:37:12 +02:00
Guillaume DOTT
3c677b7d29
Disable text mode and generate Sms objects in PDU mode
...
Text mode is only useful for debug purposes.
To parse answers, PDU mode is required (multiline messages, ...).
2013-09-12 10:37:12 +02:00
Guillaume DOTT
b4f49569bb
Add +CMGF? support and text_mode? method
2013-09-12 10:37:12 +02:00
Guillaume DOTT
c0a3fe8ef0
Add request before response in parser
2013-09-12 10:37:12 +02:00
Guillaume DOTT
955654365a
Add UCS-2 encoding / decoding for SMS user data
2013-09-12 10:37:12 +02:00
Guillaume DOTT
cf655b2b3c
Add length parameter to GSM7Bit decode
2013-09-12 10:37:12 +02:00
Guillaume DOTT
84fbedc46b
Modify parser for PDU mode
2013-09-12 10:37:12 +02:00
Guillaume DOTT
1446be3c14
Remove useless self from to_hayes methods
2013-09-12 10:37:12 +02:00
Guillaume DOTT
be87792382
Add timezone to DateTime format
2013-09-12 10:37:12 +02:00
Guillaume DOTT
548e5cd4cd
Use Forwardable in Biju::Modem
2013-09-12 10:37:11 +02:00
Guillaume DOTT
a001604ee7
Add PDU mode support and GSM 7Bit encoding / decoding
2013-09-12 10:37:11 +02:00
Guillaume DOTT
67571dd12e
Move AT commands in Hayes class and use Modem to send to SerialPort
2013-09-12 10:37:11 +02:00
Guillaume DOTT
b1568bbf24
Add to_hayes method to some basic classes
2013-09-12 10:37:11 +02:00
Guillaume DOTT
404f7d8290
Use DateTime object for date in Sms class
2013-09-12 10:37:11 +02:00
Guillaume DOTT
dcbafff75b
Add AT parser
2013-09-12 10:37:11 +02:00
Thomas Kienlen
b17822b4eb
at regex
2013-09-12 10:37:11 +02:00
Thomas Kienlen
c087eb3973
hayes begins
2013-09-12 10:37:11 +02:00
Tomtom
e3fc62c7dd
receive command select all message (sim+mem)
2012-06-21 23:03:22 +02:00
Tomtom
154646323b
added send command
2012-06-20 23:08:43 +02:00
Rodrigo Pinto
c72bdaa942
bump version
2012-06-06 16:03:38 -03:00
Rodrigo Pinto
c5750f264a
Add method delete to Modem class
2012-05-29 16:15:12 -03:00
Rodrigo Pinto
997b4993e5
Add better comments
2012-05-29 16:12:40 -03:00
Rodrigo Pinto
1d4ce23ddb
Start to doc modem class and put connectio method to private
2012-05-18 17:35:45 -03:00
Rodrigo Pinto
209df5b5fb
Add class Modem. [meaculpa] it is missing test for a while, fix it soon
2012-05-18 14:19:28 -03:00
Rodrigo Pinto
693613dfae
Add Sms class and respective spec
2012-05-17 21:38:41 -03:00
Rodrigo Pinto
e0c5555cf1
Initial commit.
2012-05-16 18:33:34 -03:00