RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver
RS232c A/V Receiver RS232c A/V Receiver
RS232c A/V Receiver
Go Back  Xtreme Visual Basic Talk > > > RS232c A/V Receiver


Reply
 
Thread Tools Display Modes
  #1  
Old 11-20-2010, 09:34 PM
StealthRT's Avatar
StealthRT StealthRT is offline
Contributor
 
Join Date: Aug 2002
Posts: 785
Question RS232c A/V Receiver


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:
 Command code | Parameter code | CR  | Code set example
 PW           | ON             | <CR>| PWON<CR>
And this is my VB6 code i am currently using that doesnt seem to work...
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

David
Reply With Quote
  #2  
Old 11-21-2010, 04:37 AM
Banjo's Avatar
BanjoRS232c A/V Receiver Banjo is offline
Hell's Angel

Retired Moderator
* Guru *
 
Join Date: Jul 2001
Location: Yorkshire, UK
Posts: 10,394
Default

I assume you only post the three variants of the line terminator to show us what you've tried? If not and you're actually trying to send all three then don't. Just send the Chr$(13) variants. Incidentally, you can use the vbCR constant instead of Chr$ function call.

Have you spoken to the manufacturer of this device and confirmed that the Settings you using are correct?
__________________
A wise one man once said "what you talking about dog breath"
Reply With Quote
  #3  
Old 11-21-2010, 06:40 PM
StealthRT's Avatar
StealthRT StealthRT is offline
Contributor
 
Join Date: Aug 2002
Posts: 785
Default

Well for some reason i got it to work finally. I guess i needed to turn the unit on first then control it there after.

Thanks!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver RS232c A/V Receiver
RS232c A/V Receiver
RS232c A/V Receiver
 
RS232c A/V Receiver
RS232c A/V Receiver
 
-->