Go to advanced search

by HallMark
Thu Nov 09, 2017 2:37 am
Forum: Python
Topic: Write to BLE Charactristic
Replies: 3
Views: 2680

Re: Write to BLE Charactristic

It's difficult to see what you're doing from those code fragments (What is k? What is device?). Here's some Python 3 code I wrote for writing to a characteristic: https://www.raspberrypi.org/forums/viewtopic.php?f=28&t=193923&p=1214901#p1214901 Sorry it was my typo it is BLE_device only. And k is f...
by HallMark
Wed Nov 08, 2017 6:05 am
Forum: Python
Topic: Write to BLE Charactristic
Replies: 3
Views: 2680

Write to BLE Charactristic

I am using bluepy on Pi to read and write to BLE charactristic device= Peripheral() device.connect(address,addresstype,0) This gets connect with specific BLE device services = device.getServices() characteristics = device.getCharacteristics() I am able to scan my charactristic for k in characteristi...
by HallMark
Tue Oct 03, 2017 1:24 pm
Forum: General programming discussion
Topic: Sync Time from Internet
Replies: 20
Views: 57635

Re: Sync Time from Internet

I would assume (Dougie, correct me if I'm wrong) that the service will automatically update the time as soon as an internet connection is available (as the service can then contact the NTP server to request the current time). I see ! I am using Dongle with very limited data plan. So I think need so...
by HallMark
Tue Oct 03, 2017 11:15 am
Forum: General programming discussion
Topic: Sync Time from Internet
Replies: 20
Views: 57635

Re: Sync Time from Internet

I just did one test [email protected]:~/test $ date Mon 3 Oct 17:45:18 UTC 2017 [email protected]:~/test $ sudo timedatectl set-time '2017-10-02 21:59' [email protected]:~/test $ date Mon 2 Oct 21:59:01 UTC 2017 [email protected]:~/test $ timedatectl Local time: Mon 2017-10-02 21:59:09 UTC Universal time: Mon 2...
by HallMark
Tue Oct 03, 2017 7:54 am
Forum: General programming discussion
Topic: Sync Time from Internet
Replies: 20
Views: 57635

Re: Sync Time from Internet

DougieLawson wrote:
Tue Oct 03, 2017 6:18 am
That's precisely what "network time" defines.

Start by running timedatectl with no parameters.
Ok, I see. So just timedatectl command is going to get time from the GSM network and set as Rpi's time - Correct?
by HallMark
Tue Oct 03, 2017 1:40 am
Forum: General programming discussion
Topic: Sync Time from Internet
Replies: 20
Views: 57635

Re: Sync Time from Internet

DougieLawson wrote:
Mon Oct 02, 2017 8:59 pm
There's network time support in a standard Stretch install.

sudo timedatectl set-time '2017-10-02 21:59'
will reset the clock if the automatic sync isn't enabled.
Network time? I just want to sync time with some time server
by HallMark
Mon Oct 02, 2017 1:38 pm
Forum: General programming discussion
Topic: Sync Time from Internet
Replies: 20
Views: 57635

Sync Time from Internet

Hello, I am using 4G LTE USB Stick with my raspberry Pi. Which usually remains OFF only. Once every 2-4 days I turn it ON for task to do and at the same time when I turn on Stick internet I want to sync my time from internet. What is best way to get this working? I am using Python to record my data ...
by HallMark
Fri Sep 29, 2017 11:20 am
Forum: Beginners
Topic: Installing 3G modem
Replies: 5
Views: 20424

Re: Installing 3G modem

2 years later but google had you indexed; so I'll reply to this post as I just solved my issue. Install the required packages sudo apt-get update sudo apt-get install ppp usb-modeswitch wvdial Identify your modem $ lsusb Bus 001 Device 009: ID 05c6:1000 Qualcomm, Inc. Mass Storage Device Switch the...

Go to advanced search