ts-7000
[Top] [All Lists]

[ts-7000] Re: decode can massage - TSCAN1

To:
Subject: [ts-7000] Re: decode can massage - TSCAN1
From: Joel Morgan <>
Date: Mon, 12 Dec 2011 09:41:37 -0600



On Dec 12, 2011 8:48 AM, "zhangjing80" <> wrote:
>
>  
>
>
>
> --- In Joel Morgan <> wrote:
> >
> > Hi,
> >
> > On Dec 12, 2011 3:08 AM, "zhangjing80" <> wrote:
> > >
> > >
> > >
> > > hi, guys
> > > I have a TSCAN1 Board and have installed it on TS7300, I have also read
> > some relative manuals. The received can message is decoded at
> > SJA1000_base_addr. The tscan1.c calls a function which is defined like:
> > > static u8 tscan1_read(const struct sja1000_priv *priv, int reg)
> > > {
> > > return inb((unsigned long)priv->reg_base + reg);
> > > }
> > > This function will return the can message. But I have some questions
> > about the getting data from the SJA1000_base_addr. I wanna get the 8 byte
> > data and transfer them, so has anyone ever used the TSCAN1 board? Could you
> > please give me some help?Thanks in advance
> >
> > Are you using the Ocera framework?
> >
> > What is your question?
> >
> > Regards,
> > -joel
> >
>
> Hi, joel
> yes, I used the Ocera framework, I have sevaral questions about the usage of the TSCAN1. Have you ever used it?

Yes

Could you please give me some help?
> 1. you know a standard can frame mainly contains 11 ID and 8 byte data, according to the TSCAN1_manual,the SJA1000 supports dual-identifier mode. But each can frame has only one ID. Where comes double identifier?

Lincan (and the other ocera components) present APIs to the user. One of the structure members, canmsg_t.id is an unsigned long. This is all defined in the header canmsg.h

> 2. I can set the register, and select the SJA1000_IO base address, where the can message decodes itself. I wanna get the 8 byte data of each can frame, how can I realize it?

From userspace? The lincan module wont take too kindly to that ;)
Use the API

> 3. If I wanna transfer data of data[8], you know that I should write them to Txbuffer, but how ?

See above.

-joel



__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<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