Currently, I am getting data at NCP which is connected to USB of Raspberry PI. I want to take Hall Effect sensor data to Serial commenucations pin of Raspberry PI. How can get out-data of NCP and take out at Raspberry PI pins with Python Script so that I can get see that data on hyper terminal or parse it to another application.
Write your code in C/C++. Python will be too slow.
Memory map the GPIO registers into user memory space so that you can read/write GPIO directly. See the C code example here https://elinux.org/RPi_GPIO_Code_Samples to see how to do that.
You will need to be sure your reading/writing sequences are not interrupted by the Linux kernel rescheduling your program and doing something else. As it is wont to do. Use 'isolcpus" kernel command line parameter and the "taskset" to run your program: See this thread for details as to how to do that: https://www.raspberrypi.org/forums/view ... p?t=200793
Even then you may not be able to read continuously, reliably at 1MHz.