Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Go Back  Xtreme Visual Basic Talk > > > Turn off and on TV with usb or service port (rj45 - ethernet)


Reply
 
Thread Tools Display Modes
  #1  
Old 09-06-2007, 11:10 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Turn off and on TV with usb or service port (rj45 - ethernet)


I am trying to figure out a way to turn off and on a tv with code over rj45 (service port) or usb. I don't think this is possible and if it is how would I reference it for visual basic 6? I have a friend that said it is possible, but I was thinking the tv can't execute code like a computer. I am trying to control a tv with a timer. The timer will tell the tv when to shut off or turn on. It's kind of like this smartlaunch power switch but without it -> http://smartlaunch.net/Webpages/Stor...n%20Controller

I could buy these, however I have emailed and forum posted them for referencing with visual basic 6 and no response. I don't want to use their smart launch point of sales, especially when I have heard how many problems other clients have with it. They still are working out a lot of bugs. I made a point of sales in the past for our family chocolate shop. Works great, worked out all the known bugs, I would like to code into it instead. Thanks for any help.

ZaCkO
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #2  
Old 09-07-2007, 01:31 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

This really depends on the functionality of the TV. Some have built in serial interfaces which will accept 'commands' in the same way the the remote control works. (ie you can send a command to it to change channel, go into / out of standby mode via a computerl port instead of the IR remote)

For other less sophisticated boxes you'll need some sort of switch that can be activated from the computer to turn the power on / off - similar to the devices in the link you gave. There's a simple example here: http://www.codeproject.com/csharp/co...appliances.asp which uses the printer port and C# which could be easily adapted to use a serial port and VB.
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #3  
Old 09-08-2007, 11:28 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Thanks Doug

Hey Doug, Thanks for your reply and in that I found this:

http://www.olevia.com/rs232/files/AT...42%20RS232.pdf

It is RS-232 command code and it is in hex. How would I reference it for vb? Somehow through mscom port? I will be trying this with multiple tvs. Is there a hub or something for that?

Thanks again, Zack
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #4  
Old 09-09-2007, 02:19 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

If you're just interested in turning the TV On and Off I think sticking the values into Byte Arrays will do. eg:
Code:
Option Explicit Dim bytOn(11) As Byte Dim bytOff(4) As Byte Private Sub cmdOff_Click() Dim intI As Integer ' ' Turn Off ' For intI = 0 To 4 MSComm1.Output bytOff(intI) Next intI End Sub Private Sub cmdOn_Click() Dim intI As Integer ' ' Turn On ' For intI = 0 To 11 MSComm1.Output bytOn(intI) Next intI End Sub Private Sub Form_Load() ' ' Power On Command Sequence ' bytOn(0) = &HF0 bytOn(1) = &HF9 bytOn(2) = &HFE bytOn(3) = &H1 bytOn(4) = &H0 bytOn(5) = &H0 bytOn(6) = &H0 bytOn(7) = &H0 bytOn(8) = &H0 bytOn(9) = &H0 bytOn(10) = &H8 bytOn(11) = &HFF ' ' Power Off Command Sequence ' bytOff(0) = &HBE bytOff(1) = &H5 bytOff(2) = &H27 bytOff(3) = &H0 bytOff(4) = &HEA ' ' Initialise the Port settings: ' 115200 Baud, No Parity, 8 Data Bits, 1 Stop Bit ' and open it ' MSComm1.Settings = "115200,n,8,1" MSComm1.PortOpen End Sub
As for multiple TVs I can't help you there as I have only ever used the serial port to control one device at a time. However, I suspect that some sort of 'hub' might be available. I doubt if you'll be able to daisy-chain them together since you could exceed the fan-out of the port on the PC and could damage it. (but I stand to be corrected)
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data

Last edited by DougT; 09-09-2007 at 02:25 AM.
Reply With Quote
  #5  
Old 09-09-2007, 01:41 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Thanks again Doug

Would suggesting something like this work:

http://www.newegg.com/Product/Produc...82E16812191022

and still be able to reference each individual serial?

Or even this way... turn the serial into usb and go to a usb hub to the computer?

http://www.newegg.com/Product/Produc...82E16812203018

The only problem I see with these is... if they need drivers installed then a usb hub may not pass data through them. Without the hub using a driver for it, it may not even work!

Zack
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #6  
Old 09-16-2007, 05:12 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Olevia rs-232c port?

