Go to advanced search

by himkiet
Mon Nov 20, 2017 9:54 am
Forum: General discussion
Topic: GPS coordinate not updated every time
Replies: 2
Views: 550

GPS coordinate not updated every time

I'm using SIM808 to get GPS coordinates. I'm fetching GPS data every 10 seconds. But I'm getting the same GPS coordinate 2-3 times. AT command (CGPSINF) does not yield a new coordinate on every call, so I get repeatedly the same coordinate. Please help me out why I'm not getting updated GPS coordina...
by himkiet
Sat Apr 29, 2017 1:57 pm
Forum: General discussion
Topic: uninstall paho-mqtt 1.2 python library
Replies: 0
Views: 561

uninstall paho-mqtt 1.2 python library

I am using paho-mqtt 1.2 but time facing problem in connection to my mosquitto server hosted on AWS. I am getting RC value 1 which means "connection refused: unacceptable protocol version" I am able to connect to the server using paho-mqtt 1.1 version. How can I remove or uninstall paho-mqtt 1.2 ver...
by himkiet
Tue Apr 25, 2017 11:39 pm
Forum: General discussion
Topic: how to know if ppp link is established
Replies: 1
Views: 1176

how to know if ppp link is established

I am using sim 800 for internet connection for my pi. For that, i am making a PPP connection but sometimes my script shows "connect script failed" or modem hangs up. Is there any way my python script get to the status of PPP connection so that I can start or restart my GSM accordingly. Thanks in adv...
by himkiet
Wed Apr 12, 2017 8:21 pm
Forum: General discussion
Topic: Call a function when SMS is received
Replies: 0
Views: 211

Call a function when SMS is received

I want to call a function whenever my GSM modem receives a message(SMS). I go through some of the available libraries but all these read already received messages. I want to trigger a specific event(function) on the basis of received message by GSM(sim 900). Please help me out I am also using ppp co...
by himkiet
Mon Apr 03, 2017 10:10 am
Forum: General discussion
Topic: Help needed regarding ppp connection
Replies: 0
Views: 197

Help needed regarding ppp connection

I am working on Raspberry pi on a project related to vehicle tracking. I am using 2G GPRS connectivity to transfer location coordinates to the server. For GPRS connectivity I am building PPP connection using sim 900 https://www.rhydolabz.com/wiki/?p=16325 But I am facing unreliability in PPP connect...
by himkiet
Mon Apr 03, 2017 8:02 am
Forum: General discussion
Topic: Check status of pin if input or output
Replies: 3
Views: 930

Re: Check status of pin if input or output

RPi.GPIO
version = 0.6.3
by himkiet
Mon Apr 03, 2017 7:50 am
Forum: General discussion
Topic: Check status of pin if input or output
Replies: 3
Views: 930

Check status of pin if input or output

I want to know the status of pin whether it is input or output. I tried for the function GPIO.gpio_function(pin) but I got an error -- 'module ' object has no attribute 'gpio_function()' I sourced from-- https://www.raspberrypi.org/forums/viewtopic.php?f=32&t=35926 I also update my GPIO library. If ...
by himkiet
Fri Mar 31, 2017 11:21 am
Forum: General discussion
Topic: Make SD Card Read and Write Protected
Replies: 20
Views: 3460

Re: Make SD Card Read and Write Protected

Is it possible to get some protection if we use on board EMMC storage rather than using an SD card ?
by himkiet
Fri Mar 31, 2017 7:18 am
Forum: General discussion
Topic: Make SD Card Read and Write Protected
Replies: 20
Views: 3460

Re: Make SD Card Read and Write Protected

I am developing a prototype using raspberry pi, If we go for product development or production we need to think how we can secure our code from reading/writing. Looking into this--- http://stackoverflow.com/questions/5593752/who-can-access-a-file-with-octal-permissions-000-on-linux-unix If I changed...
by himkiet
Fri Mar 31, 2017 6:19 am
Forum: General discussion
Topic: Make SD Card Read and Write Protected
Replies: 20
Views: 3460

Re: Make SD Card Read and Write Protected

So, Is there any way we can make only code read/write protected if someone uses RPI for product development?
by himkiet
Fri Mar 31, 2017 6:00 am
Forum: General discussion
Topic: Make SD Card Read and Write Protected
Replies: 20
Views: 3460

Re: Make SD Card Read and Write Protected

Thanks for the reply.
My objective is no one be able to steal my code or make modifications to the code. What should I do to protect my code from stealing and make changes into the code.
by himkiet
Fri Mar 31, 2017 5:30 am
Forum: General discussion
Topic: Make SD Card Read and Write Protected
Replies: 20
Views: 3460

Make SD Card Read and Write Protected

1) I am working on a project on RPI. Once I finished my all stuff, I want my SD card to be properly locked. so that no one is able to read and write on SD card just like we locked other small microcontrollers(avr/pic).Please help to do that. 2) I am generating logs in my code using logging library, ...
by himkiet
Wed Mar 29, 2017 8:07 am
Forum: General discussion
Topic: I2c connection reset
Replies: 2
Views: 935

