Hello Jens,
"When we use Peer-Peer WIFI alone for data transfer between two devices, the following happens in both the devices
- Peer publication is ok. (netServiceDidPublish triggered)
- Devices are able to identify each other(netServiceBrowser:didFindService:moreComing:(BOOL)moreServicesComing triggered and peers identified)
- IP Address of the peers is resolved successfully(netServiceDidResolveAddress triggered and the correct sync URL http://deviceA:5601/ReplDB is also formed)
- But the kCBLReplicationChangeNotification is not posted. Notification observer is available in the code. This does not work for Push/Pull Replication.
On Sep 30, 2014, at 12:38 AM, Phaniteja N <phanitej...@gmail.com> wrote:
- IP Address of the peers is resolved successfully(netServiceDidResolveAddress triggered and the correct sync URL http://deviceA:5601/ReplDB is also formed)
- But the kCBLReplicationChangeNotification is not posted.
On Oct 10, 2014, at 1:56 AM, Phaniteja N <phanitej...@gmail.com> wrote:1) When we get a IPV6 address while resolving ,replication is not successful ,We get Sync Logs as below
<Warning>: Sync: CBL_Puller[http://fe80::68c8:cfff:fef9:3856:54571/cabincrew]: Reachability state = <fe80>:unreachable (00), suspended=0
Is it possible in some way to convert IPV6 address to IPV4 address or else retrieve the IPV4 address always?
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: SyncURL=http://GREEN.local.:49680/Appdb
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBLReplication[from http://GREEN.local.:49680/Appdb]: offline, progress = 0 / 0, err: (null)
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Replication is created with URL: http://GREEN.local.:49680/Appdb
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBL_Puller[http://GREEN.local.:49680/Appdb] STARTING ...
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBL_Puller[http://GREEN.local.:49680/Appdb]: Reachability state = <GREEN.local.>:reachable (20002), suspended=0
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBL_Puller[http://GREEN.local.:49680/Appdb]: Going online
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBL_Puller[http://GREEN.local.:49680/Appdb] Progress: set active = 1
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: SyncVerbose: CBL_Puller[http://GREEN.local.:49680/Appdb]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: SyncVerbose: CBL_Puller[http://GREEN.local.:49680/Appdb]: GET _local/f51417be40be320c42ec828d9467c3ac249b593e
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: SyncVerbose: CBL_Puller[http://GREEN.local.:49680/Appdb]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: Sync: CBLReplication[from http://GREEN.local.:49680/Appdb]: active, progress = 0 / 0, err: (null)
Oct 20 13:52:23 BLUE P2PApp.0.0.27jun[143] <Warning>: completedChangesCount: 0 changesCount: 0
Without Bluetooth(Peer-Peer Wifi)
Oct 20 12:44:13 GREEN P2PApp.0.0.27jun[157] <Warning>: SyncURL=http://BLUE.local.:49375/Appdb
Oct 20 12:44:13 GREEN P2PApp.0.0.27jun[157] <Warning>: Sync: CBLReplication[from http://BLUE.local.:49375/Appdb]: offline, progress = 0 / 0, err: (null)
Oct 20 12:44:13 GREEN P2PApp.0.0.27jun[157] <Warning>: Replication is created with URL: http://BLUE.local.:49375/Appdb
Oct 20 12:44:13 GREEN P2PApp.0.0.27jun[157] <Warning>: Sync: CBL_Puller[http://BLUE.local.:49375/Appdb] STARTING ...
Oct 20 12:44:13 GREEN wifid[40] <Notice>: WiFi:[435482053.228573]: WiFiVirtualInterfaceStartResolvingService: called key = <data> 0x055f73713233c00c000c01, value = <data> 0x04424c5545c027
Oct 20 12:44:13 GREEN P2PApp.0.0.27jun[157] <Warning>: Sync: CBL_Puller[http://BLUE.local.:49375/Appdb]: Reachability state = <BLUE.local.>:unreachable (00), suspended=0
On Oct 20, 2014, at 2:47 AM, Lakshminarayana Achar <brl...@gmail.com> wrote:Looks like a reachability issue.Is there something that can be done from our end or your end to fix the issue ?
On Oct 20, 2014, at 2:47 AM, Lakshminarayana Achar <brl...@gmail.com> wrote:Looks like a reachability issue.Is there something that can be done from our end or your end to fix the issue ?Weird. Yes, from the logs it looks like the SCNetworkReachability API isn't behaving correctly with WiFi. Which is the opposite of what I'd expect; since IP-over-Bluetooth is unusual, I'd expect that to be the configuration with problems.
Jens,We have tried syncing by removing the preflight connection check.We get a request timeout error as in the logs as below.
2014-11-12 17:43:46.909 SampleApp.0.0.27jun[877:139523] Sync: CBLReplication[from http://DeviceA.local.:58640/sampledb]: offline, progress = 0 / 0, err: (null)
2014-11-12 17:43:46.910 SampleApp.0.0.27jun[877:139523] Replication is created with URL: http://DeviceA.local.:58640/sampledb
2014-11-12 17:43:46.921 SampleApp.0.0.27jun[877:140111] Sync: CBL_Puller[http://DeviceA.local.:58640/sampledb] STARTING ...
2014-11-12 17:43:46.950 SampleApp.0.0.27jun[877:140111] Sync: CBL_Puller[http://DeviceA.local.:58640/sampledb]: Going online
2014-11-12 17:43:46.957 SampleApp.0.0.27jun[877:140111] Sync: CBL_Puller[http://DeviceA.local.:58640/sampledb] Progress: set active = 1
2014-11-12 17:43:46.963 SampleApp.0.0.27jun[877:140111] SyncVerbose: CBL_Puller[http://DeviceA.local.:58640/sampledb]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
2014-11-12 17:43:46.966 SampleApp.0.0.27jun[877:140111] SyncVerbose: CBL_Puller[http://DeviceA.local.:58640/sampledb]: GET _local/528a42c96259b10800762a87d9090da7cc844253
2014-11-12 17:43:46.999 SampleApp.0.0.27jun[877:140111] SyncVerbose: CBL_Puller[http://DeviceA.local.:58640/sampledb]: postProgressChanged (0/0, active=1 (batch=0, net=1), online=1)
2014-11-12 17:43:47.006 SampleApp.0.0.27jun[877:139523] Sync: CBLReplication[from http://DeviceA.local.:58640/sampledb]: active, progress = 0 / 0, err: (null)
2014-11-12 17:44:00.018 SampleApp.0.0.27jun[877:139523] completedChangesCount: 0 changesCount: 0
2014-11-12 17:44:16.496 SampleApp.0.0.27jun[877:139523] DeviceA is stop service
2014-11-12 17:45:00.224 SampleApp.0.0.27jun[877:140111] CBLRemoteJSONRequest[GET http://DeviceA.local.:58640/sampledb/_local/528a42c96259b10800762a87d9090da7cc844253]: Got error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x18263b90 {NSErrorFailingURLStringKey=http://devicea.local.:58640/sampledb/_local/528a42c96259b10800762a87d9090da7cc844253, NSErrorFailingURLKey=http://devicea.local.:58640/sampledb/_local/528a42c96259b10800762a87d9090da7cc844253, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x181c2390 "The request timed out."}
Please advise us on what can be done since P2P bluetooth is unreliable one.
Thanks & Regards
Lakshminarayana Achar B R
Tata Consultancy Services
Cell:- 9940021554
Mailto: br.a...@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty. IT Services
Business Solutions
Consulting
____________________________________________
-----Jens Alfke <jens....@gmail.com> wrote: -----To: mobile-c...@googlegroups.com
From: Jens Alfke <jens....@gmail.com>
Date: 11/12/2014 11:07PM
Cc: phani...@tcs.com, rubha.s...@tcs.com, br.a...@tcs.com, kanya...@tcs.com
Subject: Re: CBLReplication with only Peer-Peer WiFi and no Bluetooth
On Monday, October 20, 2014 11:11:50 AM UTC-7, Jens Alfke wrote:On Oct 20, 2014, at 2:47 AM, Lakshminarayana Achar <brl...@gmail.com> wrote:Looks like a reachability issue.Is there something that can be done from our end or your end to fix the issue ?Weird. Yes, from the logs it looks like the SCNetworkReachability API isn't behaving correctly with WiFi. Which is the opposite of what I'd expect; since IP-over-Bluetooth is unusual, I'd expect that to be the configuration with problems.
After some discussion with Quinn of Apple's developer tech support, it sounds like (a) SCNetworkReachability isn't returning the correct results in the case of an ad-hoc (no base station) WiFi network, and (b) one shouldn't rely on reachability to preflight making a connection — instead we should try to connect regardless.It looks like despite all this discussion no bug report has been filed, so I'll create one now.—Jens
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you