Does anyone know where I can find a cable that fits the rs-232c port? It is NOT the same as a rs-232, it seems the rs-232c is a rs-422 port? Url pictures below...

532H LCD Olevia TV (rs 232 c port):

http://www.newegg.com/Product/ShowIm...ide+Model+532H

In the 7th picture there is a rs 232 "c control port". It is round, and not the same shape as a "regular" rs 232 cable. This is what a regular rs 232 cable looks like:

http://www.newegg.com/Product/Produc...82E16812117006

They "Do not" match. The one on the olevia tv is round, and the cable is rectangular shape. I can't find one that matches the rs 232 c (8 pin) "Round". I have looked through many sites. Is the cable labeled as something else? I see some other tvs have a regular rs 232 port. However, I want to buy 32' or so tvs and don't see any others with hex codes and serial rs 232 ports.
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #7  
Old 09-16-2007, 10:25 PM
throwaway18 throwaway18 is offline
Contributor
 
Join Date: May 2004
Posts: 504
Default

There are plenty of old threads in this forum about serial interfaces that
connect to a USB host.

Google is your friend.

There are several threads in the forums over at http://www.hifi-remote.com
about interfacing with this type of TV.

Quote:
Does anyone know where I can find a cable that fits the rs-232c port?
The pinout and the connections for a cable are on this page.
http://olevia.starin.biz/faq.php

It appears to be electrically compatable with RS232, it's just a
nonstandard connector.

8pin miniDIN plugs, 9way D connectors, soldering irons and cable are easily obtained from mail order electronic component suppliers or ebay.

There are apple serial cables that are miniDIN to D-type, don't know if they
are compatible with this TV, I'm sure you can figure it out using google.
Reply With Quote
  #8  
Old 09-16-2007, 10:34 PM
mkaras's Avatar
mkarasTurn off and on TV with usb or service port (rj45 - ethernet) mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Your cheapest solution is going to be your purchase of a low cost USB hub and then 3 or 4 cables of the USB to RS232 type. On the other hand the USB to Serial port hub is going to likely be a cleaner solution for you from a cabling standpoint.

The SIIG USB to serial Hub that you showed a link for from NewEgg got a pretty horrible User review. You may want to look at the following product link. I worked at Comtrol for a while on a contract and can comment that you would be able to get a whole lot more support from them as opposed to what you would ever get from a distributor for a SIIG product.

http://www.comtrol.com/products/usb-connected-hubs

When you comment that an RS232C specified port is the same as a RS422 port this is false. You can learn about the differences from this link which as a hardware engineer I can vouch for as being correct.

http://www.bb-elec.com/tech_articles...ns_systems.asp

RS422 is a serial communications system that uses two wires for the transmit channel and two more for the receive channel. These use a differential signalling with one wire of the pair always being in the opposite level of the the other one. These wires nominally carry signalling levels of 0 to 5 volts.

RS232 on the other hand is a single wire per transmit and receive path that operates in what is called a single ended manner. The signalling voltages on the wires of RS232 nominally swing at levels from +12V to +12V for the original flavor of the spec. In more modern times as computers have evolved the serial interface has also changed some and so it is today common to see RS232 with swings from anywhere in the range of -4.5 to -12V swinging up to in the range of +4.5 to +12V.

You should check carefully on the TV appliance that you intend to attach. There are many devices made with serial ports that operate in a single ended manner (one wire per transmit and receive channel) that work at voltage levels in the 0 to 5V range. This type of connection is sometimes called a TTL Serial Port and they are typically very limited on cable length that can be used. This is sometimes why an appliance manufacturer will use an odd ball connector for their serial port to prevent someone from attaching an +12/-12V RS232 port cable to the appliance which will surely fry the appliance inputs.

One reason you sometimes see people recommending the use of an RS422 cable to connect to an appliance serial port is that it is possible, with care, to wire up a connection between a TTL serial type input and an RS422 type cable by using just one side of the differential connection pair (which does have a voltage range compatible with the RS422 wires). If this is done however there is care needed to make sure that the proper wire of the pair is selected so that asynchronous serial UART protocol ends up in the correct polarity so that the data flow will work correctly. There is also an need on the RS422 end of such connection to arrange to set the voltage on the unused wire of the pair that feeds _into_ the RS422 end so that it is fixed to a voltage of about 1.5 to 2.5 volts. Otherwise the differential detection circuit inside the RS422 end will not function correctly.

