.NET Components for Mobility

stonestreet bluetooth sdk for .NET

Last post 10-03-2008 6:55 AM by Robsta. 5 replies.
Page 1 of 1 (6 items)
Sort Posts: Previous Next
  • 04-21-2008 8:54 PM

    stonestreet bluetooth sdk for .NET

    hi lads, 

    currently i am developing a mobile application under .NET 2.0 CF , what i want to do are as following:


    1) discovery bluetooth-enabled printer(Zebra) using handheld device - symbol bluetooth API (stonestreet),

    2) connect to printer via virtual serial port (e.g COM 4,5,9).

    3) sent string or file to printer.


    my question is that are there any bluetooth .NET assembly DLL available for it ? if not, any win 32 API DLL available ? so i can use it by P/Invoke.

    PS: i want to print super-market style receipt
    with signature(image) using zebra printe as well , any hints or APIs for this demand?

     

    regards,


    Brad

     

  • 04-29-2008 5:22 AM In reply to

    Re: stonestreet bluetooth sdk for .NET

    Sorry don't know about this SDK at all.  We don't support it from 32feet.NET.

    Alan J. McFarlane
    http://www.alanjmcf.me.uk/
    Please follow-up in the newsgroup for the benefit of all.
    Have I helped? Consider visiting my Amazon wishlist, see my homepage.
  • 05-27-2008 2:20 PM In reply to

    Re: stonestreet bluetooth sdk for .NET

     Brad,

     Did you ever figure this out.  I am using a symbol bluetooth and am stuck.  Stonestreet (aka bluetopia) offers no documentation on how to use their stack (seems like a trick to try and get more consulting $$$ to me).

     If you found any info or had any luck I would love to hear about it.

     Stephen 

    Filed under: ,
  • 05-30-2008 6:47 AM In reply to

    Re: stonestreet bluetooth sdk for .NET

    hi Stephen,

    I am working on another project at moment, what i can do now is to set up bluetooth manunly, and print out via serial port, i talk to the developer in motorola UK, he said, SS1 is the worst stack they have, no wrapper class for .net at moment. what i want to do is to using p/Invoke to achieve the function i need, but i even don't know the interface in win32 API i have,following are sampe code i have

    blueprint in C++

     const TCHAR *szFavouritesFile = _T("\\Windows\\BTFavouritesTemp.txt");
    const TCHAR *szCustomerDll    = _T("customerdll.dll") ;  
    const TCHAR *szAddFavourites  = TEXT("AddFavorites");
     
    typedef int (*PFNADDFAVORITES)(char *);
      
    int CCreateVirtualPort::CreateBtPort( int m_Index, CString m_csPrinterAddress )
    {
     HANDLE hFile = CreateFile(szFavouritesFile, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0,  NULL);
        if ( hFile == INVALID_HANDLE_VALUE )
            return -10;
     
        char szPrinterAddress[ 64 ] = {0};
        char szPrinterName[ 128 ] = {0};
        wcstombs( szPrinterAddress, m_csPrinterAddress, wcslen(m_csPrinterAddress) );
        wcstombs( szPrinterName, m_csPrinterName, wcslen(m_csPrinterName) );
    //
    //  Create out favorites file and add to BT explorers favorite list
    //
     char szFavoriteString[256] = {0};
        sprintf( szFavoriteString, "%s=0, 1.0, | %s:COM%d:|, |Serial Printer|, 1, 0, %d", szPrinterAddress, szPrinterName, m_Index, m_Index );
        DWORD dwBytesWritten = 0;
        WriteFile( hFile, szFavoriteString, strlen(szFavoriteString), &dwBytesWritten, NULL );
        CloseHandle( hFile );
     
     HINSTANCE hCustomerDLL = LoadLibrary( szCustomerDll );
     if ( hCustomerDLL == NULL )
            return -20;
     
        PFNADDFAVORITES pfnAddFavorites = (PFNADDFAVORITES) GetProcAddress( hCustomerDLL, szAddFavourites );
        if( pfnAddFavorites == NULL )
        {
         FreeLibrary(hCustomerDLL);
     
            CString csDebug;
            csDebug.Format( TEXT("Unable to find entry point %s in %s"), szAddFavourites, szCustomerDll );
            SendStatusMessage( csDebug, m_hWndParent );
            AfxMessageBox( csDebug );
            return -30;
        }
     
     char szFileName[MAX_PATH] = {0};
        wcstombs( szFileName, szFavouritesFile, wcslen(szFavouritesFile) );
     
        int rc = pfnAddFavorites( szFileName ) ;
     
     FreeLibrary(hCustomerDLL);
     
        CString csDebug;
        csDebug.Format( TEXT( "AddFavorites returned %d"), rc );
        SendStatusMessage( csDebug, m_hWndParent );
     
        return rc ;
    }

     

     following link could be useful,

    http://support.symbol.com/support/search.do?languages=&rwTarget=%2FrfPlayerWidget.do&searchMode=GuidedSearch&searchString=stonestreet&productLine=&product=&document=&cmd=search&productFamily=&contextType=gs 

     also you need to check out sample SS1 SDK you download

     

     

    brad 

     

     

     

     

       

     

  • 10-03-2008 6:22 AM In reply to

    • Robsta
    • Top 500 Contributor
    • Joined on 10-03-2008
    • Posts 2

    Re: stonestreet bluetooth sdk for .NET

    It's probably not going to be of much help now, Brad, but I too develop for Zebra Printers. They use a language called CPCL (link below), where you can just open a byte stream to the printer (serial), and send what ever you want to print across. It's actually very simple, once you know how the language works.

    http://www.zebra.com/id/zebra/na/en/index/products/special_features/proglang/cpcl.html

     hope that helps.

     Robsta

    Live Fast, Die Young.
  • 10-03-2008 6:55 AM In reply to

    • Robsta
    • Top 500 Contributor
    • Joined on 10-03-2008
    • Posts 2

    Re: stonestreet bluetooth sdk for .NET

    Brad,

    Did you ever get anywhere with this at all? I'm seeing the same problem, though have found that the "C:\Program Files\Symbol Technologies Bluetooth SDK by Stonestreet One\doc" folder contains a BSAPI pdf that does list (in its 132 pages) a lot about the interface; and also, the header file in "C:\Program Files\Symbol Technologies Bluetooth SDK by Stonestreet One\include" gives a little about the functions enclosed.

    I'm just struggling to find my feet on a starting point here.

    Any help appreciated.

    Robsta

    Live Fast, Die Young.
Page 1 of 1 (6 items)
Copyright © 2001-2008 In The Hand Ltd. All rights reserved. Terms of Use and Privacy Policy.