linux-serial.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Making our own device work under Linux
@ 2014-11-28 18:39 Dmitriy Fitisov
  2014-11-28 18:48 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Fitisov @ 2014-11-28 18:39 UTC (permalink / raw)
  To: linux-serial

Hello everyone,
we have made our own device using STM32 chip and it works well under Windows using serial communication
through USB.
We used ST Micro supplied driver and firmware example.

  Now we have a task to make it work under Linux.
USB configuration is declared it as CDC modem, therefore Linux pickups cdc-acm driver and attach it to the device.
I tested it under Ununtu and it seems that once device is attached some program 
tests it using AT commands. I would guess it is ModemManager which is started in /etc/init/modemmanager.conf
I updated firmware on our device to process those commands, now I think I may simply remove ModemManager from startup and it would be fine.

But our final platform should be Raspberry.
It seems init here a little bit different, I do not see initctl program, man init differs and I'm getting different data on my device.
It sounds like terminal sequence, with lot of "0x20 0x08" bytes after start sequence.

So, I need to find out what program/daemon/service trying to communicate with cdc-acm.
Is there a simple easy way without recompiling kernel with debug info?

Thank you.
Dmitriy

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making our own device work under Linux
  2014-11-28 18:39 Making our own device work under Linux Dmitriy Fitisov
@ 2014-11-28 18:48 ` Greg KH
  2014-11-28 19:05   ` Dmitriy Fitisov
  0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2014-11-28 18:48 UTC (permalink / raw)
  To: Dmitriy Fitisov; +Cc: linux-serial

On Fri, Nov 28, 2014 at 01:39:36PM -0500, Dmitriy Fitisov wrote:
> Hello everyone,
> we have made our own device using STM32 chip and it works well under Windows using serial communication
> through USB.
> We used ST Micro supplied driver and firmware example.
> 
>   Now we have a task to make it work under Linux.
> USB configuration is declared it as CDC modem, therefore Linux pickups cdc-acm driver and attach it to the device.
> I tested it under Ununtu and it seems that once device is attached some program 
> tests it using AT commands. I would guess it is ModemManager which is started in /etc/init/modemmanager.conf
> I updated firmware on our device to process those commands, now I think I may simply remove ModemManager from startup and it would be fine.
> 
> But our final platform should be Raspberry.
> It seems init here a little bit different, I do not see initctl program, man init differs and I'm getting different data on my device.
> It sounds like terminal sequence, with lot of "0x20 0x08" bytes after start sequence.
> 
> So, I need to find out what program/daemon/service trying to communicate with cdc-acm.
> Is there a simple easy way without recompiling kernel with debug info?

There are lots of different distros for the Raspberry Pi, I would
suggest asking on the mailing list of the distro you are using to try to
determine this, as the people there will be able to help you out the
best.

Good luck,

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making our own device work under Linux
  2014-11-28 18:48 ` Greg KH
@ 2014-11-28 19:05   ` Dmitriy Fitisov
  2014-11-28 19:08     ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Dmitriy Fitisov @ 2014-11-28 19:05 UTC (permalink / raw)
  To: Greg KH; +Cc: linux-serial

Thank you.
I registered on a forum, awaited activation.
Raspberry mailing list is virtually dead, producing a few kilobytes montly.
But anyway, it is pretty much Debian I would think.

On Nov 28, 2014, at 1:48 PM, Greg KH <gregkh@linuxfoundation.org> wrote:

> On Fri, Nov 28, 2014 at 01:39:36PM -0500, Dmitriy Fitisov wrote:
>> Hello everyone,
>> we have made our own device using STM32 chip and it works well under Windows using serial communication
>> through USB.
>> We used ST Micro supplied driver and firmware example.
>> 
>>  Now we have a task to make it work under Linux.
>> USB configuration is declared it as CDC modem, therefore Linux pickups cdc-acm driver and attach it to the device.
>> I tested it under Ununtu and it seems that once device is attached some program 
>> tests it using AT commands. I would guess it is ModemManager which is started in /etc/init/modemmanager.conf
>> I updated firmware on our device to process those commands, now I think I may simply remove ModemManager from startup and it would be fine.
>> 
>> But our final platform should be Raspberry.
>> It seems init here a little bit different, I do not see initctl program, man init differs and I'm getting different data on my device.
>> It sounds like terminal sequence, with lot of "0x20 0x08" bytes after start sequence.
>> 
>> So, I need to find out what program/daemon/service trying to communicate with cdc-acm.
>> Is there a simple easy way without recompiling kernel with debug info?
> 
> There are lots of different distros for the Raspberry Pi, I would
> suggest asking on the mailing list of the distro you are using to try to
> determine this, as the people there will be able to help you out the
> best.
> 
> Good luck,
> 
> greg k-h
> --
> To unsubscribe from this list: send the line "unsubscribe linux-serial" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making our own device work under Linux
  2014-11-28 19:05   ` Dmitriy Fitisov
@ 2014-11-28 19:08     ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2014-11-28 19:08 UTC (permalink / raw)
  To: Dmitriy Fitisov; +Cc: linux-serial

On Fri, Nov 28, 2014 at 02:05:55PM -0500, Dmitriy Fitisov wrote:
> Thank you.
> I registered on a forum, awaited activation.
> Raspberry mailing list is virtually dead, producing a few kilobytes montly.
> But anyway, it is pretty much Debian I would think.

If it is Debian, then try asking on one of the Debian developer mailing
lists.  Either way, it's probably still ModemManager doing this type of
thing, try removing it from your system image and see if that helps.

greg k-h

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-11-28 19:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-28 18:39 Making our own device work under Linux Dmitriy Fitisov
2014-11-28 18:48 ` Greg KH
2014-11-28 19:05   ` Dmitriy Fitisov
2014-11-28 19:08     ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).