The round connector that is on the back of the TV picture that you linked is called a mini-DIN type connector. It looks like a 8-way connector. Such connectors are common in specialty serial port hookups and often seen where TTL serial ports are in use. But not always. It may very well carry a signals that are legitimate for use with RS232 as I have described above. One reason a manufacturer uses these connectors is that they would like the opportunity to sell you an overpriced $50 to $100 cable!! You may very well find it cost effective to purchase your own ends and get a technician experienced with soldering to custom wire ends on the appropriate cable for you. You can get mini-DIN connector ends here:

http://www.mouser.com/catalog/631/1133.pdf

For an 8-pin jack end the part kit to order would be the 171-2608. If you elect to make cables I stress to consult with someone that has the proper tools and experience. These take the particular skill to assemble properly.

If the appliance that you are talking to does have an TTL serial interface then I would recommend that you go the route of purchasing a four or 6 port USB hub and then use the proper one of the TTL-232R or TTL-232R-3V3 cables which you can look at here:

http://www.mouser.com/catalog/631/36.pdf

It is convenient to purchase these and cut the 1x6 inline connector off of them and have the mini-din connector attached to it. The special guts that convert the USB to serial in these particular cables are in the USB end of the cable as opposed to the other types that have a DB9 type end where the electronics that converts to serial is on the DB9 end making it not possible to cut off the end to re-wire it to a new connector type.

You may want to note that 8-pin mini-din connectors were (maybe still are) in common use on MAC type computers. You can buy MAC style mini-din serial cables at on-line places such as:

http://www.pcconnection.com/ProductD...&ci_sku=455180

If the TV that you are looking to use was designed to be used directly with a MAC computer setup, (Note that MAC computers are popular in the Video Production and Editing arena) then it may be that the mini-DIN 8-way connector on the TV is directly compatible with a MAC serial port. In this case connectivity to a PC may well be facilitated by one of the cables that converts from MAC mini-din8 to PC DB9 style connectors. Here are some links for cables of that type:

http://www.connectworld.net/cgi-bin/iec/L1528
http://www.stsi.net/storefrontprofil...id=7584&dfid=1

Good Luck
Michael Karas
Reply With Quote
  #9  
Old 09-17-2007, 12:00 AM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Thanks guys

Yea, I figured it was much like the mini dim 8 pin cable for mac. I had looked for several hours after posting the reply. I found much of the same answers, great to compare. Thanks again to you all. I am thinking of trying an adapter, I just had a hard time finding one, and yes I did look through google and yahoo . "rs-232c" Mainly came up as serial rs232. So I wasted a lot of time researching, but at least I got my questions answered. Thanks!
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #10  
Old 10-08-2007, 09:55 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Hmm a little lost

Well I tried this and was getting invalid use of property. I changed the mscomm1.output bytOn(intI) to mscomm1.output = bytOn(intI). However now I get another error when I try it. The error is: Invalid property value. Is there something else I am missing? I don't know much about hex codes. Especially writing them in visual basic. Am I supposed to put something in front of it? I was converting them to string, but that did not work either. Is there a way to send hex over the hyperterminal so I can see if the cable connection is even working? I did have to install the adapter and it is recognized, which doesn't surprize me, I am sure this will work. I tried to search for an answer to my question through the forum, but I am still not sure what I am looking for. Oh and I changed .portopen to = true also.

For intI = 0 To 11
MSComm1.Output = bytOn(intI)
Next intI

Error when MSComm1.Output = &HF0 and so on if I continue down the array
"Invalid property value"

bytOn(0) = &HF0 '240
bytOn(1) = &HF9 '249
bytOn(2) = &HFE '254
bytOn(3) = &H1 '1
bytOn(4) = &H0 '0
bytOn(5) = &H0
bytOn(6) = &H0
bytOn(7) = &H0
bytOn(8) = &H0
bytOn(9) = &H0
bytOn(10) = &H8 '8
bytOn(11) = &HFF '255

Quote:
Originally Posted by DougT View Post
If you're just interested in turning the TV On and Off I think sticking the values into Byte Arrays will do. eg:
Code:
Option Explicit Dim bytOn(11) As Byte Dim bytOff(4) As Byte Private Sub cmdOff_Click() Dim intI As Integer ' ' Turn Off ' For intI = 0 To 4 MSComm1.Output bytOff(intI) Next intI End Sub Private Sub cmdOn_Click() Dim intI As Integer ' ' Turn On ' For intI = 0 To 11 MSComm1.Output bytOn(intI) Next intI End Sub Private Sub Form_Load() ' ' Power On Command Sequence ' bytOn(0) = &HF0 bytOn(1) = &HF9 bytOn(2) = &HFE bytOn(3) = &H1 bytOn(4) = &H0 bytOn(5) = &H0 bytOn(6) = &H0 bytOn(7) = &H0 bytOn(8) = &H0 bytOn(9) = &H0 bytOn(10) = &H8 bytOn(11) = &HFF ' ' Power Off Command Sequence ' bytOff(0) = &HBE bytOff(1) = &H5 bytOff(2) = &H27 bytOff(3) = &H0 bytOff(4) = &HEA ' ' Initialise the Port settings: ' 115200 Baud, No Parity, 8 Data Bits, 1 Stop Bit ' and open it ' MSComm1.Settings = "115200,n,8,1" MSComm1.PortOpen End Sub
As for multiple TVs I can't help you there as I have only ever used the serial port to control one device at a time. However, I suspect that some sort of 'hub' might be available. I doubt if you'll be able to daisy-chain them together since you could exceed the fan-out of the port on the PC and could damage it. (but I stand to be corrected)
__________________
ZaCkO ... Who is your attitude?
Reply With Quote
  #11  
Old 10-08-2007, 11:44 PM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Sorry, my mistake. Output is a Property not a Method therefore you have to assign it a value

Code:
MsComm1.Output = bytIn(inti)
BTW I don't think you need the loops either
Code:
MsComm1.Output = bytIn
should also work
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #12  
Old 10-09-2007, 01:22 AM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Ok no errors this time...

No errors now, but nothing happens. Is there another way to see if I have a connection from the computer to the tv? Open a hyperterminal somehow and see if the serial is working? I have it setup this way...

tv rs232c control port (8 pin mini din) to my computer (usb)

1. http://www.stsi.net/storefrontprofil...id=7584&dfid=1 Converter cable, from the mac port to the serial 9 din

2. http://www.newegg.com/Product/Produc...82E16812203018 from the serial 9 pin to usb adapter (Driver is installed)

3. http://www.newegg.com/Product/Produc...82E16812101157 Usb extender hub, this works great. I can detect the serial to usb adapter but not sure if the 8 pin mini din to serial converter cable is working through. I even tried without this hub, same result. Nothing happening...

One thing I noticed, my computer doesnt have a serial comm port. I guess my asus crossfire didn't need it anymore . I'll have to test just the serial converter cable from another computer.

Before I went to bed I tried this out myself:

MSComm1.Output = bytOn(intI) 'error
but
MSComm1.Output = bytOn 'no error

Msgbox bytOn
= "??"

Does that mean it still might not be sending the hex codes?
__________________
ZaCkO ... Who is your attitude?

Last edited by ZaCkOX; 10-09-2007 at 02:12 AM. Reason: Noticed something else
Reply With Quote
  #13  
Old 10-09-2007, 02:16 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Well, the first thing I'd do is check the DIN to DB9 Cable with a Multimeter and make sure the connections are as per: http://olevia.starin.biz/files/RS232...e%20Pinout.pdf
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #14  
Old 10-09-2007, 02:27 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Quote:
Originally Posted by ZaCkOX View Post
Before I went to bed I tried this out myself:

MSComm1.Output = bytOn(intI) 'error
but
MSComm1.Output = bytOn 'no error

Msgbox bytOn
= "??"

Does that mean it still might not be sending the hex codes?
I must have got it wrong (again) the below should work (at least I don't get any errors)
Code:
Private Sub cmdOff_Click()
'
' Turn Off
'
MSComm1.Output bytOff
End Sub

Private Sub cmdOn_Click()
'
' Turn On
'
MSComm1.Output bytOn
End Sub
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #15  
Old 10-14-2007, 05:06 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default On works but nothing else...

I tried changing the "off" hex to others like "hdmi source" and nothing still happens. The only hex code working is the "on". Which makes me a little happier. but the other main thing is to be able to turn off :P.

Hex codes...
https://secure.olevia.com/jsp/rs232/..._&_32_Inch.pdf

The code I have now for off...

Private Sub cmdOff_Click()

MSComm1.PortOpen = True

MSComm1.Output = bytOff 'Power Off

MSComm1.PortOpen = False

End Sub

'In the form load section

'Off Button
bytOff(0) = &HBE
bytOff(1) = &H5
bytOff(2) = &H27
bytOff(3) = &H0
bytOff(4) = &HEA

This seems to correspond with the hex code, however I think something is missing. I am not sure what else to do.

I checked the resistance again on the cable and noticed the grounding wasn't working so I reopened and tried to solder it again but the wire was not long enough anymore. It had ripped out so instead I attached the soldering coil around it to the foil. Now the grounding metal shows resistance, however resistance is now in all the pins (For the grounding wire). I hope this isn't a bad thing. But it did turn on even without the grounding and still turns on now, I would assume it can't be that much of a big deal. Doesn't seem to affect the "on" process. I was looking at the gaps and splits of the hex code document. There is no lines between the on hex code, but everything else has a break after 2 digits, does this mean I need to add something to the code? If not, I am assuming the hex codes are incorrect. I have had a hard enough time trying to contact olevia about getting a cable, would there be an alterative to finding out what hex codes exist? Like coding so all combinations are used until the tv reacts and copies down the hex code so I can use it?

Forgot to mention: Pin-out is correct according to the picture...
http://olevia.starin.biz/files/RS232...e%20Pinout.pdf
Had to post, incase someone askes me if the pinout is correct still. I rechecked multiple times with multimeter and if it wasn't it shouldn't turn on right? It does turn on....
__________________
ZaCkO ... Who is your attitude?

Last edited by ZaCkOX; 10-14-2007 at 06:00 PM. Reason: Forgot something
Reply With Quote
  #16  
Old 10-15-2007, 12:58 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Zack,
The fact that something is working rules out the cable as being a problem. Looking at the command set, the Power On command has a completely different format than the other commands. I wonder whether all other commands have to be terminated by a CR or CRLF. I guess you could try:
Code:
MSComm1.Output = bytOff
MSComm1.Output = vbCr ' if vbCr doesn't work try vbCrLf
EDIT: I just found this: http://www.olevia.com.hk/jsp/rs232/f...H)-revised.pdf not too sure whether it's applicable to your TV or not but it indicates there's a terminating CS character required after each command. Have no idea what CS stands for but I'd guess it's a vbCr (Carriage Separator perhaps?). It also suggests that the TV will return a &H06 as a response to the command.
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data

Last edited by DougT; 10-15-2007 at 01:29 AM.
Reply With Quote
  #17  
Old 10-15-2007, 12:28 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Update...

Well I just called Olevia, they said they would email me answers. I am not sure if they will, especially since I already sent 3 emails to the tech support last month.

I have the 226V tv instead of the 227V but they said it should be the same hex codes. It seems to be the same from the 27 inch up to the 32inch. After that, the hex codes are different.

http://www.olevia.com.hk/jsp/rs232/f...H)-revised.pdf

That is a 5-series tv. I have a 2-series tv. I will see if the codes work, but I extremely doubt it.

I tried using:

MSComm1.Output = BytOff
MSComm1.Output = vbCr

and:

MSComm1.Output = BytOff
MSComm1.Output = vbCrLf

But still nothing... I'm going to keep searching. I also have another question. How do I receive the input returns? I was putting my code under the MSComm1_OnComm() with byte variable = MSComm1.Input. I then had msgbox below that but nothing happens. I must have it in the wrong event. Any help?

Update: I tried the codes from the 5-series... and of course... no luck. I did find this and wasn't sure what to think of it. RS-232 Code for MTK (237V) 2-series =

http://secure.olevia.com/jsp/rs232/files/RS232_MTK.doc

I don't think this is part of what I need but I don't know. I believe the problem here is I have a 226V and the hex codes are different than any of the 227V and up. If that is not the case then it is I don't know how they are sending the hex codes (Other than on). Any chance I would have to change the buad rate, data bits, stop bits, or parity and the hex codes would work? The Power on hex command code is 24 digits long. While all the other hex codes are 10? Hmmm
__________________
ZaCkO ... Who is your attitude?

Last edited by ZaCkOX; 10-15-2007 at 08:54 PM. Reason: Update
Reply With Quote
  #18  
Old 10-15-2007, 11:18 PM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Zack,

To receive via the OnComm event you should set RThreshold to a non-zero value (ie 1 in your case) after you've set the Settings property. RThreshold is the minimum number of bytes to be received before the OnComm event is triggered. Leaving it as zero inhibits the OnComm event altogether.
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
Reply With Quote
  #19  
Old 10-16-2007, 07:35 PM
ZaCkOX's Avatar
ZaCkOX ZaCkOX is offline
Contributor
 
Join Date: May 2006
Location: CA
Posts: 645
Default Hmm What I found...

I found this searching through yahoo. A lot of the hex codes are the same. I tried to put in the inital command, not sure if I am doing it right. The baud rate doesn't work at 150... must mean something else. It is at the bottom of the document.

http://www.olevia.com/rs232/files/MT...37;20RS232.pdf

CommandIssue(0) = &H80
CommandIssue(1) = &H80
CommandIssue(2) = &H0
CommandIssue(3) = &H0
CommandIssue(4) = &H1
CommandIssue(5) = &H0
CommandIssue(6) = &H80
CommandIssue(7) = &H80
CommandIssue(8) = &H30
CommandIssue(9) = &HD
CommandIssue(10) = &H30
CommandIssue(11) = &H30
CommandIssue(12) = &H30
CommandIssue(13) = &H2E
CommandIssue(14) = &H30
CommandIssue(15) = &H65
CommandIssue(16) = &H30
CommandIssue(17) = &H74
CommandIssue(18) = &H30
CommandIssue(19) = &HD

MSComm1.Settings = "115200,n,8,1" 'am I really supposed to change this?

MSComm1.Output = CommandIssue 'nothing happens even when I try MSComm1.Output = bytOff

Nothing happened after I tested it, still can't turn off. And of course no email from Olevia. I'm starting to think I have to put in a code before the other hex codes can be used. If not, I probably have to enter them in a sequence.

Could I just write code to send string every other second.
MSComm1.Output = "0" then 1 and so on, until 255 and when reached it starts two digit sending
then it does send 0, 0 until 255, 255 and then to three
send 0, 0, 0 ... until 255, 255, 255 start with 0, 0, 0, 0

go through all possible combinations up to 255 each byte set (Hopefully not lose data over the transferring?)

255x255x255x255x(more of course)... hmm starts to get outrageous, but if I can get a input value and confirm a hex code exists, it might be the only way for me. I may never get help from Olevia, even if I keep calling and emailing. I assume that could be possible but might take "forever"... even then I might need to add Mscomm1.Output = vbCr too...

Update: Found this searching some more. It also answers one of my main questions I posted to this forum, where to get the rs 232 c command port cable (I know finally found it). I searched forever (Months) and I found it by accident when I was searching for hex commands instead. I noticed in the document that the hex codes in this version are inbetween the initial hex code. I am wondering if that is going on here in the 226V too. If I am supposed to have the other hex codes inbetween the power on hex code somewhere. I am going to try it in several different ways.

http://www.olevia.com/rs232/files/TD...%20p97-100.pdf
__________________
ZaCkO ... Who is your attitude?

Last edited by ZaCkOX; 10-17-2007 at 12:08 AM. Reason: Something new
Reply With Quote
  #20  
Old 10-17-2007, 02:19 AM
DougT's Avatar
DougT DougT is offline
Ultimate Antique

Administrator
* Expert *
 
Join Date: Sep 2005
Location: Maldon,Essex, UK
Posts: 3,939
Default

Zack,

I wouldn't go off on too many tangents. If I understand correctly:

1. You have a 226 series TV
2. You've been told that the 227 Command Codes should work with the 226
3. You've successfully turned the TV on using the 227 code
4. You can't get any other codes to work (?)

Looking at the other documents it seems that Olevia have changed the protocol at least once but in the 227 RS232 command codes document there's no indication that an 'initial command' has to be sent. Neither does it indicate that you need to have delays between the bytes sent.

Have you tried any other commands ? eg change channel? That might be a starting point just to see if the TV responds at all.
__________________
semel insanivimus omnes
S Data in context = Information, S Information in context = Knowledge, S Knowledge in context = Experience
S Experience in context = Wisdom= Data
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
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet) Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
 
Turn off and on TV with usb or service port (rj45 - ethernet)
Turn off and on TV with usb or service port (rj45 - ethernet)
 
-->