Go to advanced search

by pnaven03
Sat Dec 08, 2018 10:42 am
Forum: General discussion
Topic: How to unbind the rfcom0 serial port
Replies: 0
Views: 144

How to unbind the rfcom0 serial port

Hi Team, I am using raspberry pi 3 and kernel version 4+. My raspberry pi board paired with Bluetooth module (SPP) using shell script and binding with below command "sudo rfcomm bind /dev/rfcomm0 00:xx:xx:xx:xx:xx 1". Opening the device using open call,read write using read/write system call. How to...
by pnaven03
Fri Dec 07, 2018 4:56 pm
Forum: General discussion
Topic: How to read Bluetooth spp profile data in raspberry pi
Replies: 4
Views: 426

Re: How to read Bluetooth spp profile data in raspberry pi

Dear Douglas, Many thanks for my previous reply, Currently facing Bluetooth device pairing issues. My raspberry pi board should be pair with mac address without enter pass key. First scanning and list all mac address after user selected name search mac address, based on this mac address pairing my d...
by pnaven03
Fri Dec 07, 2018 4:38 pm
Forum: Beginners
Topic: How to pair new blue tooth device using script ?
Replies: 3
Views: 364

Re: How to pair new blue tooth device using script ?

Please any one help on this issues.
by pnaven03
Tue Dec 04, 2018 11:18 am
Forum: General discussion
Topic: How to restart my application when kill in run time ?
Replies: 1
Views: 337

How to restart my application when kill in run time ?

Hi Team, I am using raspberry pi 3 board and kernel version 4+. currently i have tow issues. In my board running two applications one qt application and one more application. Issues 1 : Some times my application not running in boot time, how to fix this issues ? Issues 2 : When application killed or...
by pnaven03
Mon Dec 03, 2018 1:20 pm
Forum: Beginners
Topic: How to pair new blue tooth device using script ?
Replies: 3
Views: 364

Re: How to pair new blue tooth device using script ?

Dear Dirks, Thanks for the reply, Exactly what is not working ? Some times not pairing device, After closing my GUI showing passkey conformation window. After power ON raspberry pi board run with QT. scanning near by devices, find the mac address of required device. same mac address passing command ...
by pnaven03
Mon Dec 03, 2018 4:09 am
Forum: Beginners
Topic: How to pair new blue tooth device using script ?
Replies: 3
Views: 364

How to pair new blue tooth device using script ?

Hi Team, I am using raspberry pi 3 and using Linux raspberrypi 4.9.35-v7+ kernel version. How to pair new device Bluetooth device(SPP) using shell , python script or c code. My board running with QT GUI and, I am able to scan the device but how to pair device without password. When pair device i nee...
by pnaven03
Mon Dec 03, 2018 4:04 am
Forum: General discussion
Topic: How to read Bluetooth spp profile data in raspberry pi
Replies: 4
Views: 426

Re: How to read Bluetooth spp profile data in raspberry pi

Dear Douglas,

Thanks for the reply,

I am able to read data from device.
by pnaven03
Tue Nov 20, 2018 9:02 am
Forum: General discussion
Topic: How to read Bluetooth spp profile data in raspberry pi
Replies: 4
Views: 426

Re: How to read Bluetooth spp profile data in raspberry pi

Please any one help on this issues
by pnaven03
Thu Nov 15, 2018 9:39 am
Forum: General discussion
Topic: How to read Bluetooth spp profile data in raspberry pi
Replies: 4
Views: 426

How to read Bluetooth spp profile data in raspberry pi

Hi Team, I am using raspberry pi 3 and Bluetooth device this device running with SPP protocol. How to connect this Bluetooth device to raspberry pi 3 ? How to read data bluetooth device data (SPP) ? I am using below steps to connect and read data but not working as expected sudo bluetoothctl -a scan...
by pnaven03
Mon Oct 15, 2018 1:34 pm
Forum: General discussion
Topic: How to read vibrate sensor data using wiringPI
Replies: 4
Views: 259

Re: How to read vibrate sensor data using wiringPI

Thanks for the reply. We are using below sensors : https://www.amazon.in/REES52-Vibration-Sensitivity-Adjustable-Arduino/dp/B07GXKWQSH/ref=sr_1_26?s=industrial&ie=UTF8&qid=1538496613&sr=1-26&keywords=vibration+sensor https://www.rhydolabz.com/robotics-robotic-sensors-c-155_163/qtr1a-reflectance-sens...
by pnaven03
Mon Oct 15, 2018 12:20 pm
Forum: General discussion
Topic: How to read vibrate sensor data using wiringPI
Replies: 4
Views: 259

How to read vibrate sensor data using wiringPI

Hi Team,

We are connected REES52 and qtr1 reflect sensor to raspberry pi. How to read data from sensor using wiringPI library.
Please provide any links if available.
by pnaven03
Fri Oct 12, 2018 2:21 pm
Forum: C/C++
Topic: compilation error in raspberry pi 3
Replies: 4
Views: 1878

Re: compilation error in raspberry pi 3

Hi Paeryn,

Thanks for the reply,

Two libraries compile same time not possible ?
by pnaven03
Fri Oct 12, 2018 1:13 pm
Forum: C/C++
Topic: compilation error in raspberry pi 3
Replies: 4
Views: 1878

compilation error in raspberry pi 3

