Go to advanced search

by gauravsharma0190
Fri Aug 09, 2019 9:24 am
Forum: Advanced users
Topic: Which Wifi/Bluetooth chip does the RPi 3 model B integrates?
Replies: 14
Views: 14027

Re: Which Wifi/Bluetooth chip does the RPi 3 model B integrates?

Just curious about what you said of adding an own GPIO expander. If doing so the firmware would need to control it? At least for CAM GPIOs. Or can e.g. the LAN_RUN pin or the Act LED be controlled directly from Linux? Act LED can certainly be controlled direct from Linux, and it is on B+ and 2 (GPI...
by gauravsharma0190
Tue Aug 06, 2019 12:05 pm
Forum: Networking and servers
Topic: wireless stack
Replies: 0
Views: 84

wireless stack

Hello there, i want to implement DSRC on the raspberry board as i know DSRC( dedicated short range communication) uses frequency range 5.84-5.96 GHz. But i am thinking if i can do it by enabling dual mode by 5GHz on pi board. This can be done via manipulation of PHy and MAc layer changes in the wire...
by gauravsharma0190
Fri Jul 05, 2019 9:33 am
Forum: Networking and servers
Topic: Connection with clilent to server like esp32
Replies: 0
Views: 98

Connection with clilent to server like esp32

Hello there, i am working on raspberry pi's as a client and server. i have done my coding on python. my idea of project is , a server is fixed used as a hot spot and client is movable. i used some scripts to show the client present in the network. but now, i want to see it in the client side also li...
by gauravsharma0190
Mon Jun 24, 2019 4:55 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

yes it works
Thank you
by gauravsharma0190
Fri Jun 21, 2019 5:51 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

hello thank you for your reply. for eg: i created a json data DATA ={ "vehicle_id" : "78a4ff53' } if i want to send it to the client side using the s.sendall(DATA.encode('utf-8') . then should i send it using this please tell me.
by gauravsharma0190
Thu Jun 20, 2019 4:37 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

You mean to say instead of sending a string from client using the .send() function i send the json data to the server and on the server side receive it via recv() function.
by gauravsharma0190
Wed Jun 19, 2019 9:53 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

Thank you sir I need a small help from you. Actually i have two code of server and client in TCP/UDP communication , and i am communicating through it mean message to the client and server. Now what i want , just to send the json data to the client from the server and from server to the client. How ...
by gauravsharma0190
Tue Jun 18, 2019 10:26 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

i am installing the Flask onto my Pi board and follows the link http://flask.pocoo.org/docs/1.0/installation/#installation now i activated the venv service and then pip install Flask but there is error i don't understand what it this Exception: Traceback (most recent call last): File "/home/pi/mypro...
by gauravsharma0190
Tue Jun 18, 2019 9:04 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

Re: json data from server to client

hello scooty i read the flask library . i just read the http and REST API from which i can use to send and receive the json data using the get and post request. Here i write a code in python import json, requests data = { 'user' : 'gaurav' 'var' : '7892' } payload = json.dumps(data) url = ' ' r = re...
by gauravsharma0190
Tue Jun 18, 2019 4:50 am
Forum: Networking and servers
Topic: json data from server to client
Replies: 12
Views: 794

json data from server to client

hello there, i am working in client server model where i want to send some json data from server to the client. using socket programming and by reading the json format like json.dump and json.dumps() how can i do it. please help. i have seen some examples but this only shows the saving of json data ...
by gauravsharma0190
Wed Jan 23, 2019 5:52 am
Forum: Networking and servers
Topic: Docker+iotivity
Replies: 0
Views: 176

Docker+iotivity

hello all, i am doing a resource discovery with 2-3 pi boards with docker and iotivity installed in it. As all my pi boards are connected with same wi-fi network. I also installed iotivity docker image. https://wiki.iotivity.org/docker and follow all the steps. but when i see the docker ps-a. there ...
by gauravsharma0190
Wed Feb 15, 2017 6:41 am
Forum: Beginners
Topic: Static IP Address on Raspbian Jessie [SOLVED]
Replies: 47
Views: 207637

Re: Static IP Address on Raspbian Jessie [SOLVED]

Hello everyone
i just do the same
go to sudo nano /etc/dhcdcd.conf
and add
interface eth0
static ip_address=192.168.137.1/24
static routers=192.168.137.0
static domain_name_servers=192.168.137.0
and reboot this
but does't any effect
i am using pixel.
by gauravsharma0190
Mon Feb 13, 2017 4:40 pm
Forum: C/C++
Topic: MCP23017 code using C without WiringPi
Replies: 3
Views: 918

MCP23017 code using C without WiringPi

hello there i want to Interface mcp23017 without wiringPi because i added it with QT creator. So i wrote the code and the code works fine when write on MCP23017 IC but when comes to read the pin or port i can't understand how to read the pin For eg. GPIOA GPA7 as input port and if i give it as high ...
by gauravsharma0190
Thu Dec 01, 2016 5:15 am
Forum: C/C++
Topic: MCP23008 and Rpi in C
Replies: 16
Views: 2534

Re: MCP23008 and Rpi in C

Also consider the wiringpi library. It has support for the MCP23008 and MCP23016 as well as a few other port expanders, LCD displays, etc. the op said as few libraries as possible so I didn't contribute earlier, but fwiw, doing this in the wiringPi world goes like: #include <stdpio.h> #include <mcp...
by gauravsharma0190
Thu Dec 01, 2016 5:11 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1361

Re: 24lc1025 memory interfacing

In the first byte R/W must be setup properly (giving different address) of read and write because of the properties of the I2C bus. I think before you go further you should deeply study I2C bus specification and and the datasheet. Unfortunatelly I can not help you further because I did not use I2Cp...
by gauravsharma0190
Wed Nov 30, 2016 9:16 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I²C
Replies: 10
Views: 115665

Re: I²C

hey there i am using 24lc1025 eeprom ic which has address 0x50.
i used i2ctool and i2cset as
i2cset -y 1 0x50 0x00 0x00 0x21 i
and read it as i2cget -y 1 0x50 0x00
or using i2cget -y 1 0x50
but always seen 0xff.
when i seen resister usning i2cdump but all address is 0xff
plz give any solution
by gauravsharma0190
Wed Nov 30, 2016 5:50 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1361

Re: 24lc1025 memory interfacing

I never used i2ctools to program memories, however there are some information in the manual pages and the readme files. You can also googling. i worte something using i2cset -y 1 0x50 0x00 0x01 and read using i2cget -y 1 0x50 0x00 but nothing shows expect 0xff.i couldn't understand. here is the doc...
by gauravsharma0190
Tue Nov 29, 2016 11:21 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1361

Re: 24lc1025 memory interfacing

Yes address shoes as 50
now how to start write something on memory using i2ctool
by gauravsharma0190
Tue Nov 29, 2016 9:11 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1361

Re: 24lc1025 memory interfacing

First of all, which I2C port are you using. There are two 0 and 1. 0 has no pull-up resistors! 1 has the resistors but it makes sense to use two other 3k3 pull up. Check whether your I2C bus enabled in raspi-config and you are added to i2c group in /etc/group. If all this are OK you should see your...
by gauravsharma0190
Tue Nov 29, 2016 6:47 am
Forum: C/C++
Topic: 24lc1025 memory interfacing
Replies: 9
Views: 1361

24lc1025 memory interfacing

hello there
i want to interface memory 24lc1025 1mb memory ic to my pi board
anyone has idea code how to use i2c and address in linux.
i am new in linux.
i used i2c tool and see many
address
by gauravsharma0190
Thu Sep 08, 2016 9:14 am
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 31322

Re: Qt with Wiring PI

Hello Gerard0315 , To access the GPIO generally you need root privileges. Find where your compiled program is. Open a terminal, cd to your program location. type:- sudo ./ yourprogname . Regards Not true any more. Add setenv("WIRINGPI_GPIOMEM", "1", 1); to your code and it will run without using su...
by gauravsharma0190
Thu Sep 08, 2016 9:02 am
Forum: C/C++
Topic: Qt with Wiring PI
Replies: 26
Views: 31322

Re: Qt with Wiring PI

void MainWindow::on_Camera_clicked() { QPixmap p("1.jpg"); using namespace cv; using namespace std; wiringPiSetup(); pinMode (0, OUTPUT) ; digitalWrite (0,1) ; ui->label->setPixmap(p); VideoCapture cap(0); // open the default camera cap.set(CV_CAP_PROP_FRAME_WIDTH,620); cap.set(CV_CAP_PROP_FRAME_HEI...
by gauravsharma0190
Fri Jul 29, 2016 9:25 am
Forum: Networking and servers
Topic: PI As web server
Replies: 3
Views: 875

Re: PI As web server

Hello sir i solved the error i installed as python3-flask. now its working. but my code is not working. Here is my code which copied from that link from flask import Flask app = Flask(__name__) @app.route('/') def index(): return 'Hello world' if __name__ == '__main__': app.run(debug=True, host='192...
by gauravsharma0190
Fri Jul 29, 2016 5:53 am
Forum: Networking and servers
Topic: PI As web server
Replies: 3
Views: 875

PI As web server

Hello there, i am new in pi with web server i want to make a web server so i googled it and found the flask is easy way to make server using python so i installed it Here iis the link https://www.raspberrypi.org/learning/python-web-server-with-flask/ Now when i run the code i got error no module fou...
by gauravsharma0190
Tue Apr 12, 2016 11:25 am
Forum: General discussion
Topic: Touchscreen Application in Pi
Replies: 1
Views: 513

Touchscreen Application in Pi

Hello folks,
I want to develop a GUI application for GPIO for blink the led.Just i open the app like LED and gui opens.
So can i do it in pi.
Wait for Suggestions.

Go to advanced search