AVS Forum banner
1 - 6 of 6 Posts

·
Registered
Joined
·
156 Posts
Discussion Starter · #1 ·
Hey all, i am trying to turn on a A/V Reciever with a RS232 command using the VB6 comm32. To turn it on it says to use:
Code:
Code:
Command code | Parameter code | CR  | Code set example
 PW           | ON             | | PWON
And this is my VB6 code i am currently using that doesnt seem to work...
Code:
Code:
MSComm.CommPort = 2
   MSComm.RThreshold = 1
   MSComm.Settings = "9600,N,8,1"
   MSComm.InputLen = 0
   MSComm.PortOpen = True
   
   MSComm.Output = "PWON" & Chr$(13)
   MSComm.Output = "PWON" & vbCrLf
   MSComm.Output = "PWON" & vbNewLine
   
   MSComm.Output = "ZMON" & Chr$(13)
   MSComm.Output = "ZMON" & vbCrLf
   MSComm.Output = "ZMON" & vbNewLine

   MSComm.PortOpen = False
End If
The reciever never turns on. What could i be doing incorrectly? I checked to make sure the com port was 2 and it is.


The PDF of the rs232 commands can be found here for the Marantz SR7005: http://www.filefactory.com/file/b45c...ceiver_All.pdf


If anyone has experience with MSComm32 then please help me out



David
 

·
Registered
Joined
·
491 Posts
You may want to confirm by using Hyperterminal or similar first.


Also, I'm not sure why you are sending 3 different types of carriage return or line feed. I suppose the carriage return command/character is needed so did you try choosing a single line and using it? Maybe you just figured you'd try different techniques and if one of them turned it on, great.


I didn't check the rest of it in detail but it looks fine.
 

·
Registered
Joined
·
952 Posts
Note that Hyperterminal (or similar) might not work. It does not work with my Denon because apparently the inter-character timeout in the Denon is very short and I can't type that fast. I don't know about other receivers. So sending the whole string in a burst may be necessary.
 
1 - 6 of 6 Posts
Top