Teamviewer for reasons best known to itself treats me as a commercial user so I can no longer use it. Someone recommended Tiger VNC instead. I need to connect from my laptop to an Imac. The laptop is dual boot running Ubuntu 19.04 on one partition and Windows 10 pro on the other. I am a total newbie to Tiger VNC so have no clue how to do this properly and get it to work. Any advice would be greatly appreciated
↧
[ubuntu] Tiger VNC HOW TO?
↧
[xubuntu] systemd dns 127.0.0.53
is there any benefit using 127.0.0.53 and not an external dns server??
↧
↧
[ubuntu] Network Packeter
How about someone modifying the kernel network packeter.
So all IP's other than 127 0 0 1 can only access a users home \internet dir..
The internet dir would have:
\cookies
\webpages
\paswords
\webform completion
\downloads
Outside IP's could access the web browser .. to display audio and video..
Then you have a totally secure computer...
You could have *.conf list of IP's that can access the root login...
So all IP's other than 127 0 0 1 can only access a users home \internet dir..
The internet dir would have:
\cookies
\webpages
\paswords
\webform completion
\downloads
Outside IP's could access the web browser .. to display audio and video..
Then you have a totally secure computer...
You could have *.conf list of IP's that can access the root login...
↧
Unreliable bluetooth connectivity
I have an XPS 15 9530 with Ubuntu 19.04, and just acquired a couple of bluetooth devices: a bluetooth speaker (JBL Flip 4), and a headset (Samsung earbuds).
I have been able to pair and use both bluetooth devices, and from both my Android phone and my PC.
From my phone I have no issue whatsoever. However, when in my PC I disconnect the bluetooth device or disable bluetooth, most of the times I am unable to use bluetooth again at all. The bluetooth window in the System settings just freezes and doesn't list any device, no matter how long I wait. Sometimes after a number of minutes I get the message "No Bluetooth Found - Plug in a dongle to use Bluetooth".
Restarting the bluetooth service (sudo service bluetooth restart) doesn't do anything.
This behaviour persist until I restart my PC. But I cannot keep restarting my PC the whole time...
Is there a way to debug what the issue may be? I would like to be able to switch bluetooth on and off, and connect and disconnect devices.
I have been able to pair and use both bluetooth devices, and from both my Android phone and my PC.
From my phone I have no issue whatsoever. However, when in my PC I disconnect the bluetooth device or disable bluetooth, most of the times I am unable to use bluetooth again at all. The bluetooth window in the System settings just freezes and doesn't list any device, no matter how long I wait. Sometimes after a number of minutes I get the message "No Bluetooth Found - Plug in a dongle to use Bluetooth".
Restarting the bluetooth service (sudo service bluetooth restart) doesn't do anything.
This behaviour persist until I restart my PC. But I cannot keep restarting my PC the whole time...
Is there a way to debug what the issue may be? I would like to be able to switch bluetooth on and off, and connect and disconnect devices.
↧
Bittorrent port forwarding with iptables
I have a qBittorrent client on a device that is connected to another(which has a public ip) using OpenVPN, and I am trying to forward port 6881. The port is open(nmap shows it as open) but there is no traffic, and the client reports 0 DHT nodes. This is the map with the network interfaces.
Internet <- (venet0) host (tun0) <- (tun0) client
host venet0 ip: 193.148.69.152
host tun0 ip: 10.9.8.1
client run0 ip: 10.9.8.3
host iptables:
client iptables:
I can't figure out what's missing, since NAT is set up and the port is open.
Internet <- (venet0) host (tun0) <- (tun0) client
host venet0 ip: 193.148.69.152
host tun0 ip: 10.9.8.1
client run0 ip: 10.9.8.3
host iptables:
Code:
# iptables -nvL
Chain INPUT (policy ACCEPT 56 packets, 2938 bytes)
pkts bytes target prot opt in out source destination
21926 7250K ACCEPT all -- venet0 * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
Chain FORWARD (policy ACCEPT 3 packets, 156 bytes)
pkts bytes target prot opt in out source destination
8 384 ACCEPT tcp -- venet0 tun0 0.0.0.0/0 10.9.8.3 tcp dpt:6881
2 56 ACCEPT udp -- venet0 tun0 0.0.0.0/0 10.9.8.3 udp dpt:6881
Chain OUTPUT (policy ACCEPT 2281 packets, 188K bytes)
pkts bytes target prot opt in out source destination
# iptables -nvL -t nat
Chain PREROUTING (policy ACCEPT 136 packets, 8452 bytes)
pkts bytes target prot opt in out source destination
8 368 DNAT tcp -- venet0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6881 to:10.9.8.3
13 364 DNAT udp -- venet0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:6881 to:10.9.8.3
Chain POSTROUTING (policy ACCEPT 31 packets, 1999 bytes)
pkts bytes target prot opt in out source destination
6 280 SNAT tcp -- * tun0 0.0.0.0/0 10.9.8.3 tcp dpt:6881 to:10.9.8.1
15 420 SNAT udp -- * tun0 0.0.0.0/0 10.9.8.3 udp dpt:6881 to:10.9.8.1
Chain OUTPUT (policy ACCEPT 31 packets, 1999 bytes)
pkts bytes target prot opt in out source destination
Code:
# iptables -nvL
Chain INPUT (policy ACCEPT 1269K packets, 1117M bytes)
pkts bytes target prot opt in out source destination
58 2696 ACCEPT tcp -- tun0 * 0.0.0.0/0 0.0.0.0/0 tcp dpt:6881
19 532 ACCEPT udp -- tun0 * 0.0.0.0/0 0.0.0.0/0 udp dpt:6881
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
26M 24G ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate RELATED,ESTABLISHED
83832 7218K ACCEPT all -- br0 * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 854K packets, 161M bytes)
pkts bytes target prot opt in out source destination
↧
↧
Unabled to pair with Bluetooth devices
I am unable to pair my computer with any bluetooth device. When I go to pair a new device, I am able to discover bluetooth devices that are ready to pair. When selecting a device to pair with on the computer side it says that it has successfully paired with it but the device doesn't also acknowledge that it is paired. Furthermore, the device doesn't show up as an audio option in pulse audio. I'm not sure how to fix this problem but here is some information about my comptuer and stuff:
Operating System: Ubuntu 16.04
Computer: Lenovo X1 Carbon Gen 3
Operating System: Ubuntu 16.04
Computer: Lenovo X1 Carbon Gen 3
↧
dhcp server and iptables
hi everyone,
I hope this doesnt sound like a stupid question... I had this idea for my network...
I have a server which I protect by using IPtables. It basically rejects everything outside a specific range. Lets say, it only allows communication with those with IP of xxx.xxx.xxx.1 to 10...
There are a lot of other computers in the network outside this range. If I use this same server as the DHCP server for the network... Will it work to give IP addressess to computers outside this 1 to 10 range, or will the IP tables prevent those computers from getting their IPs?
I hope the question doesnt sound so vague.
I ask this because I am trying to see if I can save some money and setup resources by using the same server for DHCP and another application, and still provide security to the other application through IP tables. Thank you.
I hope this doesnt sound like a stupid question... I had this idea for my network...
I have a server which I protect by using IPtables. It basically rejects everything outside a specific range. Lets say, it only allows communication with those with IP of xxx.xxx.xxx.1 to 10...
There are a lot of other computers in the network outside this range. If I use this same server as the DHCP server for the network... Will it work to give IP addressess to computers outside this 1 to 10 range, or will the IP tables prevent those computers from getting their IPs?
I hope the question doesnt sound so vague.
I ask this because I am trying to see if I can save some money and setup resources by using the same server for DHCP and another application, and still provide security to the other application through IP tables. Thank you.
↧
Newb Needs Help with Mounting a NAS drive
I REALLY REALLY want to like and learn how to use linux but it's so frustrating. NOTHING is intuitive for a new user. I followed a video to mount a network share and cannot get the mount to run correctly. Hopefully someone will take pity on me and help me figure this out.
The error message is:
root@chad-OptiPlex-790:~# mount -a
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The NAS I'm trying to add is an older one so I don't know if there are version issues I'm not aware of or what. Please let me know what else I can share on here to resolve this issue. Thank you in advance!!!
The error message is:
root@chad-OptiPlex-790:~# mount -a
mount error(22): Invalid argument
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
The NAS I'm trying to add is an older one so I don't know if there are version issues I'm not aware of or what. Please let me know what else I can share on here to resolve this issue. Thank you in advance!!!
↧
[server] PXE on Openmediavault
So I'm using Openmediavault to setup a PXE host server, but the plugin required some settings in DHCP in another plugin (Dnsmasq), that doesn't seem to be able to set anything.
The place where I get stuck is Error network: The value 'NULL' is not a string. and Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; systemctl start 'dnsmasq' 2>&1' with exit code '1': Job for dnsmasq.service failed because the control process exited with error code.
I asked the community but never got a response, so I tried entering things in manually using instructions form https://www.ostechnix.com/how-to-ins...-ubuntu-16-04/ as a guide, but had an error when sudo cp -fr install/netboot/* /var/lib/tftpboot/ that install isn't a command.
Also I'm replacing every IP with 10.0.0.228, not sure if that's correct.
Anyway, I'm a bit of a noob, in networking... so any help would be much appreciated.
The place where I get stuck is Error network: The value 'NULL' is not a string. and Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; systemctl start 'dnsmasq' 2>&1' with exit code '1': Job for dnsmasq.service failed because the control process exited with error code.
I asked the community but never got a response, so I tried entering things in manually using instructions form https://www.ostechnix.com/how-to-ins...-ubuntu-16-04/ as a guide, but had an error when sudo cp -fr install/netboot/* /var/lib/tftpboot/ that install isn't a command.
Also I'm replacing every IP with 10.0.0.228, not sure if that's correct.
Anyway, I'm a bit of a noob, in networking... so any help would be much appreciated.
↧
↧
[SOLVED] Network problem in Windows 10 on a dual-boot Ubuntu 19.04 system
Hi, this is to report a problem with Ubuntu 19.04 :
My computer motherboard is an Asus Sabertooth X58 (integrated Realtek Ethernet controller)
My system has a dual-boot : Windows 10 and Ubuntu 19.04, with the last GRUB version
After using Ubuntu, Windows 10 cannot access the Ethernet network, and says "a cable is disconnected"
This happens after a restart from Ubuntu and also after a Power Off and start from the physical Power On switch.
It seems that Ubuntu 19.04 does not "release" the Ethernet controller totally
This problem did not exist with the previous Ubuntu versions
The only workaround is to switch off the computer Power Supply block or to pull off the power cord before using Windows 10
Regards
My computer motherboard is an Asus Sabertooth X58 (integrated Realtek Ethernet controller)
My system has a dual-boot : Windows 10 and Ubuntu 19.04, with the last GRUB version
After using Ubuntu, Windows 10 cannot access the Ethernet network, and says "a cable is disconnected"
This happens after a restart from Ubuntu and also after a Power Off and start from the physical Power On switch.
It seems that Ubuntu 19.04 does not "release" the Ethernet controller totally
This problem did not exist with the previous Ubuntu versions
The only workaround is to switch off the computer Power Supply block or to pull off the power cord before using Windows 10
Regards
↧
loosing wifi after upgrade to Ubuntu 19.04
After upgrading to Ubuntu 19.04 I have problems with the wifi. 8 out of 10 times the computer start up the wifi is not working. That means, the computer connects to the access-point (as far as I can see), but I have no internet and the wifi-icon in top of the screen shows a '?'. If I turn off wifi and then turn it on again, everything works perfect again.
This happens, as I said, 8 out of 10 times when I turn the computer on, and it also (some times, some times not) loose the wifi while it is on and I am not using it for a couple of minutes.
It started after upgrading to Ubuntu 19.04, and before that everything was rock stable.
Anyone have a clue about what could be wrong?
This happens, as I said, 8 out of 10 times when I turn the computer on, and it also (some times, some times not) loose the wifi while it is on and I am not using it for a couple of minutes.
It started after upgrading to Ubuntu 19.04, and before that everything was rock stable.
Anyone have a clue about what could be wrong?
↧
[all variants] systemd-netplan putting ISP DNS in addition to DNS declared in /etc/netplan
I don't want my ISP DNS and search domain in my DNS list, but systemd-networkd with netplan insists. Network Manager does not do this.
I have tried both static definition and DHCP definition with DNS declared like this
<code>
nameservers:
addresses: [10.0.0.110, ,1.1.1.1,1.0.0.1,
"2606:4700:4700::1111","
2606:4700:4700::1001"]
</code>
I find that my ISPs DNS IP adrdresses appear (along with these definned) in /etc/resolv.conf and in the output of systemd-resolve --status. This is definitely not what I want.
Is this expected behavior? Since Network Manager does not do this, I wonder if this is an error in netplan/systemd.
I have tried both static definition and DHCP definition with DNS declared like this
<code>
nameservers:
addresses: [10.0.0.110, ,1.1.1.1,1.0.0.1,
"2606:4700:4700::1111","
2606:4700:4700::1001"]
</code>
I find that my ISPs DNS IP adrdresses appear (along with these definned) in /etc/resolv.conf and in the output of systemd-resolve --status. This is definitely not what I want.
Is this expected behavior? Since Network Manager does not do this, I wonder if this is an error in netplan/systemd.
↧
New Install Packet Loss On Home Network
Hello,
I recently installed Ubuntu 16.04 on a old HP 2000 notebook.
Unfortunately, now the wifi does not work on the laptop, but only over my home network. I used it over wifi at my library and it worked fine. (0% packet loss when pinging google, web browsing worked fine.) But on my home network I get 50-80% packet loss when pinging google or the router.
I don't think the issue is my router because my windows computer and android phone both connect fine (0% packet loss to google over windows). Another thing that complicates my trouble shooting is that I don't have easy access to the physical router, since I get my wifi from a guy in the dorm next to mine.
I also am super new to linux, this computer is the first one I've downloaded it on. So I apologize in advance if anything I've said is unclear or I've made obvious mistakes.
I recently installed Ubuntu 16.04 on a old HP 2000 notebook.
Unfortunately, now the wifi does not work on the laptop, but only over my home network. I used it over wifi at my library and it worked fine. (0% packet loss when pinging google, web browsing worked fine.) But on my home network I get 50-80% packet loss when pinging google or the router.
I don't think the issue is my router because my windows computer and android phone both connect fine (0% packet loss to google over windows). Another thing that complicates my trouble shooting is that I don't have easy access to the physical router, since I get my wifi from a guy in the dorm next to mine.
I also am super new to linux, this computer is the first one I've downloaded it on. So I apologize in advance if anything I've said is unclear or I've made obvious mistakes.
↧
↧
ipw2100 wifi dies after a day
Hello! I have M3N old notebook with:
01:04.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
After a day I got no wifi and have to reboot the machine. dmesg saying:
Full dmesg at https://pastebin.com/tsy94Whm
01:04.0 Network controller: Intel Corporation PRO/Wireless LAN 2100 3B Mini PCI Adapter (rev 04)
After a day I got no wifi and have to reboot the machine. dmesg saying:
Code:
_event_max_sample_rate to 50500
[ 854.831374] ipw2100: Fatal interrupt. Scheduling firmware restart.
[11369.911655] perf: interrupt took too long (4943 > 4936), lowering kernel.perf_event_max_sample_rate to 40250
[11414.173675] ipw2100: Fatal interrupt. Scheduling firmware restart.
[12674.408121] ipw2100: Fatal interrupt. Scheduling firmware restart.
[12696.356501] IPv6: ADDRCONF(NETDEV_UP): wlp1s4: link is not ready
[12714.775024] IPv6: ADDRCONF(NETDEV_CHANGE): wlp1s4: link becomes ready
[42894.542004] PM: suspend entry (deep)
...
[60361.664075] ipw2100: exit - failed to send CARD_DISABLE command
[60361.664091] ipw2100: exit - failed to send CARD_DISABLE command
[60998.447665] ipw2100: Fatal interrupt. Scheduling firmware restart.
[64162.784086] INFO: task wpa_supplicant:670 blocked for more than 120 seconds.
[64162.784097] Tainted: G S C E 4.15.0-51-generic #55-Ubuntu
[64162.784100] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[64162.784103] wpa_supplicant D 0 670 1 0x00000000
[64162.784108] Call Trace:
[64162.784125] __schedule+0x295/0x8d0
[64162.784129] schedule+0x26/0x70
[64162.784132] schedule_preempt_disabled+0xd/0x10
...
[64189.132057] ipw2100: wlp1s4: Firmware did not initialize.
[64189.132061] ipw2100: wlp1s4: Failed to start the firmware.
Full dmesg at https://pastebin.com/tsy94Whm
↧
Wifi extremely slow as compared to Windows on the same machine
My desktop has both Windows and Ubuntu 18.04. I was able to get wifi working on Ubuntu but the speed test results are very slow compared to the speeds I get when running in Windows. The particular driver I am using is Realtek RTL8822BE. Here is the results of the wireless-info script: https://paste.ubuntu.com/p/vMXwfWDsKr/
Can anyone help me determine why I am seeing slow speeds on Ubuntu?
Can anyone help me determine why I am seeing slow speeds on Ubuntu?
↧
[ubuntu] DLNA proxy
Hi,
I'm using mini-DLNA to access my multimedia, but at the moment it's having to jump through some hoops that I was hoping to simplify.
Is there a way to have a DLNA (uPnP) server receive the broadcast traffic on the same subnet that it is on, but to advertise the TCP address of the server as being on a different subnet? I.e. have it act as a proxy that redirects to another server? Failing that, is there any actual proxy software that can redirect the traffic (other than the firewall)?
At the moment, my server is having to access the data source via SMB, as it is on a different subnet, but that has additional networking overheads involved. I had wanted to redirect the traffic from the multimedia client to the other subnet so that it streamed the content direct, but the mDNS proxy on my firewall just doesn't behave well.
Regards,
Rob.
I'm using mini-DLNA to access my multimedia, but at the moment it's having to jump through some hoops that I was hoping to simplify.
Is there a way to have a DLNA (uPnP) server receive the broadcast traffic on the same subnet that it is on, but to advertise the TCP address of the server as being on a different subnet? I.e. have it act as a proxy that redirects to another server? Failing that, is there any actual proxy software that can redirect the traffic (other than the firewall)?
At the moment, my server is having to access the data source via SMB, as it is on a different subnet, but that has additional networking overheads involved. I had wanted to redirect the traffic from the multimedia client to the other subnet so that it streamed the content direct, but the mDNS proxy on my firewall just doesn't behave well.
Regards,
Rob.
↧
Network stopped working
Wifi & Ethernet Has been working solidly for previous 2 years.
Today my WiFi has stopped working
Ubuntu 17.10
Kernel 4.14.10
Atheros ar9485 wifi
Realtek rtl8x gige ethernet
$service network-manager status all
shows rfkill wifi hw radio enabled
$ifconfig
shows enp2so lo
$iwconfig
shows enp2so lo
$lshw
shows realtek no atheros
$lspci
shows realtek no atheros
$ cat /etc/network/interfaces
auto lo
auto lo inet loopback
If I plug an rj45 into my ethernet port - networking comes alive. It just
appears to be a problem with the wifi im not even sure if it is a
software problem.
Nothing obvious in dmesg
As far as im aware ive made no changes to my system. Ive been using a text editor solidly for the previous 2 weeks
Any ideas?
Today my WiFi has stopped working
Ubuntu 17.10
Kernel 4.14.10
Atheros ar9485 wifi
Realtek rtl8x gige ethernet
$service network-manager status all
shows rfkill wifi hw radio enabled
$ifconfig
shows enp2so lo
$iwconfig
shows enp2so lo
$lshw
shows realtek no atheros
$lspci
shows realtek no atheros
$ cat /etc/network/interfaces
auto lo
auto lo inet loopback
If I plug an rj45 into my ethernet port - networking comes alive. It just
appears to be a problem with the wifi im not even sure if it is a
software problem.
Nothing obvious in dmesg
As far as im aware ive made no changes to my system. Ive been using a text editor solidly for the previous 2 weeks
Any ideas?
↧
↧
[ubuntu] Ubuntu 18.04: Host name changes from FQDN to PQDN in DNS
We are running Ubuntu 18.04 LTS with networking configured by NetPlan. The network has a Windows DHCP server and a Windows DNS server.
The Ubuntu 18.04 machine uses this NetPlan cfg file to obtain a dynamic IP address:
$ cat /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg
network:
ethernets:
ens4:
addresses: []
dhcp4: true
version: 2
The partially qualified host name is ubuntusim01. After reboot the FQDN in DNS is:
ubuntusim01.uktm.<snip>.com
which is correct. But the host name stored in DNS sometimes spontaneously changes to the PQDN:
ubuntusim01.
(interrogated by nslookup) and then other systems lose connectivity to the Ubuntu machine.
It is possible that this change happens when the DHCP lease expires, but we are not sure of that.
This problem does not occur with our Ubuntu 16.04 LTS servers (which use NetworkManager).
Is this a known bug, or is our configuration wrong in some way?
The Ubuntu 18.04 machine uses this NetPlan cfg file to obtain a dynamic IP address:
$ cat /etc/cloud/cloud.cfg.d/50-curtin-networking.cfg
network:
ethernets:
ens4:
addresses: []
dhcp4: true
version: 2
The partially qualified host name is ubuntusim01. After reboot the FQDN in DNS is:
ubuntusim01.uktm.<snip>.com
which is correct. But the host name stored in DNS sometimes spontaneously changes to the PQDN:
ubuntusim01.
(interrogated by nslookup) and then other systems lose connectivity to the Ubuntu machine.
It is possible that this change happens when the DHCP lease expires, but we are not sure of that.
This problem does not occur with our Ubuntu 16.04 LTS servers (which use NetworkManager).
Is this a known bug, or is our configuration wrong in some way?
↧
Straange certificates problem
Hi,
I have very strange certificate problem.
I tried all of the suggested solution in internet, but nothing worked for me.
I try to install sublime-text but get certificate problem:
I try curl:
I try wget, it works:
I tried following suggested solution already but nothing worked for me:
>sudo apt-get install --reinstall ca-certificates
>sudo update-ca-certificates
>sudo aptitude update
>sudo apt-get install --reinstall openssl libssl1.0.0 libssl1.1 libssl-dev
I have very strange certificate problem.
I tried all of the suggested solution in internet, but nothing worked for me.
I try to install sublime-text but get certificate problem:
Code:
>sudo aptitude install sublime-text
The following NEW packages will be installed:
sublime-text
0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 9.846 kB of archives. After unpacking 34,8 MB will be used.
Err https://download.sublimetext.com apt/stable/ sublime-text 3207
Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 104.236.0.104 443]
0% [Working]W: https://download.sublimetext.com/files/sublime-text_build-3207_amd64.deb: No system certificates available. Try installing ca-certificates.
E: Failed to fetch https://download.sublimetext.com/files/sublime-text_build-3207_amd64.deb: Certificate verification failed: The certificate is NOT trusted. The certificate issuer is unknown. Could not handshake: Error in the certificate verification. [IP: 104.236.0.104 443]
E: Unable to fetch some packages; try '-o APT::Get::Fix-Missing=true' to continue with missing packages
Code:
>curl https://www.google.com
curl: (77) error setting certificate verify locations:
CAfile: /etc/ssl/certs/ca-certificates.crt
CApath: /etc/ssl/certs
I try wget, it works:
Code:
>wget https://www.google.com
--2019-06-17 14:55:26-- https://www.google.com/
Resolving www.google.com (www.google.com)... 172.217.16.100, 2a00:1450:400d:808::2004
Connecting to www.google.com (www.google.com)|172.217.16.100|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘index.html’
index.html [ <=> ] 11,11K --.-KB/s in 0,009s
2019-06-17 14:55:26 (1,17 MB/s) - ‘index.html’ saved [11381]
>sudo apt-get install --reinstall ca-certificates
>sudo update-ca-certificates
>sudo aptitude update
>sudo apt-get install --reinstall openssl libssl1.0.0 libssl1.1 libssl-dev
↧
[ubuntu] Bluez not reporting BLE advertisement values accurately via d-bus
I am trying to read temperature values from a BLE Temperature sensor (bluemaestro tempo disc)
I am developing in c++ using intel's tinyb library which interfaces with bluez via d-bus. This application parses the advertisement packet for the manufacturer data which provides the real-time temperature reading as well.
Relevant code snippet:
This was properly giving the correct relatime values until now. But suddenly it started printing a single constant reading each time the application is restarted. Whatever temperature value is first read at application startup is repeated throughout the application runtime. I used the tempo utility app to verify that the sensor is actually reporting the correct realtime values.
I am not able to recollect any changes to the system that could have lead to this issue.
I tried re-installing the OS (Ubuntu 18.04.1), tried multiple version of bluez ( 5.48 which is pre-installed,5.39 and 5.37) but the issue is still there.
I also changed the advertisement frequency in the bluemaestro device.
Then I used "dbus-monitor" to check the packets reported by bluez using the following command:
The output of the command showed that the values being reported by bluez are constant:
How to resolve this ?
I am developing in c++ using intel's tinyb library which interfaces with bluez via d-bus. This application parses the advertisement packet for the manufacturer data which provides the real-time temperature reading as well.
Relevant code snippet:
Code:
using Iter = std::vector<std::unique_ptr<tinyb::BluetoothDevice>>::const_iterator;
while (true)
{
for (Iter it = sensor_tag_array.begin(); it != sensor_tag_array.end(); ++it)
{
std::string address_ = (*it)->get_address();
std::map<uint16_t, std::vector<uint8_t>> mfg__ = (*it)->get_manufacturer_data();
for (auto it : mfg__)
{
if (it.second.empty())
logger_->error("{}, {} :Empty mfg for : {}", __FILENAME__, __func__, bleMap[address_].sensor_name);
else
{
if (it.second.front() == 23)
{
battery_lvl = it.second[1];
first_byte = it.second[6];
second_byte = it.second[7];
temperature = convert_to_actual(first_byte, second_byte) / 10.0;
std::cout << "\nTemperature is for : " << bleMap[address_].sensor_name << " : " << temperature << "\n";
}
}
}
}
I am not able to recollect any changes to the system that could have lead to this issue.
I tried re-installing the OS (Ubuntu 18.04.1), tried multiple version of bluez ( 5.48 which is pre-installed,5.39 and 5.37) but the issue is still there.
I also changed the advertisement frequency in the bluemaestro device.
Then I used "dbus-monitor" to check the packets reported by bluez using the following command:
Code:
sudo dbus-monitor --system "type='signal',sender='org.bluez'"
Code:
signal time=1560761344.707933 sender=:1.10 -> destination=(null destination) serial=92 path=/org/bluez/hci0/dev_E7_6A_2D_XX_XX_XX; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.Device1"
array [
dict entry(
string "ManufacturerData"
variant array [
dict entry(
uint16 307
variant array of bytes [
01 b9 03 93 00 d8 01 f8 01 0f 02 b2 00 ed 02 76 01 08
02 a3 00 00 00 00 00
]
)
]
)
]
array [
]
signal time=1560761345.837498 sender=:1.10 -> destination=(null destination) serial=93 path=/org/bluez/hci0/dev_E7_6A_2D_XX_XX_XX; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.Device1"
array [
dict entry(
string "ManufacturerData"
variant array [
dict entry(
uint16 307
variant array of bytes [
01 b9 03 93 00 d8 01 f8 01 0f 02 b2 00 ed 02 76 01 08
02 a3 00 00 00 00 00
]
)
]
)
]
array [
]
signal time=1560761346.974815 sender=:1.10 -> destination=(null destination) serial=94 path=/org/bluez/hci0/dev_E7_6A_2D_XX_XX_XX; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.Device1"
array [
dict entry(
string "ManufacturerData"
variant array [
dict entry(
uint16 307
variant array of bytes [
01 b9 03 93 00 d8 01 f8 01 0f 02 b2 00 ed 02 76 01 08
02 a3 00 00 00 00 00
]
)
]
)
]
array [
]
signal time=1560761348.099627 sender=:1.10 -> destination=(null destination) serial=96 path=/org/bluez/hci0/dev_E7_6A_2D_XX_XX_XX; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.bluez.Device1"
array [
dict entry(
string "ManufacturerData"
variant array [
dict entry(
uint16 307
variant array of bytes [
01 b9 03 93 00 d8 01 f8 01 0f 02 b2 00 ed 02 76 01 08
02 a3 00 00 00 00 00
]
)
]
)
]
array [
]
How to resolve this ?
↧