2013年10月10日星期四

MDB coin is written bill 's coming next , MDB protocol how communication ah ?

 This post last edited by the china_ssl on 2013-06-13 22:57:20
I follow the protocol byte format 1 start bit 8 data bits + 1 mode bits + 1 stop bit, start bit how fat ah , there mode parity bit like it is set to Mark or Space do not know right , and then send a data 8byte

also block transmission is to send 0-36 bytes, and then finally to have a parity bit , the parity bit is added up and in front of all , eight of the overflow regardless , my understanding is this , but I sent not.

find who wrote or understand pointing pointing to examples best ,. net of the c 's are OK , preferably in vb.net

Thank you, points is not much, but please help , there are 40 points below those posted so far no answer , given in conjunction
http://bbs.csdn.net/topics/390240766
------ Solution ----------------------- ---------------------
 This post last edited by the lbing7 on 2013-06-14 10:50:48
byte format 1 start bit 8 data bits + 1 mode bits + 1 stop bit, start bit how fat ah

This is the UART port , right ?

The physical layer of things, do not you go count, configure these attributes , the data into the buffer , start sending the OK
------ Solution --------- -----------------------------------
1 the actual use of the physical protocol MDB two kinds :

* without parity . Thus, the original hardware parity bits to send or receive is possible. But beware, the host sends to the slave , the mode bits to toggle based on the address and data byte ; from slave to master , the last byte mode bit to be set , and therefore to be switched .

* have parity . In this case, requires hardware interface module supports 9-bit data transmission .

2 If your chip is a hardware interface module , all bits ( including the start bit ) transmission are implemented in hardware , software does not care. If you are a software simulation mode , the start bit is the signal line low 1-bit cycle.

3 CHK Byte ( check bytes , not the parity bit ) is the cumulative sum of all bytes of the lower 8 bits . You can use 16-bit or 32-bit variables do accumulate , and then take a minimum of 8-bit.
------ For reference only -------------------------------------- -
someone passing you, to help look ah
------ For reference only ----------------------- ----------------
also block transmission is to send 0-36 bytes, and then finally to have a parity bit , the parity bit is added up in front of all and , eight overflow regardless , my understanding is that, but I'm not sending .

this have to find you the specific protocol document to refer to the machine , some agreement though go public , but the specific details still have to change their place unless decent used the same model , or an outsider is hard to help you calculate the directive

find who wrote or understand pointing pointing to examples best ,. net of the c 's are OK , preferably in vb.net

If it is written on a computer , then this is more convenient to use the serial control

Or LZ first in line to find some serial port software calculates the protocol manual for the device successfully communicate instructions. determine the protocol process of developing software to do their intention
------ For reference only ---------------------------------------


how to do to be the signal line low 1-bit cycle ah
------ For reference only ----------------- ----------------------


communication instruction I have counted out , but it is useless, I was online a sample program can be used , but no source code, I use the serial simulation program , read my program and online program instruction sent is the same, but my program is useless .

A. The diagram below represents a typical transmission when a peripheral is idle.
VMC:
--- ADD * -------- CHK -------------------------------- ----
Peripheral:
---------------------- ACK * ---------------------- ------
B. The diagram below represents a typical transmission when a peripheral has data
to return.
VMC:
- ADD * ------ CHK --------------------------- ACK ----
Peripheral:
---------------- DAT ----- DAT ------ CHK * --------------- -
C. The diagram below represents a typical transmission when the VMC has data to
send.
VMC:
--- ADD * ----- DAT ------ DAT -------- CHK ------------------- -----
Peripheral:
----------------------------------------- ACK * --- ----------
* Indicates mode bit set
------ For reference only -------------------------- -------------
your host what is the environment ? Is a PC do ?
------ For reference only -------------------------------------- -

ah, yes the PC
------ For reference only ------------------------- --------------


win xp 's
------ For reference only ------------------------------ ---------
have done a similar development on the PC , ah , help Manga
------ For reference only ----------- ----------------------------
Hello : I now also engaged in MDB / ICP protocol , you can contact your leave it ? To ask you some questions.

没有评论:

发表评论