• Support
  • Articles
  • Resources
  • Products
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 494: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 113: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead

sending hex values in tera term

Moderator: boris

18 postsPage 1 of 1

padma
Newbie

Posts:
2
Joined: Mon Oct 17, 2016 9:11 am
by padma » Mon Oct 17, 2016 9:16 am
Hi, I am new to teraterm.

for my application, I want to send a command in hex value.

I searched the forum. But I didn't find the result properly.

I am requesting anyone to help me or provide me the links.


thanks
padma
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Mon Oct 24, 2016 8:20 am
padma
Newbie

Posts:
2
Joined: Mon Oct 17, 2016 9:11 am
by padma » Mon Oct 24, 2016 9:34 am
Hi,

My command looks like 00 03 00 63 00 01 C5 75 and all are hex values.

can you please tell how to use macro or provide some links??

thanks in advance
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Thu Nov 03, 2016 4:16 pm
dpena
Coach

Posts:
144
Joined: Thu Jul 09, 2009 6:14 pm
by dpena » Tue Jan 17, 2017 8:56 pm
Hi padma,

Are these hex values incrementing or are they some testlist of commands which are fixed values?? :?
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Wed Mar 01, 2017 5:44 pm
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Fri Mar 03, 2017 10:24 am
Hi luxlcd,
Do you want to send hex from a Tera Term macro or some other way?

As per my question above what exactly do you mean by hex? Do you mean a raw byte (which may not be printable) or do you mean 2 character string representing a hex value for a byte?

Please provide some examples.

Trevor
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Fri Mar 03, 2017 5:00 pm
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Fri Mar 03, 2017 9:48 pm
Do have a document for the digital interface card you can point me to?.
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Fri Mar 03, 2017 10:08 pm
Trevor
Guru

Posts:
485
Joined: Wed Jul 26, 2006 8:47 am
by Trevor » Sat Mar 04, 2017 12:47 am
cannot see the image attachment you refer to, maybe the forum will not support such attachments. Can you make a link e.g. dropbox or google drive etc. ? Or refer me to the website for the device. If I have some data I can figure it out otherwise I'm blind.
jcorra
Newbie

Posts:
10
Joined: Mon Mar 06, 2017 4:36 am
by jcorra » Mon Mar 06, 2017 5:01 am
Just a word of caution when trying to send hex data. It seems to work best when you write a macro to send the commands you want and to set up the command in the macro as an integer rather than character or string (especially if you want to be able to send 0x00). The integer allows you to send 0 where you can't do that with a string. Also, if you are communicating binary/hex data, you will want to make sure that you change the language from the default of UTF-8 to English (go to Setup-->General-->Language, select English, hit ok, and then save the new setup: go to Setup-->Save Setup...). If you leave it as UTF-8 you will probably run into issues trying to send values above 0x7F (for example trying to send 0xF1 gets sent as two bytes (I don't remember off the top of my head which two), but when you use English it goes out as the 0xF1 you would expect).
jcorra
Newbie

Posts:
10
Joined: Mon Mar 06, 2017 4:36 am
by jcorra » Mon Mar 06, 2017 4:35 pm
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Mon Mar 06, 2017 4:49 pm
thanku everyone who is trying to help me. here is the link for that picture i took from the commands manual.


https://www.dropbox.com/s/60pzn8tglif2w1c/11.jpg?dl=0
jcorra
Newbie

Posts:
10
Joined: Mon Mar 06, 2017 4:36 am
by jcorra » Mon Mar 06, 2017 5:23 pm
Are there other parts to the command structure? Based on what you posted, the command sequence should be revised as follows:
send CMD
send Data1
send Data2
send Data3
send Data4
where the values for CMD, Data1, Data2, Data3, and Data4 are derived from your user manual. If your ID is 0x35 and you want to send the KEY_MENU key code then:
send $F4
send $88
send $35
send $FD
send $43

Since you are sending values above $7F, make sure that you have changed your language from UTF-8 to English as I mentioned a few posts above.
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Mon Mar 06, 2017 7:01 pm
Thankyou so much for help everyone. i really appreciate it.
jcorra
Newbie

Posts:
10
Joined: Mon Mar 06, 2017 4:36 am
by jcorra » Mon Mar 06, 2017 7:30 pm
Were you able to get it working?
luxlcd
Newbie

Posts:
6
Joined: Tue Feb 28, 2017 9:09 pm
by luxlcd » Mon Mar 06, 2017 7:33 pm
Display posts from previous:
Sort by:

18 postsPage 1 of 1

Users browsing this forum: No registered users
cron