Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Mobile Development
  3. Mobile
  4. try to send string to rs232 - But without success

try to send string to rs232 - But without success

Scheduled Pinned Locked Moved Mobile
comhelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    goldsoft
    wrote on last edited by
    #1

    hi i try to print trought Windows-Mobile to TSC TA200 printer But without success... this is my code: private static void SendSampleData() { SerialPort portZ = new SerialPort("COM1", 115200, Parity.None, 8, StopBits.One); // i try allso 9600 portZ.Open(); portZ.Write("Hello World"); portZ.Write(new byte[] { 0x0A, 0xE2, 0xFF }, 0, 3); // i try to send bites portZ.Close(); } i try to change allso the com to com2,com3.... and play with the baudrate to 9600,4800.... but still no success **There is no error but does not print - nothing happens**

    L 1 Reply Last reply
    0
    • G goldsoft

      hi i try to print trought Windows-Mobile to TSC TA200 printer But without success... this is my code: private static void SendSampleData() { SerialPort portZ = new SerialPort("COM1", 115200, Parity.None, 8, StopBits.One); // i try allso 9600 portZ.Open(); portZ.Write("Hello World"); portZ.Write(new byte[] { 0x0A, 0xE2, 0xFF }, 0, 3); // i try to send bites portZ.Close(); } i try to change allso the com to com2,com3.... and play with the baudrate to 9600,4800.... but still no success **There is no error but does not print - nothing happens**

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Which COM port is the printer connected to? What baud rate does it operate at? Does it accept simple text input, or does it require special control characters?

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups