ts-7000
[Top] [All Lists]

Re: [ts-7000] Re: Ts-7200

To:
Subject: Re: [ts-7000] Re: Ts-7200
From: Jason Stahls <>
Date: Thu, 31 Jan 2013 11:07:19 -0500
On 1/31/2013 9:00 AM, khouryelie wrote:
>
> --- In  Jason Stahls  wrote:
>> On 1/31/2013 5:44 AM, khouryelie wrote:
>>> HELLO,
>>>
>>> I AM WORKING WITH A ts-7200, and running my com2 port in full duplex
>>>
>>> I AM NOT ABLE TO RECEIVE DATA ON MY COM2 PORT, I CAN ONLY TRANSMIT
>>>
>>> WHY IS THAT ?
>>>
>>> _______________________________
>>>
>>> FROM TS-7200 MANUAL
>>>
>>> switch COM2 into Full duplex RS-485 mode, the COM2 Mode register at 
>>> 0x22C0_0000
>>> must be set to Hex 01. In this mode, the TX drivers are always asserted.
>>>
>>>
>>> "TX drivers are always asserted" is this my prob ?
>> Please answer my question from the other thread you posted about this.
>> It sounds like you have it wired up for RS485 half-duplex and trying to
>> run in full-duplex.
>>
>> -- 
>> Jason Stahls
>>
>
> hello jason
>
> thanks for the reply
>
> but you didnt ask any question on the other thread or i am not seeing 
> anything there
>
> anyway i am 100% sure its full duplex, cause TS7200 tell me this
>
> SETTING FULL DUPLEX
>
>   
> this is my code
>
> #include<unistd.h>
> #include<sys/types.h>
> #include<sys/mman.h>
> #include<stdio.h>
> #include<fcntl.h>
> #include<assert.h>
> #include<linux/ts_sbc.h>
> #include<asm/ioctls.h>
> #include<sys/ioctl.h>
>
> // futher info at 
> http://wiki.embeddedarm.com/wiki/Linux_for_ARM_on_TS-72XX_User%27s_Guide#RS-485_Support_on_COM2
>
>
> #define TIOC_SBCC485 _IOW('T',0x70, int) /*TS RTS/485 mode Clear*/
> #define TIOC_SBCS485 _IOW('T',0x71, int) /*TS RTS/485 mode Set */
> #define AUTO485FD 1
> #define RTSMODE 2
> #define AUTO485HD 4
>
> int main(void)
> {
>       int fd,status;
>       char mcr;
>       fd = open("/dev/ttyAM1", O_RDWR | O_SYNC);
>       if (fd == -1)
>       {
>               perror("Error opening file for writing");
>       }
>
>       mcr = AUTO485FD;
>       status=ioctl (fd, TIOC_SBCS485, &mcr);
>       if(status==-1)
>       {
>               printf("ERROR\n");
>       }
>
> }

I'm starting at the bottom, how do you have it wired?  For RS485 full 
duplex you should have atleast four wires (RX pair and TX pair) between 
your 7200 and the USB 485 adapter.

-- 
Jason Stahls


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU