Computers & Internet Logo

Related Topics:

Anonymous Posted on Apr 18, 2008

About guidence in this project we are sending command to serial port i.e light1 on,light off ,etc from pc like click on button -> string goes to serial port ( mscomm1.output =*111# ) which makes (room1-device 0ne- on) this goes smoothly here in next part we want to acess from directly switch means after make switch on -> string comes on serial port-> and make caption of button on-> and shows status on vb form for that here we use (mscomm1.input =*111# ) f(or making room1-device 0ne- on) ie after making (room1-device 0ne - switch on) ->sting *111# should comes on serial ports then we chek this input with mscomm.input we define one var in which we store this srial port input .then compare with string and make caption on of command button Private Sub MSComm1_OnComm() Select Case MSComm1.CommEvent Case comEvReceive Dim buff As Variant buff = MSComm1.Input End Sub Private Sub Command1_Click() MSComm1.PortOpen = True MSComm1.Output = "*111#" If buff = "*111#" Then Command1.Caption = "on" MSComm1.PortOpen = False End Sub

2 Answers

Anonymous

Level 1:

An expert who has achieved level 1.

Problem Solver:

An expert who has answered 5 questions.

  • Contributor 1 Answer
  • Posted on Apr 21, 2008
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Problem Solver:

An expert who has answered 5 questions.

Joined: Jan 29, 2008
Answers
1
Questions
4
Helped
59
Points
2

I still not solved the problem

Ad

Anonymous

Level 1:

An expert who has achieved level 1.

  • Contributor 1 Answer
  • Posted on Apr 28, 2009
Anonymous
Contributor
Level 1:

An expert who has achieved level 1.

Joined: Apr 28, 2009
Answers
1
Questions
0
Helped
59
Points
1
Ad

Add Your Answer

×

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

0helpful
1answer

What is the unlcok code for a huawai valiant

The unlock code for every individual mobile phone is unique and based upon the IMEI number of the device. You can visit ClassicUnlocking.com submit the required details and get the accurate unlock code at affordable cost. Good luck.

-<()>--<()>--<()>--<()>--<()>--<()>--<()>-
..............UNLOCKING INSTRUCTIONS..............
-<()>--<()>--<()>--<()>--<()>--<()>--<()>-

f your Huawei Device is a mobile phone:
1.Switch on your Huawei Phone using another networks SIM card.
2.Your phone should ask for an unlock code(NCK Code).
3. Enter the unlock code we sent you.


If your Huawei Device is an USB modem, please follow these instructions:
If your modem software asked for an unlock code when you tried using another network's SIM card, directly enter the unlock code we sent you when prompted by the software.

Otherwise try one of the following
Method 1:
This method requires your PC to have a software called Hyperterminal which can be found on the Start Menu in Windows XP, 2003 and other older versions of Windows:
Start - > Programs -> Accessories - > Communications - > Hyperterminal
1.Remove all other modems, printers and other devices connected to your PC other than your monitor, keypad and mouse.
2.Start your pc, connect your USB modem and open Hyperterminal.
3.Enter any name and select any icon and click OK to continue.
4.Set Connect using to your modem port, Huawei Mobile Connect - 3G Modem or the right COM port.
5.In the properties window that opens, without changing any values, click OK to continue.
6.Type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
and press enter.
7.Your modem should now be unlocked. Close Hyperterminal, disconnect your modem and connect it again.

Method 2:
Use this method if Method 1 does not work or if you are not able to follow method 1.
If your PC does not have Hyperterminal or if your using Windows Vista or Windows 7 you can use the following method.
1.Download our Modem Communicator Application. This application has been scanned by Mcafee and contains no virus. For your safety, please scan the application again after you download it.
2.Switch off your PC, remove all other modems, printers and other devices connected to your PC except your monitor, keypad and mouse.
3.Start your pc, connect your USB modem and open the application you downloaded(mc.exe).
4.Click on the Check for Ports button and wait for the response.
5.Click on the Check for Modems button and wait for a response.
6.Click on the Send AT Command button and make sure you get the response "OK".
7.In the text-box next to the Send User Command button, type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
8.Click on the Send User Command button.
9.Your modem should now be unlocked. Close the application(Modem Communicator), disconnect your modem and connect it again.
tip

Automatic Serial Data Collection

Automatic Serial Data CollectionAs more and more devices come equipped with some type of communication for data collection and monitoring, the amount of data that can be collected by a PC in a system is astounding. A problem arises, however, when multiple instruments or devices need access to the PC through the serial port, but only one port is available.
There are multiple options for expanding the capability of a port that was designed to communicate with only one device. You can add a separate serial port for each RS-232 device that you need to talk to. By adding serial ports, multiple devices can have their own dedicated port, often concurrently and at high speeds. The drawback is that separate serial ports may be expensive and require some effort to configure. There is also a practical limit on resources available inside the PC to allocate to Serial Ports.
Multiple devices can be tied together by converting the signal at each point to a multi-drop bus, like RS-485. This allows up to 32 devices on a single network without repeaters. The devices can also be connected up to 4000 feet away from the PC. The disadvantage is that each device must have its own unique address. Also, some protocol needs to be established to prevent more than one device at a time from sending data to the PC. Usually this is done by having the PC poll each device individually. This does not lend itself well to devices that send their data automatically, without being requested.
Using the 232BSS4 buffered Smart Switch is an excellent way to collect data from multiple devices utilizing RS-232 serial ports. Up to four instruments, card readers, or time clocks can be directly connected to the 232BSS4, providing access through a single serial port on your PC.
If you have more than four devices that are sending data, more than one 232BSS4 can be cascaded, allowing more ports to be added. The 232BSS4 buffers data from all ports at once, making it well suited for devices that will send a fixed amount of data at sporadic intervals, such as measurement instruments, security access card readers, barcode scanners, or time clocks. Below is an explanation of how best to utilize the 232BSS4 to connect these devices to your PC.>
232bss4_setup.gif
Figure 1
>Figure 1 shows a typical setup, with 16 devices sending information at random times to the PC. The switches at Level 2 receive the data and send it on to the Level 1 switch. The Level 1 switch buffers the data and sends it to the PC. Each of the switches will automatically send the data when it is available. If another port has access to the PC, the data will be buffered until a path is available.
Cascading in Automatic mode:
For best results in an automatic system, the 232BSS4s in the system should be set up the following way.
  • Set the switches to turn on the AutoSelect feature.
  • Set the Port Timer to 0
  • Set the Inactivity Timer on all of the switches to somewhere between 50 and 500 milliseconds, depending on the space between data packets and the response time required to each connected device.
  • If you need your software to identify which port sent the data, set up the port preamble on the Level 2 switches. Set each port to have a unique preamble. The preamble can be 1, 2, 3, or 4 characters long, and any characters can be used. The preamble will be added to the beginning of each new data packet arriving at the PC. The data collection software on the PC should be written to recognize this preamble as an address or identifier of the data source.
Cascading in Polled Mode
This configuration will also work with systems where the devices have to be polled for information. With the setup of Figure 1, the switches can be configured so that you still only have to send one set of switching characters. To do this, set the switches up in the following way:
  • Set the switch on Level 1 to broadcast to all slaves on startup.
  • Set the switch on Level 1 to AutoSelect mode, no preamble.
  • Set the switch on Level 1 for 0 Port Time
  • Set the switch on Level 1 for a short Inactivity Time. Somewhere around 5 milliseconds or so.
  • Set the switches on Level 2 for no AutoSelect.
  • Set the preamble on the Level 2 switches to be unique from each other. One suggestion is to use a 3 character command. Use the first character as a start of command character like STX. The second character could represent the address of the Level 2 switch you are going to. The third character is the command character.
on Sep 12, 2010 • Computers & Internet
1helpful
1answer

Unlock huawei E353Tu-6 mobem

HUAWEI E353 TU-6 and Huawei E353 are same modem...You can Unlock it using the Unlock Code...Visit the site Prounlocking.com/huawei-modem-unlocking-service/rs8wp10/ get the Unlocking service for your HUAWEI modem and unlock it from service provider lock.Follow the instructions below and unlock it step by step...


If your Huawei Device is an USB modem, please follow these instructions:
If your modem software asked for an unlock code when you tried using another network's SIM card, directly enter the unlock code we sent you when prompted by the software.

Otherwise try one of the following

Method 1:
This method requires your PC to have a software called Hyperterminal which can be found on the Start Menu in Windows XP, 2003 and other older versions of Windows:
Start - > Programs -> Accessories - > Communications - > Hyperterminal
1.Remove all other modems, printers and other devices connected to your PC other than your monitor, keypad and mouse.
2.Start your pc, connect your USB modem and open Hyperterminal.
3.Enter any name and select any icon and click OK to continue.
4.Set Connect using to your modem port, Huawei Mobile Connect - 3G Modem or the right COM port.
5.In the properties window that opens, without changing any values, click OK to continue.
6.Type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
and press enter.
7.Your modem should now be unlocked. Close Hyperterminal, disconnect your modem and connect it again.

Method 2:
Use this method if Method 1 does not work or if you are not able to follow method 1.
If your PC does not have Hyperterminal or if your using Windows Vista or Windows 7 you can use the following method.
1.Download our Modem Communicator Application. This application has been scanned by Mcafee and contains no virus. For your safety, please scan the application again after you download it.
2.Switch off your PC, remove all other modems, printers and other devices connected to your PC except your monitor, keypad and mouse.
3.Start your pc, connect your USB modem and open the application you downloaded(mc.exe).
4.Click on the Check for Ports button and wait for the response.
5.Click on the Check for Modems button and wait for a response.
6.Click on the Send AT Command button and make sure you get the response"OK".
7.In the text-box next to the Send User Command button, type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
8.Click on the Send User Command button.
9.Your modem should now be unlocked. Close the application(Modem Communicator), disconnect your modem and connect it again.
0helpful
1answer

I need the sim unlock pin code so i can switch over to Tmobile without getting a new phone.

Hi, You can get the unlock code for a Huawei U8652 Fusion from www.unlocking4u.com/huawei-fusion-u8652/rs6wp9/ at affordable cost.
Here are the steps for unlocking a Huawei U8652 Fusion,
Method 1:
This method requires your PC to have a software called Hyperterminal which can be found on the Start Menu in Windows XP, 2003 and other older versions of Windows:
Start - > Programs -> Accessories - > Communications - > Hyperterminal
1.Remove all other modems, printers and other devices connected to your PC other than your monitor, keypad and mouse.
2.Start your pc, connect your USB modem and open Hyperterminal.
3.Enter any name and select any icon and click OK to continue.
4.Set Connect using to your modem port, Huawei Mobile Connect - 3G Modem or the right COM port.
5.In the properties window that opens, without changing any values, click OK to continue.
6.Type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
and press enter.
7.Your modem should now be unlocked. Close Hyperterminal, disconnect your modem and connect it again.

Method 2:
Use this method if Method 1 does not work or if you are not able to follow method 1.
If your PC does not have Hyperterminal or if your using Windows Vista or Windows 7 you can use the following method.
1.Download our Modem Communicator Application. This application has been scanned by Mcafee and contains no virus. For your safety, please scan the application again after you download it.
2.Switch off your PC, remove all other modems, printers and other devices connected to your PC except your monitor, keypad and mouse.
3.Start your pc, connect your USB modem and open the application you downloaded(mc.exe).
4.Click on the Check for Ports button and wait for the response.
5.Click on the Check for Modems button and wait for a response.
6.Click on the Send AT Command button and make sure you get the response "OK".
7.In the text-box next to the Send User Command button, type the following command(replace the word UnlockCode with the unlock code we sent you):
AT^CARDLOCK=UnlockCode
8.Click on the Send User Command button.
9.Your modem should now be unlocked. Close the application(Modem Communicator), disconnect your modem and connect it again.
1helpful
1answer

How do I find the control commands for the Serial port of a ViewSonic PJ506D Projector?

I cant program systemlink 4 + RCA to Sont plasma TV and Magnavox DVD + VCR using instructions to hold down Code Search till light blink then click and release Tv button etc.
0helpful
3answers

How Can I remove Windows Media Player from my computer.. the day i reinstalled my win xp sp2 it is not working it is also not allowing me to update it to windows media player 11.. i want to completely...

  • If is not located in the add/remove programs folder
  • Click the START button and select Run.
  • Type in: regedit in the command box.
  • When the regedit window appears, expand the HKEY LOCAL MACHINE by clicking on the plus sign to its right.
  • Now Click on the plus next to SOFTWARE, then MICROSOFT, then WINDOWS, then CURRENT VERSION and finally UNINSTALL
  • When you expand the Uninstall folder, you'll see all the programs currently installed, such as the uninstall Media Player 10 or Media Player, etc.
  • Click on the folder you want to uninstall, in the box on the right you will see two strings: DisplayName and UninstallString.
  • Double click UninstallString and a box will appear with the uninstall string highlighted.
  • Right click on the highlighted entry and select COPY.
  • Close the Regedit window.
  • Select the START button and click RUN.
  • Right click inside the command box and paste the uninstall string and click OK to uninstall Media Player
0helpful
1answer

Zebra printers & MS Word

HI Les1810,

You should be printing faster with Zebra fonts.
Which driver are you using? Version?
I strongly recommend the Zebra Designer V1.3.08, available at Zebra.com

To isolate the problem, capture the output to a file.
Define a local port as C:\output.txt and set that as the port in driver properties.
Now print your document. The printer commands will be in C:\output.txt.

Send c:\output.txt directly to your printer.
For LPT1, use the DOS copy command to send the file. (Copy C:\output.txt LPT1)
For serial connections, use Hyperterm to send the file.
For network connections, use ftp.
No easy USB method is readily available.

Does this print faster than printing the original document from Word through the driver?
If yes, then update your driver.
If no, debug your communication to the printer (LPT1, serial, network, etc.)

0helpful
2answers

Projector Serial Port Codes

Hi there

They might be the same if the Projectors are from the same series.

First figure out if the RS232 codes are in ASCII or HEX. You will most probably be using the HEX codes.

Best would be to contact the dealer you bought this unit from - they should by all means be able to help you out.
0helpful
1answer

Printer problems...

It sounds as if the port is trying to operate a mouse - giving the ???????. If you have windows XP then go to control panel, printers and faxes, then click "add a printer". The add printer wizard starts up, click next. select the "local printer" option and make sure the "automatically detect and install....etc" option is turned off. Click next and you should be able to select printer port. If you are using the serial port COM 1 (usually the only one externally on the pc), then select it from the list and follow the wizard through to the end. Restart the PC and you should hopefully find that the port has become dedicated to the printer alone. if still problems, go to device manager, right click on the COM 1 port and select properties, it should allow you to start the troubleshooter for the port. This should help. Other operating systems will have a similar procedure. Also worth trying is to uninstall the epson drivers, restart, plug the printer in and turn it on, and see if windows will automatically install the printer without the epson drivers. If it will, then let it do it's stuff and hopefully it will work. Hope this helps :)
Not finding what you are looking for?

69 views

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Grand Canyon Tech
Grand Canyon Tech

Level 3 Expert

3867 Answers

Brad Brown

Level 3 Expert

19187 Answers

Cindy Wells

Level 3 Expert

6688 Answers

Are you a Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...