Groups
Sign in
Groups
Programmer Cafe
Conversations
About
Send feedback
Help
C语言口串口编程问题
2 views
Skip to first unread message
vicky
unread,
Mar 11, 2006, 12:42:29 AM
3/11/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmer Cafe
我在用C语言编写串口通信程序时,遇到一个问题。当两个串口连接以后,如果发生了通信中断,我想进行断点续传。但是我不知道怎样进行?如果程序中止了,用什么记录呢?谢谢!
51
unread,
Mar 15, 2006, 11:48:45 AM
3/15/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmer Cafe
你是用什么啊,单片机还是PC机,如果是PC机那只能是用时间的方式了,如果发生了通信中断把这次的信息全部存入硬盘中,当下次传输开始的时候就去硬盘取数据就可以!
vicky
unread,
Mar 16, 2006, 11:53:19 PM
3/16/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmer Cafe
还有一个问题就是我采用的就是写文件,读文件的这种方式,但是当文件为50到60k时,我的偏移量就会变成负数,我的偏移量采用的是无符号的长整型的,应该是可以记录的.不知道是什么原因?
Stone Jiang
unread,
Mar 17, 2006, 12:32:23 AM
3/17/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to program...@googlegroups.com
把相关代码片段贴上来看看吧
On 3/17/06,
vicky
<
lj.v...@163.com
> wrote:
vicky
unread,
Mar 18, 2006, 9:02:58 PM
3/18/06
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Programmer Cafe
我的那个问题解决了,是因为变量没有定义好。但是又遇到了一个新的问题,就是我是用无线进行通信。误码率与丢帧现象很严重,有什么比较好的机制可以解决这个问题吗?我的初步想法是设置一个定时器,如果时间到了,还没有收到数据就再次发送命令。
Reply all
Reply to author
Forward
0 new messages