Sending Linux commands over serial connection to an Android device












1















I have a question about being able to send Linux commands over a serial connection to an Android device.



I have heard of PuTTY and tried to use it, but I am ultimately lost with it.



I was in the Linux shell of the Android device and could type, reboot and the device would reboot. The Android device has a virtual serial connection, and I have been able to connect to it using PuTTY, but I don't know where to go after that.



Also, I cannot use ADB because the phone will not fully boot, and the ADB setting is on.










share|improve this question

























  • "I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

    – sawdust
    Dec 23 '13 at 9:52
















1















I have a question about being able to send Linux commands over a serial connection to an Android device.



I have heard of PuTTY and tried to use it, but I am ultimately lost with it.



I was in the Linux shell of the Android device and could type, reboot and the device would reboot. The Android device has a virtual serial connection, and I have been able to connect to it using PuTTY, but I don't know where to go after that.



Also, I cannot use ADB because the phone will not fully boot, and the ADB setting is on.










share|improve this question

























  • "I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

    – sawdust
    Dec 23 '13 at 9:52














1












1








1








I have a question about being able to send Linux commands over a serial connection to an Android device.



I have heard of PuTTY and tried to use it, but I am ultimately lost with it.



I was in the Linux shell of the Android device and could type, reboot and the device would reboot. The Android device has a virtual serial connection, and I have been able to connect to it using PuTTY, but I don't know where to go after that.



Also, I cannot use ADB because the phone will not fully boot, and the ADB setting is on.










share|improve this question
















I have a question about being able to send Linux commands over a serial connection to an Android device.



I have heard of PuTTY and tried to use it, but I am ultimately lost with it.



I was in the Linux shell of the Android device and could type, reboot and the device would reboot. The Android device has a virtual serial connection, and I have been able to connect to it using PuTTY, but I don't know where to go after that.



Also, I cannot use ADB because the phone will not fully boot, and the ADB setting is on.







linux shell android serial-port






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 11 '14 at 2:19









karel

9,25293138




9,25293138










asked Dec 23 '13 at 0:20









Willster419Willster419

63




63













  • "I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

    – sawdust
    Dec 23 '13 at 9:52



















  • "I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

    – sawdust
    Dec 23 '13 at 9:52

















"I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

– sawdust
Dec 23 '13 at 9:52





"I don't know where to go after that." -- Seems like you have a working serial link to the console. The next step is you need to learn shell commands. Try typing help or busybox. Putty is a terminal emulation program; it's the program that is running on the PC side of the link so that you can use the serial port + keyboard + monitor as a "terminal" or console.

– sawdust
Dec 23 '13 at 9:52










2 Answers
2






active

oldest

votes


















0














If you are communicating over a serial connection I think you would use AT commands rather than 'linux commands.'



This post discusses something similar if my understanding is correct.






share|improve this answer
























  • AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

    – sawdust
    Dec 23 '13 at 9:41



















0














Turns out that the connection I had was for the phone modem, not to the system. There seems to be (on many qualcomm phones) a modem connection and then the adb connection for the android system.



So it ended up being a dead end.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f692021%2fsending-linux-commands-over-serial-connection-to-an-android-device%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    If you are communicating over a serial connection I think you would use AT commands rather than 'linux commands.'



    This post discusses something similar if my understanding is correct.






    share|improve this answer
























    • AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

      – sawdust
      Dec 23 '13 at 9:41
















    0














    If you are communicating over a serial connection I think you would use AT commands rather than 'linux commands.'



    This post discusses something similar if my understanding is correct.






    share|improve this answer
























    • AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

      – sawdust
      Dec 23 '13 at 9:41














    0












    0








    0







    If you are communicating over a serial connection I think you would use AT commands rather than 'linux commands.'



    This post discusses something similar if my understanding is correct.






    share|improve this answer













    If you are communicating over a serial connection I think you would use AT commands rather than 'linux commands.'



    This post discusses something similar if my understanding is correct.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Dec 23 '13 at 2:01









    jreddjredd

    73837




    73837













    • AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

      – sawdust
      Dec 23 '13 at 9:41



















    • AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

      – sawdust
      Dec 23 '13 at 9:41

















    AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

    – sawdust
    Dec 23 '13 at 9:41





    AT commands are for controlling a phone modem or a communications device that emulates a phone modem because it has a data (or transparent) mode and a command mode. A simple serial link like what the OP has does not have a modem. Hence there is no device to process any AT commands.

    – sawdust
    Dec 23 '13 at 9:41













    0














    Turns out that the connection I had was for the phone modem, not to the system. There seems to be (on many qualcomm phones) a modem connection and then the adb connection for the android system.



    So it ended up being a dead end.






    share|improve this answer




























      0














      Turns out that the connection I had was for the phone modem, not to the system. There seems to be (on many qualcomm phones) a modem connection and then the adb connection for the android system.



      So it ended up being a dead end.






      share|improve this answer


























        0












        0








        0







        Turns out that the connection I had was for the phone modem, not to the system. There seems to be (on many qualcomm phones) a modem connection and then the adb connection for the android system.



        So it ended up being a dead end.






        share|improve this answer













        Turns out that the connection I had was for the phone modem, not to the system. There seems to be (on many qualcomm phones) a modem connection and then the adb connection for the android system.



        So it ended up being a dead end.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 3 at 15:48









        Willster419Willster419

        63




        63






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f692021%2fsending-linux-commands-over-serial-connection-to-an-android-device%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            "Incorrect syntax near the keyword 'ON'. (on update cascade, on delete cascade,)

            Alcedinidae

            RAC Tourist Trophy