Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Hi
I need to add new items to my application for sending files through phone line with no internet only simple modem.

My main language is C#.

Please help me, I'm stuck with this project for two weeks.
Posted

Its a bit hard given you havnt told us a whole lot here - for example, do you also have to supply the program/code for the recipient (on the other end of the phone line), or, are you only the client ?

If you are only a sender/client, then what file/transfer protocol does the receiver/server expect ?

If this were me I'd be abstracting the design/implementation of my program so that the ability to send via modem, or ethernet or protocol x was 'plugable', ie, I'd be thinking in terms of interfaces - you hand an interface to the implementation of a particular send protocol to a 'send' method - this means that you could implement a test 'receiver'/server program locally on your pc to make sure you have the guts working correctly - testing using a modem, depending on the size of the file, data cost etc, could be expensive

To use a modem itself isnt that hard - you need to search for C# Serial communications, which should provide enough information on how to do things like initialise, dial, send data via the modem - as I said, if you abstract the send -> 'carrier' interface , you can model serial communications for example using a loopback on your own pc

'g'
 
Share this answer
 
Comments
milad700 30-Aug-13 1:49am    
Thank you for your time, Garth J Lancaster

and I'm sorry if my question have not complete,Yes it should Receive and send Files.

My Application is simple system management and my client want this new item in the new version to send image,worksheet... ext.

I make this simple, i say to you the same way they asked me!

We want send and receive files in phone line, for example when we want to send data.

we dial:+9825362307421 in you application and Files should be send to another PC have this phone number (modem attach to this phone line (DSL or Dial Up))
Garth J Lancaster 30-Aug-13 1:54am    
well, its not that simple - you need to know the procotol - kermit, xmodem etc that you need to be sending with - its a bit more involved than 'read x bytes from a file and send that number of bytes' repeat until all bytes sent
milad700 30-Aug-13 10:48am    
Can you give me a website, PDF, resource, anything to write such program

thank you
I havnt yet found an open source kermit/xmodem/... protocol implementation - there are commercial ones, some even with C# Classes rather than having to use P/Invoke ..this is an interesting site I found that may have enough get you started on basic c# serial comms though

https://www.evernote.com/shard/s8/sh/4e10425d-a7aa-4b14-88a9-ea8b8f61c125/f1ce1f86a347932a636a950b2d7cefa2[^]

'g'
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900