Go to advanced search

by AnneRanch
Fri May 31, 2019 12:28 pm
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 2381

Re: Programming bluetooth using C++

I have been using bluez 5.50 source compiled for Raspberry Pi 3 B . I did try to crosscompile it ( on X86) but kept running into issues. I ended up building it on RPi and just copy the library to X86. It looks as most of the "DBus" stuff" is unusable. I am not sure I want to find out why or just sta...
by AnneRanch
Thu May 30, 2019 2:29 pm
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 2381

Re: Programming bluetooth using C++

Mogens Yes, I thought that the concept "open source" includes "open documentation". In an essence this has been "just learning experience" and so far with very limited success. What is really interesting NONE of these "resources" have simple - "this is how to connect bluetooth devices IN SOFTWARE "....
by AnneRanch
Thu May 30, 2019 12:21 am
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 2381

Re: Programming bluetooth using C++

Thanks for the reply. I am sure some will not appreciate this, but I am firm believer that "blueZ" is one of the worst NON documented stuff on the net. It seems to be closed to an average programmer as far as finding out things. Since it is now part of the Linux kernel even basic Linux documentation...
by AnneRanch
Sat May 25, 2019 12:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?
Replies: 3
Views: 385

Re: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?

Update My objective is to have bluetooth link between RPi 3b and my PC. Since my PC has no bluetooth devices I am using USB dongle marked V2.0 EDR . That dongle shows up on lsusb [email protected]:~$ lsusb Bus 002 Device 003: ID 0bc2:2322 Seagate RSS LLC Bus 002 Device 002: ID 174c:3074 ASMedia Techno...
by AnneRanch
Fri May 24, 2019 6:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?
Replies: 3
Views: 385

Re: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?

[email protected]:~$ bluetooth bluetooth = on [email protected]:~$ [email protected]:~ $ bluetoothctl Agent registered [bluetooth]# OK, I made a mistake. I have no bluetooth adapters / devices / controllers on my PC . When I scan of / scan on it shows current devices , [email protected]:~ $ bluetoothctl Agent registered [blue...
by AnneRanch
Fri May 24, 2019 4:13 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using "bluetooth" command -how does "terminal" becomes bluetooth device ?
Replies: 3
Views: 385

Using "bluetooth" command -how does "terminal" becomes bluetooth device ?

