testphone: misc changes to ease scripting and lu
This commit is contained in:
parent
60c5441e9b
commit
6a07c73878
11
GSMDriver.st
11
GSMDriver.st
|
@ -222,7 +222,7 @@ Object subclass: ProcedureBase [
|
|||
openConnection: aMsg sapi: aSapi phone: aPhone handler: aHandler [
|
||||
| msg bssap |
|
||||
msg := IEMessage initWith: GSM0808Helper msgComplL3.
|
||||
msg addIe: (GSMCellIdentifier initWith: 274 mnc: 8 lac: 4099 ci: 40000).
|
||||
msg addIe: (GSMCellIdentifier initWith: 274 mnc: 8 lac: 8210 ci: 30000).
|
||||
msg addIe: (GSMLayer3Info initWith: aMsg).
|
||||
|
||||
bssap := BSSAPManagement initWith: msg.
|
||||
|
@ -306,7 +306,7 @@ ProcedureBase subclass: CallProcedure [
|
|||
]
|
||||
|
||||
nr: aNr [
|
||||
nr := (ByteArray with: 16r80), (GSMNumberDigits encodeFrom: aNr).
|
||||
nr := (ByteArray with: 16r91), (GSMNumberDigits encodeFrom: aNr).
|
||||
]
|
||||
|
||||
createConnection: aHandler phone: aPhone [
|
||||
|
@ -363,7 +363,7 @@ ProcedureBase subclass: CallProcedure [
|
|||
]
|
||||
|
||||
ProcedureBase subclass: USSDProcedure [
|
||||
| nr |
|
||||
| nr facility |
|
||||
|
||||
<import: Osmo>
|
||||
|
||||
|
@ -407,6 +407,10 @@ ProcedureBase subclass: USSDProcedure [
|
|||
nr := aNr.
|
||||
]
|
||||
|
||||
facility [
|
||||
^ facility
|
||||
]
|
||||
|
||||
createConnection: aHandler phone: aPhone [
|
||||
| cm |
|
||||
|
||||
|
@ -433,6 +437,7 @@ ProcedureBase subclass: USSDProcedure [
|
|||
|
||||
handleData: aMsg sapi: aSapi [
|
||||
aMsg class messageType = GSM48SSMessage msgReleaseCompl ifTrue:[
|
||||
facility := aMsg facility.
|
||||
aMsg inspect.
|
||||
self success: aMsg ti = 9.
|
||||
].
|
||||
|
|
|
@ -30,6 +30,10 @@ Object subclass: IPAConnection [
|
|||
yourself
|
||||
]
|
||||
|
||||
socket [
|
||||
^ socket
|
||||
]
|
||||
|
||||
socket: aSocket [
|
||||
socket := aSocket.
|
||||
]
|
||||
|
@ -62,7 +66,9 @@ Object subclass: IPAConnection [
|
|||
dispatcher dispatch: data first with: data second.
|
||||
|
||||
self drainSendQueue.
|
||||
] on: SystemExceptions.EndOfStream do: [:e | ^ false ]
|
||||
]
|
||||
on: SystemExceptions.FileError do: [:e | ^ false ]
|
||||
on: SystemExceptions.EndOfStream do: [:e | ^ false ]
|
||||
]
|
||||
]
|
||||
|
||||
|
|
Reference in New Issue