"+++" is not detectable when Java is running | Thales IoT Developer Community
June 30, 2014 - 7:36am, 4140 views
Dear All, I'm connecting EHS6 to an external device via ASC0 (only 3 wires: TX, RX, GND). Have just discovered that "+++" is not detectable when Java is running on the interface. Would like to know is there any ways to detect the "+++" because the external device have no DTR line, and I need Java on these interface for manipulating the incoming serial i/o stream. Regards, kwlee
Hello, i have the same problem with EHS5 engine.
I'm using CommConnection and I need to detect "+++" sequence from an external device, but it seems not possible. I can detect any string except "+++" sequence. If I add another char the sequence is detected ("++++" or "+++a", by example). Is it a bug? Do you know a workaround?
I can't use another line, because I have 3-wire connection.
Thanks in advance.
Could you explain a little more what you are doing and paste the code fragment where you try to catch the "+++" sequence?
As far as I know the "+++" sequence is not working under Java as a way to leave the transparent data **** for CSD calls. There's another method for this.
But there should be rather no problem in detecting this sequence while just listening for data on CommConnection.
This is a code fragment. It works with every string except "+++", in this case "available" is 0. If I send three separated '+' characters there isn't any problem, as well as any other string.
I've verified this with firmware REVISION 03.001 A-REVISION 00.000.23 and I did find the same behaviour. If the +++ sequence is sent without any preceding or subsequent character it is not read by the read method. However the available() returns 3 in such a case but the subsequent read() method blocks as if there would be no data to be read and only returns if some next byte is received.
I have also tried with some newer firmware and it was working fine (it was possible to receive +++ sequence without the above problems).
Unfortunately that newer firmware is not an officially released one. I can't think of any possible workaround at the moment. Is it possible for you not to use the +++ sequence? Please write more about your scenario. Or if there is no other possibility please contact your local Gemalto technical sales person. Maybe they would be able to help or provide some information about new releases.
thanks for your answer. Unfortunately I need to use the +++ sequence, there isn't any other possibility. I will contact the local seller, can you tell me the release you used without problems?
Thank your, best regards,
I've tested with A-REVISION 00.000.31.