Visual Productions forum

Author Topic: TCP sending. commands to 3rd party equipment  (Read 1345 times)

November 04, 2022, 11:28:20 AM
Read 1345 times

Thomas MK

  • Member
  • *
  • Posts: 19
Hallo to ALL

SITUATION:
I have audio player and amplifire (i will call it audio) witch receiving only TCP command from 3rd party eq. in my case B-station2 and cuecore3 so no UDB or OSC!
 
As i know B-station2 can not sending TCP commands but cuecore3 can. I have 2 buttons intended (on B-station2) one for play and other for stop sending UDP commands to cuecore3 witch re-sending TCP commands to audio.


TCP commands are:
PLAY
ASCII: #|D001|web|SPPLAY1|0|U|\r\n
HEX: 23 7c 44 30 30 31 7c 77 65 62 7c 53 50 50 4c 41 59 31 7c 30 7c 55 7c 0d 0a
STOP
ASCII: #|D001|web|SPSTOP1|0|U|\r\n
HEX: 23 7c 44 30 30 31 7c 77 65 62 7c 53 50 53 54 4f 50 31 7c 30 7c 55 7c 0d 0a


PROBLEM:

The problem is when i try to send TCP  as string (set) or string HEX (set) it doesn't send the correct HEX value!
In case string-set for STOP command:
ASCII: #|D001|web|SPSTOP1|0|U|\r\n
Corect HEX: 23 7c 44 30 30 31 7c 77 65 62 7c 53 50 53 54 4f 50 31 7c 30 7c 55 7c 0d 0a
Sent HEX: 23 7C 44 30 30 31 7C 77 65 62 7C 53 50 53 54 4F 50 31 7C 30 7C 55 7C 5C 72 5C 6E

The problem is that cuecore3 simply convert end command \r\n as it is not as <CR><LF> (control characters)
How can i fix this?


Thank you!!
 


November 04, 2022, 12:51:49 PM
Reply #1

Julien Levaufre

  • Administrator
  • Member
  • *****
  • Posts: 3234
    • www.visualproductions.nl

You can select the 'send byte' feature of the TCP task and then use the hex message.
This will send exactly the characters you want.
Enjoy ;)
Julien Levaufre
Visual Productions BV

November 07, 2022, 02:03:14 PM
Reply #2

Thomas MK

  • Member
  • *
  • Posts: 19
YES!!! Working great now!!!!

Thank you very much!!!!  :)

November 07, 2022, 02:39:20 PM
Reply #3

Julien Levaufre

  • Administrator
  • Member
  • *****
  • Posts: 3234
    • www.visualproductions.nl
Julien Levaufre
Visual Productions BV

 

SMF spam blocked by CleanTalk