Hi,
If somebody could give me a clue on this problem I'm facing, I will be very grateful.
I am facing unexpected problems due to an exception while hanging-up the connection with a GSM modem.
-> ATD[number]
<- CONNECT 9600/RLP
-> +++
<- OK
-> ATH0
java.io.IOException:
at com.github.jodersky.flow.internal.NativeSerial.readDirect(Native Method)
at com.github.jodersky.flow.internal.SerialConnection$$anonfun$read$1.apply(SerialConnection.scala:75)
at com.github.jodersky.flow.internal.SerialConnection$$anonfun$read$1.apply(SerialConnection.scala:75)
at com.github.jodersky.flow.internal.SerialConnection.transfer(SerialConnection.scala:120)
at com.github.jodersky.flow.internal.SerialConnection.read(SerialConnection.scala:77)
at com.github.jodersky.flow.internal.Reader.readLoop(Reader.scala:14)
at com.github.jodersky.flow.internal.Reader.run(Reader.scala:34)
Thanks in advance.
flow version 2.6.0
Thanks, Jacob. I did it, it shows the following message:
error data not available after select: No such file or directory
I think that I've found something similar in the flow.c file at line 232 https://github.com/jodersky/flow/blob/f791debe0c44f7bf420df37725e52b724c19660d/flow-native/src/platform/posix/flow.c#L232. For version 2.6.0 I've found here https://github.com/jodersky/flow/blob/v2.6.0/flow-native/src/platform/posix/flow.c#L218
Any ideas? Thanks!
I don't change the baud rate during a connection. I'm using the following values but never change:
val settings = SerialSettings(
baud = 9600,
characterSize = 8,
twoStopBits = false,
parity = Parity.None
)
I'm sending AT commands like ATE0, ATV1 and ATQ0 before the ATD command. That's all.