Activesync

Everything else that doesn't fall into one of the other PB categories.
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Activesync

Post by Xombie »

Has anyone messed with creating an activesync type of app?

For example, if I have a simple address list on the PC and on a cellphone/pda thing and I want to update the phone from the PC list or the PC from the phone list.

Is this a possibility for PB? And if so, does anyone have any pointers for where I should begin?

Thanks!
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

I don't know if this helps you or if its the answer of what you are looking for, but you can use the webserver code in the PB examples to build your own WAP server, its something easy to do since its only a few additions to do (MIME types per example).

I guess that this is the natural solution for communicate a mobile device with a computer.

I code my own wap server that i use to shutdown, restart, etc. my PC from my mobile phone.
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

I'm not sure I follow you.

I'm just hoping to create a simple PB address book and be able to sync the addresses back and forth from the phone. Well, mainly from the PB address book program to the phone.

Does that still fit in what you're talking about?
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

for this I would think about a Three-DataTable solution.
each unit (PC & Phone) holds it's own DataTable.

when they connect, a third table is created, and all the DataSets are copied to the third table.
if there are DataSets with the same identifier, the newer version is chosen.

after that combining process, the third table is copied in whole to the
both units to overwrite the old tables and is deleted itself afterwards.
oh... and have a nice day.
ricardo
Addict
Addict
Posts: 2438
Joined: Fri Apr 25, 2003 7:06 pm
Location: Argentina

Post by ricardo »

Xombie wrote:I'm not sure I follow you.

I'm just hoping to create a simple PB address book and be able to sync the addresses back and forth from the phone. Well, mainly from the PB address book program to the phone.

Does that still fit in what you're talking about?
Oops. sorry i understood that you where trying to build an app to communicate your mobile with your PC :oops:
User avatar
blueb
Addict
Addict
Posts: 1118
Joined: Sat Apr 26, 2003 2:15 pm
Location: Cuernavaca, Mexico

Post by blueb »

I'd probably have the database with a "Date/Time created" field so that
when you try to syncronize, it will add records that don't have the same
date and time thus making it easier to transfer from one machine to the other.

Code: Select all

Structure AddressBook 
    ContactID.l 
    LastName.s
    FirstName.s
    DateCreated.l         <-------------------
EndStructure
--blueb
- It was too lonely at the top.

System : PB 6.21(x64) and Win 11 Pro (x64)
Hardware: AMD Ryzen 9 5900X w/64 gigs Ram, AMD RX 6950 XT Graphics w/16gigs Mem
Xombie
Addict
Addict
Posts: 898
Joined: Thu Jul 01, 2004 2:51 am
Location: Tacoma, WA
Contact:

Post by Xombie »

Thanks for the answers everyone. However, I'm confident in how to handle the database part and the PB program itself.

The only thing I don't know how to do is the actually communication with the cellphone. The guy I'm putting this together for has Windows Mobile on a Motorola Q phone. I'm assuming he's using Outlook for storing the addresses but I'm going to double-check with him.

So I know how to do everything except query the phone for it's address list. I'd hoped for a pointer or two or a link on some good information as I've never messed with this area before.

Sorry for the confusion on that.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4792
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

I believe that microsoft has a free sdk for windows mobile that may help you there. My daughter's boyfriend mentioned it yesterday, I just have to find the link.

He said it contains information on the talking to a mobile section, comms etc.
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply