Sorry that I am such a "basic newbie"... I have dabbled a bit in C and
assembler and Delphi on PC, But now I am in Mac land (sick of viruses).
Taken from the TI documentation (Series 2000 Reader system).
All messages constructed according to the following format:
Byte Contents
0 Start-Mark (SOH,01hex)
1 Destination Address
2 Source Address
3 Message-Code
4 Data-Length
5 Data-Field(1)
N+4 Data-Field(N)
N+5 CRC-Field(1) (MS Byte)
N+6 CRC-Field(2)
N+7 End-Mark(EOT, 04hex)
I am just wanting to bang out a couple of packets to get the responses and
verify my ideas.
So that I can get down to the serious part.
Just that the example serial programs supplied with RB show quoted strings
going out i.e. Serial1.Write "Hello Blagh" whereas I need to do the
equivalent to Serial1.Write(0x01) (Sorry for the C syntax).
I tried the following:
Sub Action
Serial1.SerialPort.OutputDriverName.Encoding.variant 0x00
Serial1.Write 0x01
Serial1.WriteInt8 0x01
All cause an error.
Thanks in advance.
> From: Jim Wagner <[EMAIL PROTECTED]>
> Reply-To: REALbasic NUG <[email protected]>
> Date: Wed, 25 Apr 2007 23:28:21 -0700
> To: REALbasic NUG <[email protected]>
> Subject: Re: Raw data through serial port. TIRIS Protocol (RFID)
>
>
> On Apr 25, 2007, at 8:52 PM, Gregory Omond wrote:
>
>> Hi
>> Just hoping that someone can help me with regard to sending non string
>> data
>> via the serial port in realbasic.
>>
>> I am attempting to write an app to log ear tag information on my farm.
>>
>> Thanks
>>
>> Greg Omond.
>> _______________________________________________
>> Unsubscribe or switch delivery mode:
>> <http://www.realsoftware.com/support/listmanager/>
>>
>> Search the archives:
>> <http://support.realsoftware.com/listarchives/lists.html>
>>
>>
> I do it all the time. Make sure that you have 8 data bits. Read the
> port as if it really is text.
>
> Then "parse" the data, converting from "text" characters into non-text
> data.
>
> What the source of the data? A tag reader? What does the reader
> documentation say about the data format?
>
> Jim Wagner
>
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives:
> <http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>