Hi Team, We are using tow library files bcm2835 and WiringPI. Source code is not compiling please help on this issues. Error log: In file included from main.c:7:0: /usr/local/include/wiringPi.h:256:21: error: conflicting types for ‘bcm2835_delayMicroseconds’ extern void delayMicroseconds (unsigned i...
by pnaven03
Fri Oct 12, 2018 9:51 am
Forum: General discussion
Topic: How to convert adc voltage to PPM in MQ sensor
Replies: 2
Views: 335

How to convert adc voltage to PPM in MQ sensor

Hi Team,

I am using raspberry pi 3 board and connected adc device (mcp3008) using SPI0 bus. We are able to adc data from sensor. How to convert this adc voltage to PPM, Please provide me formula or links.

Regards,
Nv
by pnaven03
Fri Oct 05, 2018 1:21 pm
Forum: General discussion
Topic: Unable to create rfcomm in device file system (Bluetooth)
Replies: 3
Views: 408

Re: Unable to create rfcomm in device file system (Bluetooth)

Thank you so much for reply, My configuration : [email protected]:~ $ bluetoothctl [NEW] Controller B8:27:EB:A9:CF:CA raspberrypi [default] [NEW] Device 38:A4:ED:5A:71:88 Redmi [bluetooth]# power on Changing power on succeeded [bluetooth]# discoverable on Changing discoverable on succeeded [CHG] Contro...
by pnaven03
Fri Oct 05, 2018 6:16 am
Forum: General discussion
Topic: Unable to create rfcomm in device file system (Bluetooth)
Replies: 3
Views: 408

Unable to create rfcomm in device file system (Bluetooth)

Hi Team, Unable to create rfcomm in device file system. I am using below link to configure on board Bluetooth in raspberry pi 3. My requirement is to read Bluetooth device data from port (/dev/rfcomm). I want send data or recive data using SPP protocol using c code. Please provide me any links avail...
by pnaven03
Mon Oct 01, 2018 12:11 pm
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Many thanks for continuous help,

after clear_on_exit value change zero issues resolved, I am trying to turn on single led without while loop in latest source code.
by pnaven03
Mon Oct 01, 2018 11:17 am
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Yes i know GPIO and Neopixel total different concepts. Suppose I am trying to turn ON second LED by using your code, change to ON state but immediately going to off state. when turn ON it should be ON state and when change to OFF state should be going to off state. Added below code is it coorect ? i...
by pnaven03
Mon Oct 01, 2018 9:45 am
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Thanks for the reply, Source code working for complete rows,columns. My another requirement is to turn ON and OFF randomly with individual LED's (2,4,8,10 etc). If i need to trurn ON third led after some times agian turn off, this led turn ON and OFF not depends on time. What is the exact code to tu...
by pnaven03
Fri Sep 28, 2018 2:40 pm
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Thanks for the reply,

This will work individual LED's operation or only rows and columns ?

This LED's continuous ON/OFF single LED's,Rows etc and changing to different colors in while loop this will work ?
by pnaven03
Fri Sep 28, 2018 12:32 pm
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

I am able to turning ON & OFF individual Led's, This procedure correct ? while(1) { matrix_setLed(0,0,30,0,0); matrix_setLed(1,0,0,30,0); matrix_setLed(2,0,30,30,0); matrix_setLed(3,0,30,0,30); sleep(1); matrix_setLed(0,0,0,0,0); matrix_setLed(1,0,0,0,0); matrix_setLed(2,0,0,0,0); matrix_setLed(3,0,...
by pnaven03
Fri Sep 28, 2018 4:33 am
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Thanks for the reply, 1. Added matrix_render() and ws2811_render in matrix_setLed function, is it correct method ? void matrix_setLed(int x, int y, unsigned char R, unsigned char G , unsigned char B) { int ret=0; if(y >= HEIGHT) return; // has to be smaller than the number of row if(x >= WIDTH) retu...
by pnaven03
Thu Sep 27, 2018 12:41 pm
Forum: C/C++
Topic: How to control SK6812 LED's using C source code
Replies: 32
Views: 5926

Re: How to control SK6812 LED's using C source code

Thanks for the reply, matrix_setLed(x,y,R,G,B) x: column position (which led in your strip) y: row position ( which strip) R,G,B: Red,Green and Blue intensity from 0 to 255; 1. Suppose RED color led turn off means simply send to 0 value is it correct ? matrix_setLed(0,1,R,0,0); //RED color LED turn ...
by pnaven03
Thu Sep 27, 2018 5:16 am
Forum: General discussion
Topic: Unable to read adc data from SPI0 bus in raspberry pi 3
Replies: 10
Views: 822

Re: Unable to read adc data from SPI0 bus in raspberry pi 3

Dear danjperron, Appreciate for your technical support and Thank you so much. Now am able to read three mcp3008 chips data from SPI1. 1. Enable in SPI1 in config file dtoverlay=spi1-3cs 2. Modified source code char * mcp3008DeviceName[NB_MCP3008]={"/dev/spidev1.0",\ "/dev/spidev1.1",\ "/dev/spidev1....
by pnaven03
Wed Sep 26, 2018 2:52 pm
Forum: General discussion
Topic: Unable to read adc data from SPI0 bus in raspberry pi 3
Replies: 10
Views: 822

Re: Unable to read adc data from SPI0 bus in raspberry pi 3

Thanks for the reply, My ADC read function : int readADC(uint8_t chan) { char buf[] = {start, (0x08|chan)<<4,end}; char readBuf[3]={0}; bcm2835_spi_transfernb(buf,readBuf,3); return ((int)readBuf[1] & 0x03) << 8 | (int) readBuf[2]; } float volts_adc(int adc) { return (float)adc*3.3f/1023.0f; } I am ...

Go to advanced search