<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hex to (decimal?) bytes]]></title><description><![CDATA[<p>I am trying to controll a Marshall PZT Camera with a raspi over rs422 over VISCA protocol. I think i can use [comport] but i don't understand puredata (anymore).<br />
In the camera manual it tells me to send a string of HEX numbers 8x 01 04 3F 02 01 FF but with comport i can send bytes as decimal numbers. I dont understand how to convert these.<br />
Does anyone has experience or understands how to do this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Nov 2026 09:32:02 GMT</lastBuildDate><atom:link href="http://forum.pdpatchrepo.info/topic/13931.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 12 May 2022 17:06:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Thu, 12 May 2022 17:07:20 GMT]]></title><description><![CDATA[<p>I am trying to controll a Marshall PZT Camera with a raspi over rs422 over VISCA protocol. I think i can use [comport] but i don't understand puredata (anymore).<br />
In the camera manual it tells me to send a string of HEX numbers 8x 01 04 3F 02 01 FF but with comport i can send bytes as decimal numbers. I dont understand how to convert these.<br />
Does anyone has experience or understands how to do this?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Thu, 12 May 2022 17:07:20 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 02:57:23 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> If it's just those 7 numbers you need to convert to decimal, why not just Google it?  Or if you are on Windows 10, you can use the built-in  calculator in programmer mode, select  hex, type in the number, and read out the decimal representation.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/2</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/2</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Fri, 13 May 2022 02:57:23 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 05:56:36 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> The reverse is possible easily in Pd....... and what you need will be.... with some work.<br />
No time today so someone will beat me to it.<br />
Here is the reverse.... and [expr] or a lot of operators will get decimal from 8 byte Hex.....<br />
It could be easiest to do the maths on the binary values.</p>
<p>This will help with understanding 4 and 8 byte Hex...... <a href="https://www.zytrax.com/tech/protocols/hex.html" rel="nofollow">https://www.zytrax.com/tech/protocols/hex.html</a><br />
David.<br />
<img src="/uploads/files/1652420325615-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/3</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/3</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 13 May 2022 05:56:36 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 06:50:57 GMT]]></title><description><![CDATA[<p>vanilla's native [f ] object will convert symbols with hex numbers to decimal for you. Example:</p>
<pre><code>[symbol 0xff(
|
[f ]
|
[255\ &lt;- this is a number atom
</code></pre>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/4</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/4</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Fri, 13 May 2022 06:50:57 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 09:50:44 GMT]]></title><description><![CDATA[<p>puuh, thank you all, i will try to see through all of this. The system is very hard to debug for, 'cause the Camera is either moving or not. And there are a few stepping stones on the way..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/5</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/5</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Fri, 13 May 2022 09:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 20:37:13 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a> Very good.....<br />
So...... simple.....<br />
David.<br />
([f] converts from Pd 0.48 onwards.)<br />
<img src="/uploads/files/1652435654655-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/6</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/6</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 13 May 2022 20:37:13 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 10:01:42 GMT]]></title><description><![CDATA[<p>well, <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>, <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a>, i thought that the conversion of [list fromsymbol] is what i need 'cause with print i get the bytes to send? I only understand half, so is it for you possible to follow what i mean:</p>
<p>[FF(<br />
|<br />
[list]<br />
|<br />
[list fromsymbol]<br />
<br />
{bundle bytes and send to device}</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/7</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/7</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Fri, 13 May 2022 10:01:42 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 10:54:37 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> Yes, I thought so at first.<br />
But it returns the ASCII decimal values for example of the characters D and E separately...... list D E<br />
What is needed is the decimal value of the 8-byte HEX DE.<br />
There is no decimal ascii value for a character DE as the character does not exist.</p>
<p>It would be possible using [list fromsymbol] and some maths but it is complicated because when the list is split using [list split 1] the second outlet continues to output the remembered 2nd value (E) when there is no new value....... i.e. for decimal 0 to 15 (HEX 00 to 0F).<br />
David.<br />
<img src="/uploads/files/1652438455650-2560px-ascii-table-wide_svg.png" alt="2560px-ASCII-Table-wide_svg.png" class="img-responsive img-markdown" /></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/8</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/8</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 13 May 2022 10:54:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 11:08:16 GMT]]></title><description><![CDATA[<p>The device manual demands this Hex numbers:<br />
81 01 04 3F 02 01 FF<br />
as far as i understand now this is the list i need to send:<br />
129 1 4 63 2 1 255<br />
i didn't find a universal solution in your answers, but followed <a href="https://www.zytrax.com/tech/protocols/hex.html" rel="nofollow">this table</a>, which also shows the bits and therefore i beginn to understand a little bit more..</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/9</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/9</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Fri, 13 May 2022 11:08:16 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 11:09:44 GMT]]></title><description><![CDATA[<p>If I understand what you say, your issue is that the &quot;print&quot; messege sent to [comport] translates values to ASCII, right? In that case, you can send raw bytes without the &quot;print&quot; message. Just send a list of values that you pass through the  [f ] object and you should be fine.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/10</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/10</guid><dc:creator><![CDATA[alexandros]]></dc:creator><pubDate>Fri, 13 May 2022 11:09:44 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 13:10:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/alexandros">@alexandros</a>, no. I send the numbers directly allready now, like shown in the [comport] help patch. My camera is still not moving.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/11</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/11</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Fri, 13 May 2022 13:10:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 14:49:31 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> What about the serial port stuff like baud rate, start &amp; stop bits, etc?  Is that all set to what the camera expects?  Do you have the right port #?</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/12</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/12</guid><dc:creator><![CDATA[jameslo]]></dc:creator><pubDate>Fri, 13 May 2022 14:49:31 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 13 May 2022 15:32:14 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> What <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> says and.....<br />
So the first message.....81 01 04 3F 02 01 FF..... recall preset 3 on camera 1..... does preset 3 exist....... Is the camera set as camera 1?<br />
Does an error message come back from the camera?<br />
Have you thought of doing it over IP..... ethernet?<br />
Does the camera have the firmware upgrade (around year 2019) that enables HEX commands?</p>
<p>But I wonder if a text string would in fact work........ [print 81 01 04 3F 02 01 FF( ....into comport.<br />
...... and.... hard to find..... but do you have noise from a bad ground or a bad power supply?<br />
RS422 is balanced, but if there is a lot of noise coming from the device balancing will not help.<br />
David</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/13</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/13</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 13 May 2022 15:32:14 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Wed, 18 May 2022 21:08:07 GMT]]></title><description><![CDATA[<p>Dear <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/jameslo">@jameslo</a> and <a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/whale-av">@whale-av</a>! Thank you for looking into this. David you really did dig into this, thanks! I finaly had to finish the show without this raspi controller because i could not get it to work, and now i cant touch the cameras for a while. But i hope i have the chance to investigate again. Here are some answers to your questions for future reference meanwhile:<br />
<em>What about the serial port stuff like baud rate, start &amp; stop bits, etc? Is that all set to what the camera expects? Do you have the right port #?</em><br />
-&gt; I really dont know. I have a similar Camera like <a href="https://marshall-usa.com/discontinued/cameras/CV620-IP.php" rel="nofollow">this</a> followed this <a href="https://marshall-usa.com/pdf/RS232-Commands.pdf" rel="nofollow">manual</a> for the rs422 commands and dont know what else it needs concerning start and stop bits.<br />
The camera has to Interface for VISCA over IP unfortunatly.<br />
<em>Is the camera set as camera 1?</em><br />
-&gt; I think so, yes. I use <a href="https://marshall-usa.com/pdf/Marshall_VS-PTC-IP_manualV3.pdf" rel="nofollow">this</a> controller and it works.</p>
<ul>
<li>Does an error message come back from the camera?*<br />
-&gt; i don't know. I dont know how to read whats coming back.</li>
<li>Have you thought of doing it over IP..... ethernet?*<br />
-&gt; yes that would be the best, but i think my camera does not support that.</li>
<li>Does the camera have the firmware upgrade (around year 2019) that enables HEX commands?*<br />
-&gt; i think it should work with HEX since the controller is working fine.<br />
<em>But I wonder if a text string would in fact work........ [print 81 01 04 3F 02 01 FF( ....into comport.</em><br />
-&gt; I will try that, even though i have not the biggest hope for succes this way.<br />
<em>do you have noise from a bad ground or a bad power supply?</em><br />
-&gt; could be. But if i evaluate my <em>knowledge</em> so far, i think it is most likely a user error still. I will report here if i know more, or have more questions.</li>
</ul>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/14</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/14</guid><dc:creator><![CDATA[Johnny Mauser]]></dc:creator><pubDate>Wed, 18 May 2022 21:08:07 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Fri, 20 May 2022 07:18:37 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-a" href="http://forum.pdpatchrepo.info/user/johnny-mauser">@Johnny-Mauser</a> Do you have the Tx and Rx connections crossed over........ i.e. Tx from comport connected to Rx at camera?<br />
Checksum seems irrelevant for VISCA.... so no need to go into that.<br />
I see there is a baud rate physical switch on the camera...... 9600 or 38400...... make sure comport matches that.<br />
Set comport with some messages i.e.<br />
<img src="/uploads/files/1653030895162-capture.jpg" alt="Capture.JPG" class="img-responsive img-markdown" /><br />
You could make a loopback plug for your rs422 socket and use a terminal, or Putty in windows, to see the messages actually being sent.<br />
David.</p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/15</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/15</guid><dc:creator><![CDATA[whale-av]]></dc:creator><pubDate>Fri, 20 May 2022 07:18:37 GMT</pubDate></item><item><title><![CDATA[Reply to Hex to (decimal?) bytes on Thu, 19 May 2022 21:03:04 GMT]]></title><description><![CDATA[<p>This is a extented Ascii table <a href="http://www.nha.dk/hex.html" rel="nofollow">http://www.nha.dk/hex.html</a></p>
]]></description><link>http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/16</link><guid isPermaLink="true">http://forum.pdpatchrepo.info/topic/13931/hex-to-decimal-bytes/16</guid><dc:creator><![CDATA[tungee]]></dc:creator><pubDate>Thu, 19 May 2022 21:03:04 GMT</pubDate></item></channel></rss>