Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


FTP Receive Help


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-03-2008, 11:36 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 20
Red face FTP Receive Help

The attached program allows the user to take a inventory count on a handheld and transmits the data back to a FTP server and then the user can then receive new inventory items to count.

The transmit to the FTP server, using the code as provide by Brian Rathbone, works great. The problem I am having is receiving the new data back from the server. I can get the file size from the FTP server, but I can't get the program to start receiving the data.

I don't if there is a command to send to the FTP server to start sending, other than the "RETR" command.

So could someone please offer some in site as to what I am doing wrong. The receive part of the program starts at line number 305.

The program is attached. Along with the data and a pdf file that has some of the barcodes for the product code in the database.

The FTP server I am using is FileZilla.

Thanks before hand for the help

P.S.

The program allow the user to enter inventory items either by the product code, user lookup or they can use a barcode scanner to enter the product code.

The program has been tested on the desktop using a Symbol model ls4004-1000 scanner. The program was tested on handheld, using a Intermec 751c. The Symbol scanner generates a carriage return automatically. The Intermec has an option in the scanner setup to generate a carriage return, via the postamble settings, these are \x0D , (case-sensitive), this will generate a carriage return after the data is scanned.
Attached Files
File Type: zip ftpproblems.zip (106.7 KB, 7 views)
Reply With Quote
  #2 (permalink)  
Old 04-03-2008, 01:10 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

Did you try to use the FTP library instead?
Reply With Quote
  #3 (permalink)  
Old 04-03-2008, 08:03 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 20
Thumbs up Sorry I missed that one

Thanks Erel, sorry completely missed the FTP one. Thats what happens when you assume to much. I just saw the one by Brian and didn't notice the library

Will work it out. When I get it working I post it in the open projects.

Thanks again
Reply With Quote
  #4 (permalink)  
Old 04-04-2008, 09:39 AM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 20
Exclamation FTP still does not work

Erel,

I cannot get the FTP to work with my program. The program will connect to the FTP server, changes directory to images, but when you click the button to upload the program, the program indicates a error. The error is attached, in the jpg file. The error just states, error uploading file.

I created the FTP example in the FTP help file and it works, both uploading and downloading. The example program is attached. I also attached the server log that was generated by FileZilla, that shows my program and the FTP example.

So could you take a look see and see what is going on or what I am doing wrong.

Thanks
Attached Files
File Type: zip ftpproblem.zip (25.5 KB, 9 views)
Reply With Quote
  #5 (permalink)  
Old 04-04-2008, 09:59 AM
Basic4ppc Veteran
 
Join Date: Feb 2008
Location: Hilversum, The Netherlands
Posts: 237
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by jeterry View Post
The attached program allows the user to take a inventory count on a handheld and transmits the data back to a FTP server and then the user can then receive new inventory items to count.
I'm playing with the thought of a similar program for counting inventory.
But I was wondering why you choose FTP?

My program would use PHP and MySQL on the server and SQLite on the device.
Reply With Quote
  #6 (permalink)  
Old 04-04-2008, 10:09 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

Did you try to upload a different file?
Did you first close the SQLConnection?
The database file may be locked.
Reply With Quote
  #7 (permalink)  
Old 04-04-2008, 12:51 PM
Junior Member
 
Join Date: Feb 2008
Location: Lubbock, TX
Posts: 20
Thumbs up That Fixed it

Forgot that the file was still in use. Works great now.

Thanks Erel

Mr. Bill

As to why I selected ftp. Simple to setup via ftp and the app would not be used off site. Customer's hand helds require docking to attach to network, no wi-fi.

FileZallia FTP server is free and it will run on win xp pro.

In my case, the windows accounting program that I developed use btrieve, I use a obdc driver to extract the data from the acct. data into the sqlite database and read it back in. The driver can be found here:http://www.ch-werner.de/sqliteodbc

I just believe in the kiss method.

Thanks for asking

Once I get the rest of the items finished I will post the code, into open source projects.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial data receive problem Aaron Padilla Bug Reports 3 08-01-2008 02:23 PM
Send/receive email on device aerohost Questions & Help Needed 1 06-30-2008 06:46 AM
Receive Serial IR? spamme0 Questions & Help Needed 21 12-23-2007 08:47 PM


All times are GMT. The time now is 05:05 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0