Re: I2c connection reset

I don't know how to reset it. I have this code on Arduino side #include <Wire.h> #define SLAVE_ADDRESS 0x08 int number = 0; int state = 0; String data =""; void setup() { pinMode(13, OUTPUT); Serial.begin(9600); // start serial for output // initialize i2c as slave Wire.begin(SLAVE_ADDRESS); //Wire....
by himkiet
Wed Mar 29, 2017 7:33 am
Forum: General discussion
Topic: I2c connection reset
Replies: 2
Views: 935

I2c connection reset

I am communicating with RPI as master and two slaves Arduino. I am successfully sending and receiving data from two slaves but sometimes when I read data from any of the slaves I got "ERROR 110 connection timeout error" or"INPUT/OUTPUT error". when I press the reset button on Arduino, my python scri...
by himkiet
Fri Jan 20, 2017 4:47 am
Forum: General discussion
Topic: sim900 ppp script should try to connect for long time
Replies: 2
Views: 730

sim900 ppp script should try to connect for long time

I am using sim900a module to connect to the internet using ppp script. In network constrained area it got "connect script failed". Current ppp script tried 10 times then it exits the connection. I want to retry it for more number of times relatively large. How can i do this?
by himkiet
Wed Jan 18, 2017 1:06 pm
Forum: General discussion
Topic: stop program using keyboard interrupt
Replies: 4
Views: 1616

Re: stop program using keyboard interrupt

I am not running the script in the background and even I am not able to write anything as script start executing on boot every time.
by himkiet
Wed Jan 18, 2017 12:39 pm
Forum: General discussion
Topic: stop program using keyboard interrupt
Replies: 4
Views: 1616

stop program using keyboard interrupt

I am running a python script on boot. I have added it in .bashrc file. The file runs on boot but i am not able to stop the program using keyboard interrupt. If I restart it again start executing it. I don't know how to stop it. The program stop using keyboard interrupt when I execute in terminal but...
by himkiet
Fri Jan 06, 2017 4:44 pm
Forum: General discussion
Topic: unreliability in getting ppp connection
Replies: 2
Views: 581

Re: unreliability in getting ppp connection

The sim 900A module is connected to Tx and Rx pin of raspberry pi, Ground to Ground and Vcc to Vcc of raspberry pi. Port i am using is /dev/ttyAMA0. To create ppp connection i am using this script. https://www.rhydolabz.com/wiki/?p=16325.
by himkiet
Fri Jan 06, 2017 10:07 am
Forum: General discussion
Topic: unreliability in getting ppp connection
Replies: 2
Views: 581

unreliability in getting ppp connection

I am working on a project related to GPS tracking of a vehicle.To transfer GPS location to the server I am using sim900A module(2G module) for accessing connectivity using pppd configuration.Now I have 2 questions-- 1) I am facing unreliability in getting pppd connection. Most of the time log file s...
by himkiet
Tue Jan 03, 2017 7:43 am
Forum: General discussion
Topic: Confirmation of receiving SMS by module
Replies: 1
Views: 612

Confirmation of receiving SMS by module

I am working on a safety project.I need to send SMS to the certain number. I am using sim900 module to send SMS. I am able to send SMS using sim900 module but sometimes my module do not respond to AT commands and even doesn't show any error. Sometimes it got stuck in writing ser.write() command. If ...
by himkiet
Fri Dec 30, 2016 3:39 pm
Forum: General discussion
Topic: Automatic switching between wifi network
Replies: 3
Views: 3040

Re: Automatic switching between wifi network

this works fine.. but I want to switch my wifi network to another network if one network doesn't receive data, I current case pi switch to the different network if one network is unavailable. I am working on a vehicle tracking system, my network doesn't receive data in certain areas, so i want my pi...
by himkiet
Thu Dec 29, 2016 10:32 am
Forum: General discussion
Topic: Automatic switching between wifi network
Replies: 3
Views: 3040

Automatic switching between wifi network

I am using a raspberry pi.I want to automatically switch between two wifi networks if one network got unavailable But in my raspberry pi i have to enter wifi key again to connect to another network.Is there any way my pi remembers wifi key and switch automatically between different wifi network when...
by himkiet
Wed Dec 07, 2016 3:19 pm
Forum: General discussion
Topic: Auto Run Python script which execute GUI on boot
Replies: 0
Views: 395

Auto Run Python script which execute GUI on boot

I want to run a python script which executes a GUI on startup(as pi boots up). But I don't see any GUI on screen but when I open terminal my program executes automatically and GUI appears. Also, my program requires an internet connection on execution but pi connects to wifi later and my script execu...
by himkiet
Sat Nov 19, 2016 5:22 am
Forum: General discussion
Topic: recording audio with audio
Replies: 2
Views: 1064

recording audio with audio

hello all, I want to record audio with video on raspberry pi. I am thinking of two options that i can have-- 1) Using a webcam that is compatible with raspberry pi and can record audio and video both. 2) we can have an audio card interface which will record audio when camera start capturing video. i...

Go to advanced search