-
Notifications
You must be signed in to change notification settings - Fork 949
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AT Command Interface #23
Comments
This feature doesn't work at the moment. Only if you use an AOSP based ROM and the older alpha-0.1.4. |
When AT Command injection feature works, will it be possible to list some low level gsm values such as bsic,bcch etc..? |
That depends, but it certainly would make it easier. Because then we know what to talk with and how, and we can use IF to set the appropriate MUXing to dump diagnostics. Goto XDA thread and try some of the stuff I've mentioned there and post the results. |
@kamilcakir, we first need to solve Issue #27. You're invited to help us! |
@xLaMbChOpSx Would you be able to re-introduce the AT command stuff now? I'm thinking as a separate page, that you access by either: (a) menu item or (b) screen side-slide. I need to do some testing on the XMM modem ATs so if the manual AT entry option is still available that would be great. Or is it better if I just download the old version? |
@xLaMbChOpSx In response to comments in #66. I understand the MultiRIL is probably Samsung and device specific, but I think it's the only solution we have that have given us partial success. At least that was my impression from the early AT query in the old release, but I don't know, since I was not able to test it at that time. So what I suggest is that you make a "device" check on the AT command "page", and just disable it for non Samsung devices as we did for non-CDMA devices in the FemtoCell detector part. Another thing about that, as far as I have (mis?)understood the Surely, we will continue to look for correct AT terminal on our devices, but it is damn hard since no one seem even remotely interested in trying things and doing this. Another thing I found, is that issuing the following command, gives your IMEI:
I have no idea where (what APP) this comes from, and need to be looked into. However, I have some shell problems on that device, severely restricting editing and control characters, and not being able to investigate deeper at this moment. |
That might be correct for the majority of people who are lazy and are just using our App instead of supporting development, @E3V3A. To be honest, I am more than willing to even BRICK MY DEVICE for this project to succeed, but I'm still missing an idiot-proof instruction on how to test and what to report to drive progress forward. Might be, that most people like me are just confused with all the commands to issue. Recalling my conversation with you via PM on XDA, I remember that you suggested writing a script that will automatically do the required tests to collect what we need. I very much support this idea - I'm sure many people would contribute their results and we'd reach our goal much faster. If possible, would you please start up on the code of such a script and upload it to our repository? |
@xLaMbChOpSx @SecUpwN Since I can't find the last working AT injector version, I'd like to build this by myself, where and how do I activate the AT injector in the current version? |
Hey @E3V3A, I'm sorry you're having such trouble finding it (and I know you can't await until the AT Command Injector works again). As far as I know, WIP-Release v0.1.4-alpha was the version before it's functionality got removed. Would you please try that one? Hope it helps you with the testing. Good luck! |
@SecUpwN That was still a signed version, which doesn't install. So it would be better to try to build this. |
@xLaMbChOpSx, would you please chime in and either give @E3V3A instructions on how to build a version with re-enabled AT Command-Injector? Or maybe (and I would much prefer it) could you push a new WIP-Release with fully re-enabled AT Command-Injector and bugfixes (although not very much tested yet)? I'd like @E3V3A to be able to run his much desired tests, maybe he'll find out useful stuff.. |
@xLaMbChOpSx and @SecUpwN and @He3556 |
AWESOME! Congratulations, @E3V3A! 👑 |
@E3V3A Great work on getting the AT access on your device if you like I can now attempt to implement a method that uses your findings into the AT Command Injector fragment, I did a quick check on my device (i9100) and it shows ttyS0 as the ril device but I have not had a chance to test it fully using your instructions yet. Would you like me to try and get this incorporated tomorrow night for you to test? It will mean invoking that section of the app will require root but it would only be requested IF a user attempted to use the AT Command injector. Let me know and I will get cracking on it straight away. |
@xLaMbChOpSx That would be just excellent! I just added some afterthoughts and further instructions in a later post. Can you verify, if your device is using a Multiclient RIL? Perhaps you and others can post your devices + services + getproperty'ies in the XDA thread for me to look at, in case you can't get it to work. Happy Midsummer! |
Let me say a HUUGE THANK YOU to @E3V3A for figuring out how to implement AT Command Injection and @xLaMbChOpSx for coding it! I updated the AT Command Injection WIKI. Shall we close this now? |
Just to be clear. AT does not work for XMM modem based devices, AFAICT. (I would love to hear of a verified success.) Probably only for Qualcomm, unless also other people can start to test and report and respond to my XDA posts. It should work for MTK based ones... |
@E3V3A, I would like to add some instructions to the AT Command Injection WIKI:
Maybe you can take a minute to update the WIKI entry? I hope people will submit their results. |
@SecUpwN Wow!! Very nice. |
Hi, the AT command injection doesn't work at the moment on my MTK device. root@wiko:/dev/radio # ls
atci1
atci2
ptty2cmd1
ptty2cmd2
ptty2cmd3
ptty2cmd4
ptty2noti
pttycmd1
pttycmd2
pttycmd3
pttycmd4
pttynoti
pttyvt
root@wiko:/dev/radio # cat atci1&
[1] 5867
root@wiko:/dev/radio # echo -e "AT\r" > atci1
root@wiko:/dev/radio #
OK
130|root@wiko:/dev/radio # echo -e "AT+cind=?\r" > atci1
root@wiko:/dev/radio #
+CIND:("battchg",(0-5)), ("signal",(0-5)), ("service",(0,1)), ("message",(0,1)),("call",(0,1)), ("roam",(0,1)), ("smsfull",(0,1))
OK
130|root@wiko:/dev/radio # echo -e "AT+cfun=?\r" > atci1
root@wiko:/dev/radio #
+CFUN: (0,1,4),(0,1)
OK Maybe you can also make it work without root on MTK. Use the same approach like in the engineer menu (.invokeOemRilRequestStrings).. Maybe out of place here: My device is dual SIM, so it has also two separated radios. If I use the first SIM / radio the app works, but if I use only the second SIM/ radio it crashes immediately on start. |
@andr3jx : Please also post your findings in the XDA thread, where it can also be found helpful to others. From your log above, it seem that this works, which is very good. The AT interface is very alpha and was only enabled to get more developing input from our users, like you. Thank you. I'm sure @xLaMbChOpSx will implement your /dev device in one of next releases. Just to make sure, please also post the output of the EVERYONE:
[Change the device name "smd0" to what you found working.] Then use with: |
Ok, posted to our XDA thread ;) |
@xLaMbChOpSx, I tested AIMSICD 0.1.21 and experienced some problems. It is possible to use |
@andr3jx : To use something else than If you suffer time-out issues, please try to close down the use of other RF related applications. @xLaMbChOpSx : Can you increase the time-out for AT request, maybe to 10 seconds? |
@E3V3A AT command injector looks the same to me on the latest code - I see the "current serial device", "detected devices", etc. Check that you have given super user permission, perhaps? |
@tobykurien su has never been a problem (for me). The AT injector worked fine in 0.1.21 and hasn't worked since. It is probably because you guys insists in testing this on custom ROM devices and searching for/using the the wrong modem devices, by making assumptions, that only work on your ROMs. One such faulty assumption, is to think that AT interface can always be obtained from
As for solving the previous builds error, (which from the PR's still have not been addressed.) Please do the following:
|
@E3V3A I understand your frustration at the issues you are having. A couple of points:
My hope is that @xLaMbChOpSx will return and continue work on this. I'm sorry that I cannot help. |
@tobykurien No of course you're not adding bug intentionally and I certainly didn't mean it to sound like that. Sorry if it did. The changes that broke it, was made long before you came into the picture. We may consider temporarily pulling this code out and make it to a stand-alone app, that can be more easily tested. Once that works, we can put it back in. (Just a suggestion.) However, since it did work a couple of alpha versions before, it should be easy to fix. But I'm not sure how to best do code diff's on older versions. I think there was a lot of other changes at that time, that would mask the functionality of the ATCoP interface. |
Ok, I've upgraded my mksh function that should handle the entire AT sequence in one go. This is also the PoC on how it should be implemented in the App. Please note that a root shell has to be available. Also note that newer SuperSU versions (>1.99) may require you to specify a SELinux context. For me, the say() {
ATDEV="/dev/smd0"
cat ${ATDEV} & ZATPID=$!;
echo "ATCoP interface PID: $ZATPID";
sleep 2
echo -e "$1\r" >${ATDEV}
sleep 10
eval '[ -d "/proc/$ZATPID" ] && kill -15 $ZATPID'
unset ATDEV
} Then edit the How To Use: Edit and copy paste this in a root shell, then use it with (for example): @tobykurien Can you have another look at this? EDIT: 20141201 Fixed code typo |
@E3V3A, what was the solution to the missing |
@SecUpwN |
Thanks for your response, @andr3jx. Issuing
I remember E:V:A having posted a full version of |
@SecUpwN We've already discussed this in considerable length in the XDA thread. Please look there. This issue is to fix what used to work, so if you didn't have (or found) AT interface before, it will not resolve that problem with this issue in the future. You either have an AT enabled device under /dev or you don't, simple as that. Then it's entirely up to you how to find it, since it is device specific. On Qualcomms we know there is always one, same on most MTKs. On XMM's and yours, no idea. |
@SecUpwN You used |
Yes, I did. But since value
I know you are annoyed by this, @E3V3A. I'm just trying to support this device class too, especially since I love HTC myself and will never buy anything else. Just two last questions regarding the HTC One:
Thank you for your patience with my questions. Hope @tobykurien will continue here. Peace out. |
@SecUpwN Wait - you don't have stock ROM, do you? I can imagine this is only available on stock ROMs. Please compare /system/lib/libril.so and /system/bin/radiooptions with the files on Stock ROM. |
@andr3jx, might be. How exactly do you want me to compare this? And what if this is the case? |
@SecUpwN Copy radiooptions from stock ROM to your phone and see which options it offers. You can also use |
@andr3jx, I already did that a while back when E:V:A posted the ZIP file on our XDA thread. And yes, |
@SecUpwN |
Hello, I figured I would step into this conversation since it was I who prompted it through @SecUpwN on XDA. I am on currently running AT&T Stock 4.4.2 4.18.502.7 Rooted Odexed on my HTC One M7. I don't even have radiooptions as a command in /system/bin at all. Am I missing something here? I also checked the stock rom zip that I flashed from and radiooptions is not in there either. |
After installing the radiooptions binary from the XDA, I now get this error:
|
This thread is to fix the built-in injector for those who already have the ATCoP interface on their devices. Please open a new issue for your device specific AT questions/issues, or post in the XDA development thread. Thanks for understanding. I'm locking this issue until further notice. |
@E3V3A, I can fully understand why you're so mad about this. From now on, I will make damn sure to not cross-link Issues again. To avoid further spamming, I previously asked about opening a fresh Issue for discussion, but unfortunately we had some heavy miscommunication going on, that is also why more people joined into this side-channel. Please excuse all this, it will NOT happen again! To remedy things like that in the future, I have added a warning to our Problems page. I am very sorry for what happened. I will now re-open this Issue solely to fix the built-in injector for those who already have the ATCoP interface. Please stay on topic everyone. @teknogeek, please continue discussion in #195. Thank you! |
Just as a reminder, here is one way to kill shell processes from within Java... |
Fixed in commit: 8a6fbd9 |
I am browsing the source code. I do not have a rooted phone but I am wondering the AT Command injection output. Can you provide application screenshots ?
The text was updated successfully, but these errors were encountered: