Android Forums

Go Back   These FORUMS ARE DISABLED!! OUR NEW FORUMS ARE AT http://androidforum.com/ > Android Coders > Android Development, Answers, Tutorials, and Code Snippets
Connect with Facebook

Click Here To Register!
 
 
LinkBack Thread Tools Display Modes
Old 08-20-2011, 03:12 AM   #1
Android Eclipse Newbie
 
Join Date: Aug 2011
Posts: 2
Friends: 0
View dalecooper1983's Profile   View dalecooper1983's Photo Album   View dalecooper1983's Blog   View Social Groups
Hi,

I am an AMX and Crestron programmer working within the AV industry for around 8 years. I have started to try using eclipse to write apps for android which will allow an android tablet to control AV equipment over a network. Here is a typical example.

NEC Projector NP3250 accepts commands on TCP Port 7142.

command to be sent to power projector on is $02 $00 $00 $00 $00 $02 $0D

(with hex being designated by $)

I am unsure about how to go about doing this any help would be greatly appreciated
dalecooper1983 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 08-21-2011, 02:22 AM   #2
New Member
 
Join Date: Aug 2011
Posts: 22
Friends: 0
View sjums's Profile   View sjums's Photo Album   View sjums's Blog   View Social Groups
I can't tell you exactly how to in Java, but I know that you'll use a socket object in C#.

Furthermore you'll probably have to convert those hex into bytes before sending them through the air
sjums is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
Old 08-21-2011, 03:29 AM   #3
Android Eclipse Newbie
 
Join Date: Aug 2011
Posts: 2
Friends: 0
View dalecooper1983's Profile   View dalecooper1983's Photo Album   View dalecooper1983's Blog   View Social Groups
Hi

Yeah already created a program using sockets which communicate over UDP to a different device but this uses ASCII Strings to communicate (converted to bytes).

I have tried a few different ways to send these values accross. I understand that they are values which could easily for instance 2 in decimal or $02 in hex or <STX> in ASCII i am just at a loss as to how to convert these into bytes which the projector will understand

Oh and I can see the activity lights flash on the Ethernet port on the projector when I send the command so i think the problem is to do with the way I am transmitting the command or converting it for transmission. I have also read about the flush command but am not sure if this is required. Sorry for my lack of understanding

Last edited by dalecooper1983; 08-21-2011 at 03:33 AM.. Reason: more info
dalecooper1983 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in Technorati
 

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
Block TCP Ports 6660-6669 for IRC Chat Clients? czissman Android Chat 0 06-07-2011 09:00 AM
Help to save and retrieve the values form SharedPreferences in android javed.inamdar Android Development, Answers, Tutorials, and Code Snippets 2 04-11-2011 10:36 AM


Unlocked G1 Phones | Buy T-Mobile G1 | Google Phone

All times are GMT -6. The time now is 03:29 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.
Copyright (c) 2012 TalkAndroid.com. All rights reserved.