| ??? 10/23/02 21:27 Read: times |
#31331 - New:FBUS,COM Port,Portmon & Simulator |
Hi,
I'm trying to emulate the FBUS protocol of nokia using a 8051 simulator which allows me to write to the COM port of the PC. I'm using Portmon to snoop the communication between the original nokia software and phone on PC's COM port. Following are some line which were captured by Portmon when the phone was talking to nokia software. IOCTL_SERIAL_SET_BAUD_RATE Serial0 SUCCESS Rate: 19200 IOCTL_SERIAL_SET_RTS Serial0 SUCCESS IOCTL_SERIAL_SET_DTR Serial0 SUCCESS IOCTL_SERIAL_SET_LINE_CONTROL Serial0 SUCCESS StopBits: 1 Parity: NONE WordLen gth: 8 IOCTL_SERIAL_SET_CHAR Serial0 SUCCESS EOF:0 ERR:0 BRK:0 EVT:0 XON:11 XOFF:13 IOCTL_SERIAL_SET_HANDFLOW Serial0 SUCCESS Shake:1 Replace:40 XonLimit:2048 XoffLimit:512 IRP_MJ_WRITE Serial0 SUCCESS Length 4: 41 54 0D 0A IRP_MJ_READ Serial0 SUCCESS Length 3: 54 0D 0A IRP_MJ_READ Serial0 SUCCESS Length 1: 41 IRP_MJ_WRITE Serial0 SUCCESS Length 6: 41 54 26 46 0D 0A IRP_MJ_READ Serial0 SUCCESS Length 5: 54 26 46 0D 0A IRP_MJ_READ Serial0 SUCCESS Length 1: 41 IRP_MJ_WRITE Serial0 SUCCESS Length 14: 41 54 2A 4E 4F 4B 49 41 46 42 55 53 0 D 0A IRP_MJ_READ Serial0 SUCCESS Length 7: 54 2A 4E 4F 4B 49 41 IRP_MJ_READ Serial0 SUCCESS Length 1: 46 IRP_MJ_READ Serial0 SUCCESS Length 5: 42 55 53 0D 0A IRP_MJ_READ Serial0 SUCCESS Length 1: 55 After this I tried to do the same thing but I donot have success in writing multiple values at once to the COM port the way the nokia sotware is writing. I'm new to asm and 8051 both. Following is code which I tried ORG 0 mov TMOD, #20H mov TH1, #-3 mov SCON, #50H setb TR1 clr TI mov SBUF,#'A' jnb TI,$ clr TI mov SBUF,#'B' jnb TI,$ clr TI mov SBUF,#'C' jnb TI,$ end This code should write ABC on the com port and then to phone but in the Portmon's log each char is written as single value ie, how do I write those Length 14 data (of previous logs) to com port? Any suggestion, help will be greatly helpful. thanks |
| Topic | Author | Date |
| New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
| RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
| RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
| RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
| RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
| RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 | |
RE: New:FBUS,COM Port,Portmon & Simulator | 01/01/70 00:00 |



