Bluetooth synchronization with logic

Discussions about syncing data via Bluetooth, Dropbox, FTP, and using CSWeb
Post Reply
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Bluetooth synchronization with logic

Post by Boni »

Hello every body !!
I have a problem with Bluetooth Synchronization with Logic (CSPro 7.4), I have written a logic to synchronize files between two Android devices, the logic is correct. But when I try to synchronize, whether it was with "Put" or "Get", I get a error message of server side. Client side seems to have no problem.
Attachments
sync_bluetooth_errmsg.PNG
sync_bluetooth_errmsg.PNG (9.57 KiB) Viewed 3813 times
Sincerely yours !
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Bluetooth synchronization with logic

Post by josh »

As with most sync errors, please post the sync.log file so that we can see the error details. In this case, post the log from the both devices.
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Bluetooth synchronization with logic

Post by Boni »

Dear Josh, here are the two sync.log files
Thanks.
Attachments
sync (Server).log
Server Sync.log file
(6.26 KiB) Downloaded 179 times
sync (Client).log
Client sync.log file
(3.96 KiB) Downloaded 169 times
Sincerely yours !
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Bluetooth synchronization with logic

Post by josh »

Unfortunately I don't see any helpful information in the sync.log files this time. Would it be possible to send us your app so we can try to reproduce the problem here?
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Bluetooth synchronization with logic

Post by Boni »

Okay I will send you m'y project.
Thanks!
Sincerely yours !
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Bluetooth synchronization with logic

Post by Boni »

Boni wrote: July 21st, 2020, 3:06 pm Okay I will send you m'y project.
Thanks!
I just sent my project, but I receive this notification. I now hope for the moderator approval
Sincerely yours !
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Bluetooth synchronization with logic

Post by josh »

If the attachment is large you may need to put it in Dropbox or Google Drive and send the link.
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Bluetooth synchronization with logic

Post by Boni »

Sorry I didn't pay attention, my attachment was very large (over 11MB) I have csdbe files hanging in the folder, I removed some, but the compressed file still remains heavy, I have the impression that my compression software cannot compress the csdbe files.
I sent the dropbox link, I hope it will work this time.
Thanks.
Sincerely yours !
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Bluetooth synchronization with logic

Post by josh »

I got the application. The problem is that your logic does not call syncdisconnect() after the calls to syncconnect() and syncfile(). When you are done transferring files and data you must call syncdisconnect() otherwise the server device is still waiting for more data. After waiting 10 seconds without receiving any requests the server will show that error. The error message is not very helpful. We will replace it with a better one in the next release.
Boni
Posts: 75
Joined: February 25th, 2020, 5:53 am

Re: Bluetooth synchronization with logic

Post by Boni »

I understood my error, thank you dear Josh !!!
Sincerely yours !
Post Reply