Trouble downgrading to bluez4

This forum is for topics dealing with problems with software specifically in the ARMv7h repo.

Trouble downgrading to bluez4

Postby ziotix » Mon Aug 15, 2016 7:38 am

Hello,

I've installed arch on arm device (RPi3), managed to get everything working for the most part. Inlcuding BT, thanks to this user. But gatttool always hangs when used in non-interactive mode, interactive mode works fine. I've read that downgrading to version 4.101 can fix this so first I attempted:

$this->bbcode_second_pass_code('', '
curl -O http://www.kernel.org/pub/linux/bluetooth/bluez-4.101.tar.gz
tar -xvzf bluez-4.101.tar.gz
')

But attempting to untar that results in error: "gzip: stdin: not in gzip format"
I tried to get around it by issuing "tar -xf" and other versions to no avail (yes, I have xz package installed).

Then I read that the older version of bluez isn't even in AUR but in a mirrored repo under name "bluez4". So I tried:

$this->bbcode_second_pass_code('', '
cd && mkdir -p tmp
wget -O PKGBUILD http://pkgbuild.com/git/aur-mirror.git/tree/bluez4
makepkg
')

Which results in:
$this->bbcode_second_pass_code('', '
/home/user/tmp/PKGBUILD: line 1: !DOCTYPE: No such file or directory
/home/user/tmp/PKGBUILD: line 2: syntax error near unexpected token `newline'
/home/user/tmp/PKGBUILD: line 2: ` "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
==> ERROR: Failed to source /home/aworm/tmp/PKGBUILD
')

Can't build from source or untar, not sure what I'm doing wrong. Any advice on how to downgrade this properly? Thanks
ziotix
 
Posts: 5
Joined: Mon Aug 15, 2016 7:24 am

Re: Trouble downgrading to bluez4

Postby WarheadsSE » Mon Aug 15, 2016 10:34 am

Well, at least for the AUR, you attempted to download the index, and not PKGBUILD.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trouble downgrading to bluez4

Postby ziotix » Mon Aug 15, 2016 4:06 pm

Thanks for the reply, can you give me an idea of how to properly build this from source then? What is the correct url path to the PKGBUILD? I thought http://pkgbuild.com/git/aur-mirror.git/tree/bluez4 was the root directory and specifying "wget -O PKGBUILD" would pull that file.

Thanks in advance
ziotix
 
Posts: 5
Joined: Mon Aug 15, 2016 7:24 am

Re: Trouble downgrading to bluez4

Postby WarheadsSE » Mon Aug 15, 2016 5:38 pm

`-O <filename>` tells it where to the store the results of the HTTP GET request. You didn't point it at the PKGBUILD.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trouble downgrading to bluez4

Postby ziotix » Mon Aug 15, 2016 7:00 pm

Thanks again for the reply. I'm being dense and couldn't get it working even after specifying it in url path "http://pkgbuild.com/git/aur-mirror.git/tree/bluez4/PKGBUILD".

No matter, I got a copy from here and it built/installed nicely after editing the PKGBUILD to include 'armv7h' architecture.

That being said, after all that pain, gatttool still hangs. I really don't want to go back to raspbian, anything we can do to make it work when writing to BT LE devices?

To recreate the issue, ensure BT LE mode is on: "sudo btmgmt le on"

Then just try to write to a device at a known handle: gatttool -b 5D:E9:4B:11:VF:E6 --char-write -a 0x001b -n 00AL0020

I can read, but not write in non-interactive mode using gatttool. Command just hangs. Any ideas?
ziotix
 
Posts: 5
Joined: Mon Aug 15, 2016 7:24 am

Re: Trouble downgrading to bluez4

Postby WarheadsSE » Mon Aug 15, 2016 7:15 pm

Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Trouble downgrading to bluez4

Postby ziotix » Mon Aug 15, 2016 7:31 pm

Yup, I have that already, even linked it in the first post. Only way to get basic BT functioning at all.

It's just this gatttool keeps hanging when trying to write to LE devices, hoping to find a solution to that.

Thanks again
ziotix
 
Posts: 5
Joined: Mon Aug 15, 2016 7:24 am

Re: Trouble downgrading to bluez4

Postby ziotix » Wed Aug 17, 2016 6:49 pm

No other ideas why these gatttool command hangs? :cry:
ziotix
 
Posts: 5
Joined: Mon Aug 15, 2016 7:24 am

Re: Trouble downgrading to bluez4

Postby WarheadsSE » Wed Aug 17, 2016 6:53 pm

Honestly, I have not a clue about BTLE and anything surrounding it.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to ARMv7h

Who is online

Users browsing this forum: No registered users and 14 guests