Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

Forums:

Hi,
I am working on a project that is using brew iport interface, I am wondering how to test the app in brew simulator (pc).
can somebody give me a clue?
thank you :

Basically, the simulator maps the BREW ports AEESIO_PORT_SIO1 .. AEESIO_PORT_SIO4 to COM1-COM4 on the local PC. Therefore, for just about any useful app, you're going to need a PC with 2 serial ports (or 2 PCs with 1 a piece). You'll need to hook the COM ports up with a null modem cable.
From there, I think the documentation should be all you need. Don't forget that AEECLSID_SERIAL is a protected class, and therefore you need to declare it as a dependency in your MIF file, or the ISHELL_CreateInstance() call will fail.
I should also mention that while the macros defined in AEESIO.h only go up to 4, I believe the simulator supports through COM32.

Basically, the simulator maps the BREW ports AEESIO_PORT_SIO1 .. AEESIO_PORT_SIO4 to COM1-COM4 on the local PC. Therefore, for just about any useful app, you're going to need a PC with 2 serial ports (or 2 PCs with 1 a piece). You'll need to hook the COM ports up with a null modem cable.
From there, I think the documentation should be all you need. Don't forget that AEECLSID_SERIAL is a protected class, and therefore you need to declare it as a dependency in your MIF file, or the ISHELL_CreateInstance() call will fail.
I should also mention that while the macros defined in AEESIO.h only go up to 4, I believe the simulator supports through COM32.

hi toddb;
thank you for your replying. that is really helpful. but I still got confused. I have tried to declare AEECLSID_SERIAL in my MIF editor. but I couldn't find it under MIF editor extesions/ add MIME TYPE. There is no AEECLSID_SERIAL in Base Class. then how to declare it :confused:
Thank you

hi toddb;
thank you for your replying. that is really helpful. but I still got confused. I have tried to declare AEECLSID_SERIAL in my MIF editor. but I couldn't find it under MIF editor extesions/ add MIME TYPE. There is no AEECLSID_SERIAL in Base Class. then how to declare it :confused:
Thank you

Hi tod:
thank you for your replying. it is realy helpful! Now I got my app working. but i am so confused. where is my data? I tried to using iport_write to write data to an open port, and it is returns total bytes that writen to the port, but I couldn't find my data anywhere. do I need to have anothere app servied as a client? :confused:
Thank you for all your help.

Hi tod:
thank you for your replying. it is realy helpful! Now I got my app working. but i am so confused. where is my data? I tried to using iport_write to write data to an open port, and it is returns total bytes that writen to the port, but I couldn't find my data anywhere. do I need to have anothere app servied as a client? :confused:
Thank you for all your help.

Yes.
For instance, if your PC has two COM Ports, COM1, and COM2, then you might open COM1 by specifying _PORT1 in your IPORT_Open() call. If COM1 and COM2 are connected with a null modem cable, then doing an IPORT_Write() would cause your data to exit the PC on COM1 and re-enter it on COM2. If you want to see that data, run hyperterminal or whatever is going to be on the serial port connected to a real phone on COM2.

Yes.
For instance, if your PC has two COM Ports, COM1, and COM2, then you might open COM1 by specifying _PORT1 in your IPORT_Open() call. If COM1 and COM2 are connected with a null modem cable, then doing an IPORT_Write() would cause your data to exit the PC on COM1 and re-enter it on COM2. If you want to see that data, run hyperterminal or whatever is going to be on the serial port connected to a real phone on COM2.