I am trying to identify bluetooth devices using "bluetooth" command. I am connected to RPi 3B via my PC terminal - ssh [email protected] I can identify the "pi" controller as such , no problem. When I do "devices" I get three. One of them should be the built-in adapter. (Right ? I need controller and an adapte...
by AnneRanch
Thu May 16, 2019 2:17 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

Thanks for the link. I am not into command line code. I started this thread because one of the derivatives of bluez stack is bluetoothctl and I needed a easy way to activate bluetooth on RPi. To be clear - all the "stuff" about bluetooth is derived from bluez. Nothing magic or wrong about that. Sinc...
by AnneRanch
Wed May 15, 2019 8:28 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

By sequence I meant - you cannot get "devices" until you do "scan on". That may sound logical to gurus , but it is not. I just learn that the sample code I started with inquires , that is the term "they" use, about REMOTE bluetooth "devices". In my opinion that is illogical. Why inquire about remote...
by AnneRanch
Wed May 15, 2019 7:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

Thanks. So let me say this - I need to follow a sequence of commands to make for real outputs. Not all the commands are intuitive. It would be nice if such sequence was published somewhere. Then I can "convert" such commands to C++ code where they actually came from anyway. PS is "scan" seems to be ...
by AnneRanch
Wed May 15, 2019 3:48 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

If there are no objections from management , I would like to continue this discussion. After looking at the link posted I tried i to follow the example. It looks looks like this: [email protected]:~ $ bluetoothctl Agent registered [bluetooth]# devices [bluetooth]# I have not found anything ( definition ?) about...
by AnneRanch
Wed May 15, 2019 1:22 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

My initial code is just "cut and paste " and it uses sockets. I just need to prove that the library I have build works. I have had some timing issues when I was just running plain local code, so I believe it has to do with timing on bluetooth. Disabling TCP is different story and I may heed your r a...
by AnneRanch
Tue May 14, 2019 9:58 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

Well , I got my C++ code running and actually detecting device 0. It looks as bluez library is working but there are some strange timing issues. It would make some sense - the results from detecting bluetooth device have to go over WiFi /TCP back to my PC. I do get "socket" connection , but then I l...
by AnneRanch
Tue May 14, 2019 9:27 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

After sudo apt-get install pi-bluetooth I can access bluetoothctl and get ":list" controller. Nice, but being paranoid I need to have some idea what whet wrong. hciconfig -a also works . All without reboot. Last action I did was "exit" from bluetoothctl. That should be legal. Thanks for all the help...
by AnneRanch
Tue May 14, 2019 9:08 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

For correct name for bluetoothctl and documentation use http://man.nicevoid.com/man/man1/bluetoothctl Here is some more info. Apparently this happen before "after" update . I did try to install raspberrypi-sys-mods but it is current. [email protected]:/ $ sudo apt-get install raspberrypi-sys-mods Reading packag...
by AnneRanch
Tue May 14, 2019 8:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

Unit hciuart.service could not be found. My RPi has been dormant for about two months. Been busy trying to crosscompile libray for it and just finished. Started checking my code and it did not detected any bluetooth devices so I went for bluetoothctl. It initially worked just fine . Now it is dead....
by AnneRanch
Tue May 14, 2019 8:04 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Re: Using bluetoothctl to initialize bluetooth

So I have controller , device , adapter and they ALL refer to same "thing". I am not interested in USB bluetooth dongle stuff, just want to have RPI buidl-in bluetooth controller/ device / adapter working. When i had blutoothctl working , now after reboot it does not, it reported "no controller". Pe...
by AnneRanch
Tue May 14, 2019 6:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using bluetoothctl to initialize bluetooth
Replies: 18
Views: 1086

Using bluetoothctl to initialize bluetooth

I was not sure where to post this , but bluetooth MAY be categorized as interface. The basic questions are what is bluetooth controller and what is bluetooth device as far as RPi build-in bluetooth interface /hardware goes? I am enclosing partial output from my attempt of using bluetoothctl to activ...
by AnneRanch
Tue May 14, 2019 3:09 pm
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 2381

Re: Programming bluetooth using C++

Thanks that is what I was looking for - something which has comments in code. I am still searching for how to start C++ to "interact" with RPi hardware. I believe I need to learn how to distinguish between OS "build-in" bluetooth and using the bluez library. I need to go back to RPi configure, I hav...
by AnneRanch
Mon May 13, 2019 6:32 pm
Forum: C/C++
Topic: Programming bluetooth using C++
Replies: 12
Views: 2381

Programming bluetooth using C++

http://people.csail.mit.edu/albert/bluez-intro/c404.html https://lifehacker.com/everything-you-need-to-set-up-bluetooth-on-the-raspberr-1768482065 Edited - link did not show up https://lifehacker.com/everything-you-need-to-set-up-bluetooth-on-the-raspberr-1768482065 I am using the 1st link "scan" s...
by AnneRanch
Thu Mar 14, 2019 5:07 pm
Forum: C/C++
Topic: Installing "bluez" from RPi repository fails
Replies: 0
Views: 381

Installing "bluez" from RPi repository fails

This sample code uses "wget" to "load" bluez-5.37.tar.xz from source cd ~ wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.37.tar.xz tar xvf bluez-5.37.tar.xz I like to do same - load "bluez" from RPi source / repository [email protected]:~ $ sudo wget -P /TEMP_BLUEZ http://raspbian.raspberrypi.org/raspbi...
by AnneRanch
Mon Mar 04, 2019 3:08 pm
Forum: C/C++
Topic: Connect RPi to PC via Bluetooth
Replies: 3
Views: 677

Re: Connect RPi to PC via Bluetooth

I decided to write my own C++ class using "bluez" library.
Have basic understanding how to implement the library.
Found few C code samples, however, if somebody already done it would help.
No need to reinvent the wheel.
Cheers
by AnneRanch
Tue Feb 05, 2019 2:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: High quality touchscreen display
Replies: 23
Views: 2595

Re: High quality touchscreen display

Not to hijack - perhaps better definition of "quality" and "price" would help from OP.
I have not done much search lately , but 'kickstarter 2016'' may be little outdated.
by AnneRanch
Fri Jan 25, 2019 4:59 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: KeDei LCD/TFT module " M-128 " hardware info wanted
Replies: 0
Views: 174

KeDei LCD/TFT module " M-128 " hardware info wanted

There is a KeDei made LCD/TFT module with partial designation "M-128 ". I do not recall the size or any other details , but it has "Raspberry PI " written on the PCB. From pictures I found on web - it has different SPI interface hardware on the PCB - not the same "shift registers" which are on KeDei...
by AnneRanch
Fri Jan 25, 2019 1:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Linux ioctl SPI "discussion" - anybody?
Replies: 11
Views: 900

Re: Linux ioctl SPI "discussion" - anybody?

Update for the benefit of community. I have the ioctl SPI_IOC_MESSAGE C++ code essentially working. Now I have to figure out the actual speed / delays values for each piece of the interface. It looks as time between enabling the ILI9341 WRX signal and pulsing it can be very short, almost too short f...
by AnneRanch
Fri Jan 25, 2019 1:01 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: PCF8591 over I2C - need to read twice?
Replies: 4
Views: 386

Re: PCF8591 over I2C - need to read twice?

I did check this reference https://www.sunfounder.com/learn/lesson ... for-b.html
Some ADC are of "single shot conversion " and some are " continuous conversion" type and some indicate "conversion ready".
The reference does say much about that.
Look into that.

Go to advanced search