10-18-2005 10:03 AM
10-18-2005 12:01 PM
Hi Steve,
I have some code in CVI that does what you are describing. However, it is simple to implement in LV.
Basically, you implement vi's to send / receive over serial port. There are threads that describe this. Le me know if you have difficulty with this portion.
Both ends monitor continuously for data over the serial port. When one is ready to send it transmits a "ready to send message", which is received at the other end. The other end acknowledges that it is ready to receive.
The message looks something like:
{start of message header} {.................. message ...................... } { end of message}
start of message: contains start character(s) and message length plus encapsulation character (for start)
message : whatever you want to transmit
end of message: end encapsulation character plus checksum of message
The other end receives all the above and parses it to recover the message and check for validity of message (checksum)
Then the message is passed on for further processing.
This is done between 2 PC. Message intervals are dynamic, but rarely exceed 1 minute.
There is nothing special as far as setting up the serial ports.
You can even experiment with HyperTerminla sessions opened on the 2 PC's.
Hope this helps,
Ray
10-19-2005 09:28 AM - edited 10-19-2005 09:28 AM
Message Edited by selmore on 10-19-2005 09:28 AM
10-19-2005 02:43 PM
Hi Steve,
LOL... It's okay to violate programming standards as long as you're having fun. 😄
I will look at these tonight and provide comments. Since I did not see it yet, did you get it working?
Ray
10-19-2005 09:49 PM
Hi Steve,
I have to appologize for not being able to look at your vi's. Can you convert them to LV7.0?
I do not have ver 7.1.
Sorry,
Ray
10-20-2005 06:52 AM
10-21-2005 08:39 AM
10-20-2009 08:14 AM
Thanks for your replies and advice.
I used the function in your lib,read charact from file.
Before this, I send a command to the modem stating that I am downloading a file which is xxx size.
This function below then runs, and once the modem received the file, it will reply with OK, and ERROR if there was a prblem
This function(and my previous functions) both work with files I download which are smaller than 7000bytes in size. Modem returns OK and all is good.
When downloading a file bigger, then modem replies with ERROR.
I am all out of ideas now.
10-20-2009 10:37 AM
As in the your other post what error are you getting? This simple piece of information is crucial in being able to give advice to resolve your problem. I suspect that you are simply timing out on your data transfer. Either you are not giving the receiver enough time to receive the data or you are not allowing enough time for the response. However, without more specifics it will be impossible to give you better advice.
I would also recommend that you pick on of the threads, either this one or better yet your original one, and use that instead of bouncing between threads for a solution.