Device Drivers for System on Chip (SOC)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I want to read the GPS data from my android phone inside the kernel space. The approach I am taking is to write a device driver for my GPS and request data through it. But unlike external devices I could not find the Vendor Id and device Id of the GPS hardware or the SOC on which it is installed.How to collect the details required for writing the driver?



Edit: I am using Pixel 2, which has Snapdragon 835, msm8995 chipset on which GPS is installed.










share|improve this question









New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
    – dirkt
    Nov 19 at 6:59










  • Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
    – Shashank shekhar Dubey
    Nov 19 at 9:36










  • By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
    – dirkt
    Nov 19 at 10:55










  • I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
    – dirkt
    Nov 19 at 10:57










  • ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
    – Shashank shekhar Dubey
    Nov 19 at 11:34














up vote
0
down vote

favorite












I want to read the GPS data from my android phone inside the kernel space. The approach I am taking is to write a device driver for my GPS and request data through it. But unlike external devices I could not find the Vendor Id and device Id of the GPS hardware or the SOC on which it is installed.How to collect the details required for writing the driver?



Edit: I am using Pixel 2, which has Snapdragon 835, msm8995 chipset on which GPS is installed.










share|improve this question









New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



















  • On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
    – dirkt
    Nov 19 at 6:59










  • Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
    – Shashank shekhar Dubey
    Nov 19 at 9:36










  • By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
    – dirkt
    Nov 19 at 10:55










  • I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
    – dirkt
    Nov 19 at 10:57










  • ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
    – Shashank shekhar Dubey
    Nov 19 at 11:34












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I want to read the GPS data from my android phone inside the kernel space. The approach I am taking is to write a device driver for my GPS and request data through it. But unlike external devices I could not find the Vendor Id and device Id of the GPS hardware or the SOC on which it is installed.How to collect the details required for writing the driver?



Edit: I am using Pixel 2, which has Snapdragon 835, msm8995 chipset on which GPS is installed.










share|improve this question









New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I want to read the GPS data from my android phone inside the kernel space. The approach I am taking is to write a device driver for my GPS and request data through it. But unlike external devices I could not find the Vendor Id and device Id of the GPS hardware or the SOC on which it is installed.How to collect the details required for writing the driver?



Edit: I am using Pixel 2, which has Snapdragon 835, msm8995 chipset on which GPS is installed.







linux-kernel drivers proprietary-drivers






share|improve this question









New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited yesterday









Rui F Ribeiro

38.2k1475123




38.2k1475123






New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Nov 19 at 1:55









Shashank shekhar Dubey

11




11




New contributor




Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Shashank shekhar Dubey is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











  • On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
    – dirkt
    Nov 19 at 6:59










  • Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
    – Shashank shekhar Dubey
    Nov 19 at 9:36










  • By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
    – dirkt
    Nov 19 at 10:55










  • I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
    – dirkt
    Nov 19 at 10:57










  • ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
    – Shashank shekhar Dubey
    Nov 19 at 11:34
















  • On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
    – dirkt
    Nov 19 at 6:59










  • Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
    – Shashank shekhar Dubey
    Nov 19 at 9:36










  • By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
    – dirkt
    Nov 19 at 10:55










  • I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
    – dirkt
    Nov 19 at 10:57










  • ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
    – Shashank shekhar Dubey
    Nov 19 at 11:34















On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
– dirkt
Nov 19 at 6:59




On many phones, the GPS runs on a DSP-coprocessor, and the proprietary "OS" on the coprocessor(s) sends the data to the main CPU on request. So there won't be a specific device, you'll have to reverse engineer the proprietary firmware drivers for your specific brand of phone to find out how to access it. Yes, this situation is bad for people who want to write drivers...
– dirkt
Nov 19 at 6:59












Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
– Shashank shekhar Dubey
Nov 19 at 9:36




Thanks for the reply. One clarification, please. So when you say "there won't be a specific device", are you saying there is no GPS hardware device? As much I understood about the DSP, there must be some hardware which is sensing the signal from the satellites and the DSP coprocessor is manipulating it. In which case this hardware could be the GPS device. Is this correct? Also please check my edited ques. I am using the Pixel 2 in which I believe there is a GPS installed on the chipset. Can you tell something about writing driver for this chipset GPS?
– Shashank shekhar Dubey
Nov 19 at 9:36












By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
– dirkt
Nov 19 at 10:55




By "there won't be a specific device" I mean "you won't find an USB etc. device with vendor/device ID". There will be a GPS antenna (possibly integrated in the Wifi/Mobile antenna), an amplifier block, and a connection to an otherwise inaccessible DSP (likely a Hexagon-type DSP), but you won't see any of those from the main CPU. What you will see from the main CPU is a connection to the DSP, which will use some protocol to query the OS running on the DSP for GPS data. So you have to find out where this connection is, and use it.
– dirkt
Nov 19 at 10:55












I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
– dirkt
Nov 19 at 10:57




I've tried to do the same for my phone (earlier Snapdragon), but it's not easy ... and I didn't invest enough time to find out enough details to use it.
– dirkt
Nov 19 at 10:57












ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
– Shashank shekhar Dubey
Nov 19 at 11:34




ok..i got that. Thanks. I am new to these topics, can you suggest any useful resources for reading about SOC architecture and DSP processor.
– Shashank shekhar Dubey
Nov 19 at 11:34















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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',
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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
);



);






Shashank shekhar Dubey is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482649%2fdevice-drivers-for-system-on-chip-soc%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








Shashank shekhar Dubey is a new contributor. Be nice, and check out our Code of Conduct.









 

draft saved


draft discarded


















Shashank shekhar Dubey is a new contributor. Be nice, and check out our Code of Conduct.












Shashank shekhar Dubey is a new contributor. Be nice, and check out our Code of Conduct.











Shashank shekhar Dubey is a new contributor. Be nice, and check out our Code of Conduct.













 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f482649%2fdevice-drivers-for-system-on-chip-soc%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

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?